1 package com.daffodilwoods.daffodildb.server.sql99.dcl.sqlcontrolstatement; 2 3 import java.util.*; 4 5 import com.daffodilwoods.daffodildb.server.serversystem.*; 6 import com.daffodilwoods.daffodildb.server.sql99.*; 7 import com.daffodilwoods.daffodildb.server.sql99.common.*; 8 import com.daffodilwoods.daffodildb.server.sql99.token.*; 9 import com.daffodilwoods.daffodildb.server.sql99.utils.*; 10 import com.daffodilwoods.database.resource.*; 11 12 public class returnstatement implements com.daffodilwoods.daffodildb.utils.parser.StatementExecuter, SQLcontrolstatement, _Executer { 13 public returnvalue _returnvalue0; 14 public SRESERVEDWORD1206543922 _SRESERVEDWORD12065439221; 15 private _StatementExecutionContext sec; 16 private DException ex; 17 18 public Object run(Object object) throws DException { 19 sec = (_StatementExecutionContext) object; 20 ex = new DException("DSE8193", null); 21 return this; 22 } 23 24 public String toString() { 25 StringBuffer sb = new StringBuffer (); 26 sb.append(" "); 27 sb.append(_SRESERVEDWORD12065439221); 28 sb.append(" "); 29 sb.append(_returnvalue0); 30 return sb.toString(); 31 } 32 33 public Object clone() { 34 throw new UnsupportedOperationException (" clone not implemented yet"); 35 } 36 37 43 53 public _Reference[] checkSemantic(_ServerSession object) throws DException { 54 if (_returnvalue0 instanceof SRESERVEDWORD1206543922) 55 return null; 56 57 ColumnDetails[] cd = _returnvalue0.getColumnDetails(); 58 _Reference[] ref = _returnvalue0.checkSemantic(object); 59 ArrayList refList = new ArrayList(); 60 GeneralPurposeStaticClass.addRecursively(cd, refList); 61 _Reference[] allRefs = GeneralPurposeStaticClass.getJointReferences(ref, (_Reference[]) refList.toArray(new _Reference[0])); 62 ArrayList set = new ArrayList(); 63 ArrayList newSet = new ArrayList(); 64 65 for (int i = 0; i < allRefs.length; i++) { 66 int hashcode = allRefs[i].hashCode(); 67 if (!set.contains(new Integer (hashcode))) { 68 set.add(new Integer (hashcode)); 69 newSet.add(allRefs[i]); 70 } 71 } 72 return (_Reference[]) newSet.toArray(new _Reference[0]); 73 } 74 75 80 public ParameterInfo[] getParameterInfo() { 81 return null; 82 } 83 84 90 public Object [] getParameters(Object object) { 91 return null; 92 } 93 94 99 public void setOuterControlStatement(SQLcontrolstatement st) { 100 } 101 102 108 public Object execute(Object [] values) { 109 return ""; 110 } 111 112 118 public Object execute(_VariableValues variableValues) throws DException { 119 Object obj = _returnvalue0.run(variableValues); 120 ex.setParameters(new Object [] {obj}); 121 throw ex; 122 } 123 124 130 public Object executeForFresh(Object [] values) { 131 throw new java.lang.UnsupportedOperationException ("Method executeForFresh() not yet implemented."); 132 } 133 134 public ColumnDetails[] getColumnDetails() throws DException { 135 ColumnDetails[] returnValueCD = _returnvalue0.getColumnDetails(); 136 if (returnValueCD != null) { 137 for (int i = 0; i < returnValueCD.length; i++) { 138 returnValueCD[i].setReturnStatementCD(true); 139 } 140 } 141 return returnValueCD; 142 } 143 144 public void getTableIncluded(ArrayList aList) throws DException { 145 } 146 147 public void getColumnsIncluded(ArrayList aList) throws DException { 148 } 149 } 150 | Popular Tags |