1 22 package org.jboss.ejb.plugins.cmp.jdbc; 23 24 import org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCReadAheadMetaData; 25 import org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaData; 26 import org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge; 27 import org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMPFieldBridge; 28 import org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCFieldBridge; 29 import org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractEntityBridge; 30 import org.jboss.ejb.plugins.cmp.ejbql.SelectFunction; 31 import org.jboss.ejb.plugins.cmp.bridge.EntityBridge; 32 import org.jboss.ejb.EntityPersistenceStore; 33 34 import java.util.List ; 35 36 40 public interface QLCompiler 41 { 42 void compileEJBQL( 43 String ejbql, 44 Class returnType, 45 Class [] parameterTypes, 46 JDBCQueryMetaData metadata 47 ) throws Exception ; 48 49 void compileJBossQL( 50 String ejbql, 51 Class returnType, 52 Class [] parameterTypes, 53 JDBCQueryMetaData metadata 54 ) 55 throws Exception ; 56 57 String getSQL(); 58 59 int getOffsetValue(); 60 61 int getOffsetParam(); 62 63 int getLimitValue(); 64 65 int getLimitParam(); 66 67 boolean isSelectEntity(); 68 69 JDBCAbstractEntityBridge getSelectEntity(); 70 71 boolean isSelectField(); 72 73 JDBCFieldBridge getSelectField(); 74 75 SelectFunction getSelectFunction(); 76 77 EntityPersistenceStore getStoreManager(); 78 79 List getInputParameters(); 80 81 List getLeftJoinCMRList(); 82 83 boolean isSelectDistinct(); 84 } 85 | Popular Tags |