/* */ public JDBCEJBQLQuery(JDBCStoreManager manager, JDBCQueryMetaData q)
/* */ throws DeploymentException
/* */ {
/* 46 */ super(manager, q);
/* */
/* 48 */ JDBCQlQueryMetaData metadata = (JDBCQlQueryMetaData)q;
/* 49 */ if (getLog().isDebugEnabled())
/* */ {
/* 51 */ getLog().debug("EJB-QL: " + metadata.getEjbQl());
/* */ }
/* */
/* 54 */ QLCompiler compiler = JDBCQueryManager.getInstance(metadata.getQLCompilerClass(), manager.getCatalog());
/* */ try
/* */ {
/* 58 */ compiler.compileEJBQL(metadata.getEjbQl(), metadata.getMethod().getReturnType(), metadata.getMethod().getParameterTypes(), metadata);
/* */ }
/* */ catch (Throwable t)
/* */ {
/* 66 */ this.log.error(t.getMessage(), t);
/* 67 */ throw new DeploymentException("Error compiling EJB-QL statement for EJB '" + manager.getContainer().getBeanMetaData().getEjbName() + "': " + metadata.getEjbQl(), t);
/* */ }
/* */
/* 71 */ setSQL(compiler.getSQL());
/* */
/* 74 */ if (compiler.isSelectEntity())
/* */ {
/* 76 */ JDBCEntityBridge selectEntity = (JDBCEntityBridge)compiler.getSelectEntity();
/* */
/* 79 */ setSelectEntity(selectEntity);
/* */
/* 82 */ JDBCReadAheadMetaData readahead = metadata.getReadAhead();
/* 83 */ if (readahead.isOnFind())
/* */ {
/* 85 */ setEagerLoadGroup(readahead.getEagerLoadGroup());
/* 86 */ setOnFindCMRList(compiler.getLeftJoinCMRList());
/* */