1 package com.daffodilwoods.daffodildb.server.sql99.ddl.schemadefinition; 2 3 import java.util.*; 4 5 import com.daffodilwoods.daffodildb.server.datasystem.interfaces.*; 6 import com.daffodilwoods.daffodildb.server.serversystem.*; 7 import com.daffodilwoods.daffodildb.server.sql99.common.*; 8 import com.daffodilwoods.daffodildb.server.sql99.ddl.descriptors.*; 9 import com.daffodilwoods.daffodildb.server.sql99.dql.execution.*; 10 import com.daffodilwoods.daffodildb.server.sql99.dql.iterator.*; 11 import com.daffodilwoods.daffodildb.server.sql99.dql.plan.condition.*; 12 import com.daffodilwoods.daffodildb.server.sql99.dql.plan.table.*; 13 import com.daffodilwoods.daffodildb.server.sql99.expression.*; 14 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.*; 15 import com.daffodilwoods.daffodildb.server.sql99.token.*; 16 import com.daffodilwoods.daffodildb.server.sql99.utils.*; 17 import com.daffodilwoods.database.resource.*; 18 import com.daffodilwoods.database.sqlinitiator.*; 19 20 public class SRESERVEDWORD1206543922SRESERVEDWORD1206543922SNONRESERVEDWORD136444255Optparenlargeobjectlength implements datatype, characterstringtype, booleanvalueexpression, valueexpression { 22 public parenlargeobjectlength _Optparenlargeobjectlength0; 23 public SNONRESERVEDWORD136444255 _SNONRESERVEDWORD1364442551; 24 public SRESERVEDWORD1206543922 _SRESERVEDWORD12065439222; 25 public SRESERVEDWORD1206543922 _SRESERVEDWORD12065439223; 26 27 DataTypeDescriptor dataTypeDescriptor; 28 29 public Object run(Object object) throws DException { 30 if (dataTypeDescriptor == null) { 31 throw new DException("DSE492", null); 32 } 33 String type = _SRESERVEDWORD12065439223.toString(); 34 if (type.equalsIgnoreCase(SqlKeywords.CHARACTER)) { 35 dataTypeDescriptor.data_Type = "CHARACTER LARGE OBJECT"; 36 } else if (type.equalsIgnoreCase(SqlKeywords.CHAR)) { 37 dataTypeDescriptor.data_Type = "CHAR LARGE OBJECT"; 38 } else if (type.equalsIgnoreCase(SqlKeywords.NCHAR)) { 39 dataTypeDescriptor.data_Type = "NCHAR LARGE OBJECT"; 40 } else if (type.equalsIgnoreCase(SqlKeywords.BINARY)) { 41 dataTypeDescriptor.data_Type = "BINARY LARGE OBJECT"; 42 } else { 43 throw new DException("DSE1133", new Object [] {_SRESERVEDWORD12065439223 + " " + _SRESERVEDWORD12065439222 + " " + _SNONRESERVEDWORD1364442551}); 44 } 45 46 if (_Optparenlargeobjectlength0 == null) { 47 dataTypeDescriptor.character_maximum_length = new Integer (dataTypeDescriptor.implicit_maximum_characterLargeObject_length); 48 } else { 49 Integer maximumLength = ( (Integer ) _Optparenlargeobjectlength0.run(null)); 50 if (maximumLength.intValue() > dataTypeDescriptor.implicit_maximum_characterLargeObject_length) { 51 throw new DException("DSE983", new Object [] {maximumLength, new Integer (dataTypeDescriptor.implicit_maximum_characterLargeObject_length)}); 52 } 53 dataTypeDescriptor.character_maximum_length = maximumLength; 54 } 55 dataTypeDescriptor.character_octet_length = new Integer (0); 56 return null; 57 } 58 59 public void setDescriptor(_Descriptor dtd) throws DException { 60 dataTypeDescriptor = (DataTypeDescriptor) dtd; 61 } 62 63 public void getColumnsIncluded(ArrayList aList) throws DException { 64 } 65 66 public void getTablesIncluded(ArrayList aList) throws DException { 67 } 68 69 public _Reference[] getReferences(TableDetails[] tableDetails) throws DException { 70 throw new java.lang.UnsupportedOperationException ("Method getReferences() not yet implemented."); 71 } 72 73 public double getCost(long rowCount, boolean index) throws DException { 74 throw new java.lang.UnsupportedOperationException ("Method getCost() not yet implemented."); 75 } 76 77 public String [] getTableNamesInBVE() throws DException { 78 throw new java.lang.UnsupportedOperationException ("Method getTableNamesInBVE() not yet implemented."); 79 } 80 81 public long getEstimatedRows(long noOfRows) throws DException { 82 throw new java.lang.UnsupportedOperationException ("Method getEstimatedRows() not yet implemented."); 83 } 84 85 public _QualifiedBVE getQualifiedBVE(TableDetails[] tableDetails) throws DException { 86 throw new java.lang.UnsupportedOperationException ("Method getQualifiedBVE() not yet implemented."); 87 } 88 89 public int canUseForSeek() throws DException { 90 throw new java.lang.UnsupportedOperationException ("Method canUseForSeek() not yet implemented."); 91 } 92 93 public boolean isNullPredicate() throws DException { 94 throw new java.lang.UnsupportedOperationException ("Method isNullPredicate() not yet implemented."); 95 } 96 97 public int getPredicateType() throws DException { 98 throw new java.lang.UnsupportedOperationException ("Method getPredicateType() not yet implemented."); 99 } 100 101 public int getConditionType() throws DException { 102 throw new java.lang.UnsupportedOperationException ("Method getConditionType() not yet implemented."); 103 } 104 105 public _BVEPlan getExecutionPlan() throws DException { 106 throw new java.lang.UnsupportedOperationException ("Method getExecutionPlan() not yet implemented."); 107 } 108 109 public void setDefaultValues(_VariableValueOperations parm1) throws com.daffodilwoods.database.resource.DException { 110 throw new java.lang.UnsupportedOperationException ("Method setDefaultValues() not yet implemented."); 111 } 112 113 public boolean checkForSubQuery() throws com.daffodilwoods.database.resource.DException { 114 throw new java.lang.UnsupportedOperationException ("Method checkForSubQuery() not yet implemented."); 115 } 116 117 public void setDefaultValuesForQualifiedJoin(_VariableValueOperations variableValueOperation, TableDetails[] tableDetails) throws DException { 118 } 119 120 public boolean checkDataType() throws com.daffodilwoods.database.resource.DException { 121 122 throw new java.lang.UnsupportedOperationException ("Method checkDataType() not yet implemented."); 123 } 124 125 public Object restrict(ArrayList parm1, ArrayList parm2, ArrayList parm3, ArrayList parm4) throws com.daffodilwoods.database.resource.DException { 126 127 throw new java.lang.UnsupportedOperationException ("Method restrict() not yet implemented."); 128 } 129 130 public int getSingleConditions(ArrayList parm1) throws com.daffodilwoods.database.resource.DException { 131 132 throw new java.lang.UnsupportedOperationException ("Method getSingleConditions() not yet implemented."); 133 } 134 135 public ArrayList[] splitIndexAndNonIndexConditions(String [] parm1) throws com.daffodilwoods.database.resource.DException { 136 137 throw new java.lang.UnsupportedOperationException ("Method splitIndexAndNonIndexConditions() not yet implemented."); 138 } 139 140 public void getTablesIncludedInOr(ArrayList parm1) throws com.daffodilwoods.database.resource.DException { 141 142 throw new java.lang.UnsupportedOperationException ("Method getTablesIncludedInOr() not yet implemented."); 143 } 144 145 public _Reference[] checkSemantic(_ServerSession parm1) throws com.daffodilwoods.database.resource.DException { 146 147 throw new java.lang.UnsupportedOperationException ("Method syntaxChecking() not yet implemented."); 148 } 149 150 public void setParentType(boolean parm1) throws com.daffodilwoods.database.resource.DException { 151 152 throw new java.lang.UnsupportedOperationException ("Method setParentType() not yet implemented."); 153 } 154 155 public int canUseJoinOptimisation(boolean parm1) throws com.daffodilwoods.database.resource.DException { 156 157 throw new java.lang.UnsupportedOperationException ("Method canUseJoinOptimisation() not yet implemented."); 158 } 159 160 public ParameterInfo[] getParameterInfo() throws com.daffodilwoods.database.resource.DException { 161 162 throw new java.lang.UnsupportedOperationException ("Method getParameterInfo() not yet implemented."); 163 } 164 165 public ColumnDetails[] getColumnDetails() throws com.daffodilwoods.database.resource.DException { 166 167 throw new java.lang.UnsupportedOperationException ("Method getColumnDetails() not yet implemented."); 168 } 169 170 public Object [] getParameters(Object parm1) throws com.daffodilwoods.database.resource.DException { 171 172 throw new java.lang.UnsupportedOperationException ("Method getParameters() not yet implemented."); 173 } 174 175 public int getCardinality() throws com.daffodilwoods.database.resource.DException { 176 177 throw new java.lang.UnsupportedOperationException ("Method getCardinality() not yet implemented."); 178 } 179 180 public byte[][] getByte(_VariableValues variableValues) throws DException { 181 182 throw new java.lang.UnsupportedOperationException ("Method getByte() not yet implemented."); 183 } 184 185 public Object getObject(_VariableValues variableValues) throws DException { 186 187 throw new java.lang.UnsupportedOperationException ("Method getObject() not yet implemented."); 188 } 189 190 public void setColumnPredicates(_AllColumnPredicates allColumnPredicates) throws DException { 191 192 throw new java.lang.UnsupportedOperationException ("Method setColumnPredicates() not yet implemented."); 193 } 194 195 public _IndexPredicateInterface getCost(_Order order, String [] queryColumns, Object session, TableDetails tableDetails, ColumnDetails[] aggregateColumns) throws DException { 196 197 throw new java.lang.UnsupportedOperationException ("Method getCost() not yet implemented."); 198 } 199 200 public _Iterator execute(_IndexTable indexTable, _Order order, String [] queryColumns, TableDetails tableDetails) throws DException { 201 202 throw new java.lang.UnsupportedOperationException ("Method execute() not yet implemented."); 203 } 204 205 public booleanvalueexpression getSingleTableCondition() throws DException { 206 207 throw new java.lang.UnsupportedOperationException ("Method execute() not yet implemented."); 208 209 } 210 211 public String toString() { 212 StringBuffer sb = new StringBuffer (); 213 sb.append(" "); 214 sb.append(_SRESERVEDWORD12065439223); 215 sb.append(" "); 216 sb.append(_SRESERVEDWORD12065439222); 217 sb.append(" "); 218 sb.append(_SNONRESERVEDWORD1364442551); 219 sb.append(" "); 220 if (_Optparenlargeobjectlength0 != null) { 221 sb.append(_Optparenlargeobjectlength0); 222 } 223 return sb.toString(); 224 } 225 226 public ByteComparison getByteComparison(Object object) throws DException { 227 throw new java.lang.UnsupportedOperationException ("Method getByteComparison() not yet implemented."); 228 } 229 230 public void releaseResource() throws DException { 231 } 232 233 public Object clone() throws CloneNotSupportedException { 234 return this; 235 } 236 } 237 | Popular Tags |