1 21 22 package org.apache.derby.impl.sql.compile; 23 24 import org.apache.derby.iapi.services.compiler.MethodBuilder; 25 import org.apache.derby.iapi.services.compiler.LocalField; 26 import org.apache.derby.iapi.error.StandardException; 27 import org.apache.derby.iapi.reference.ClassName; 28 import org.apache.derby.iapi.services.classfile.VMOpcode; 29 30 import org.apache.derby.impl.sql.compile.ActivationClassBuilder; 31 32 38 class MaterializeSubqueryNode extends ResultSetNode 39 { 40 41 private LocalField lf; 42 43 public MaterializeSubqueryNode(LocalField lf) 44 { 45 this.lf = lf; 46 } 47 48 public void generate(ActivationClassBuilder acb, 49 MethodBuilder mb) 50 throws StandardException 51 { 52 acb.pushThisAsActivation(mb); 53 mb.getField(lf); 54 mb.callMethod(VMOpcode.INVOKEVIRTUAL, ClassName.BaseActivation, "materializeResultSetIfPossible", ClassName.NoPutResultSet, 1); 55 } 56 57 void decrementLevel(int decrement) 58 { 59 } 60 } 61 | Popular Tags |