1 21 22 package org.apache.derby.impl.sql.compile; 23 24 import org.apache.derby.iapi.services.context.ContextManager; 25 26 import org.apache.derby.iapi.services.sanity.SanityManager; 27 28 import org.apache.derby.iapi.services.compiler.MethodBuilder; 29 30 import org.apache.derby.iapi.sql.ResultSet; 31 import org.apache.derby.iapi.sql.Activation; 32 import org.apache.derby.iapi.sql.execute.ConstantAction; 33 import org.apache.derby.iapi.reference.ClassName; 34 35 import org.apache.derby.iapi.error.StandardException; 36 37 import org.apache.derby.iapi.services.classfile.VMOpcode; 38 39 import org.apache.derby.impl.sql.compile.ActivationClassBuilder; 40 41 48 49 abstract class MiscellaneousStatementNode extends StatementNode 50 { 51 52 int activationKind() 53 { 54 return StatementNode.NEED_NOTHING_ACTIVATION; 55 } 56 57 66 67 public void generate(ActivationClassBuilder acb, 68 MethodBuilder mb) 69 throws StandardException 70 { 71 74 acb.pushGetResultSetFactoryExpression(mb); 75 76 acb.pushThisAsActivation(mb); 78 mb.callMethod(VMOpcode.INVOKEINTERFACE, (String ) null, "getMiscResultSet", 79 ClassName.ResultSet, 1); 80 } 81 89 public boolean needsSavepoint() 90 { 91 return false; 92 } 93 } 94 | Popular Tags |