/** * Create a new QueryMetaData. * * @param delegate the delegate * @return the metadata * @throws IllegalArgumentException for a null delegate or an unknown delegate */ public static QueryMetaData create(org.jboss.metadata.ejb.spec.QueryMetaData delegate) { if (delegate == null) throw new IllegalArgumentException("Null delegate"); return new QueryMetaData(delegate); }
/** * Gets the ejb-ql for this query. * * @return the ejb-ql for this query */ public String getEjbQl() { return getDelegate().getEjbQL(); } }
/** * Constructs a JDBCQlQueryMetaData which is defined by the queryMetaData * and is invoked by the specified method. * * @param queryMetaData the metadata about this query which was loaded * from the ejb-jar.xml file * @param method the method which invokes this query */ public JDBCQlQueryMetaData(QueryMetaData queryMetaData, Method method, Class qlCompiler, boolean lazyResultSetLoading) { this.method = method; this.readAhead = JDBCReadAheadMetaData.DEFAULT; ejbQl = queryMetaData.getEjbQl(); resultTypeMappingLocal = queryMetaData.getResultTypeMapping().equals(QueryMetaData.LOCAL); compiler = qlCompiler; this.lazyResultSetLoading = lazyResultSetLoading; }
private Method[] getQueryMethods(QueryMetaData queryData) throws DeploymentException { String methodName = queryData.getMethodName(); try { Class[] parameters = Classes.convertToJavaClasses(queryData.getMethodParams(), entity.getClassLoader()); return getQueryMethods(methodName, parameters); } catch(ClassNotFoundException cnfe) { throw new DeploymentException(cnfe.getMessage()); } }
if (!qmd.getMethodName().equals(m.getName())) queryParameter = Classes.convertToJavaClasses(qmd.getMethodParams(), classloader);
/** * Gets the ejb-ql for this query. * * @return the ejb-ql for this query */ public String getEjbQl() { return getDelegate().getEjbQL(); } }
/** * Create a new QueryMetaData. * * @param delegate the delegate * @return the metadata * @throws IllegalArgumentException for a null delegate or an unknown delegate */ public static QueryMetaData create(org.jboss.metadata.ejb.spec.QueryMetaData delegate) { if (delegate == null) throw new IllegalArgumentException("Null delegate"); return new QueryMetaData(delegate); }
/** * Gets the interface type of returned ejb objects. This will be * Local or Remote, and the default is Local. * * @return the type the the interface returned for ejb objects */ public String getResultTypeMapping() { return getDelegate().getResultTypeMapping().name(); }
/** * Gets the name of the query for which this metadata applies. * * @return the name of the query method */ public String getMethodName() { return getDelegate().getQueryMethod().getMethodName(); }
/** * Gets the name of the query for which this metadata applies. * * @return the name of the query method */ public String getMethodName() { return getDelegate().getQueryMethod().getMethodName(); }
/** * Gets the interface type of returned ejb objects. This will be * Local or Remote, and the default is Local. * * @return the type the the interface returned for ejb objects */ public String getResultTypeMapping() { return getDelegate().getResultTypeMapping().name(); }
/** * Gets an iterator over the parameters of the query method. * * @return an iterator over the parameters of the query method. */ public Iterator<String> getMethodParams() { MethodParametersMetaData result = getDelegate().getQueryMethod().getMethodParams(); if (result != null) return result.iterator(); List<String> list = Collections.emptyList(); return list.iterator(); }
/** * Gets an iterator over the parameters of the query method. * * @return an iterator over the parameters of the query method. */ public Iterator<String> getMethodParams() { MethodParametersMetaData result = getDelegate().getQueryMethod().getMethodParams(); if (result != null) return result.iterator(); List<String> list = Collections.emptyList(); return list.iterator(); }