Methods Summary |
---|
protected void | categorizeMethods()Reads all known methods and sorts them by name into specific
Collections for further processing.
IASEjbCMPEntityDescriptor cmpDescriptor =
(IASEjbCMPEntityDescriptor)getDescriptor();
super.categorizeMethods();
// replace the finders and selectors with ias specific info
setFinders(getListForCollection(cmpDescriptor.getFinders()));
setSelectors(getListForCollection(cmpDescriptor.getSelectors()));
|
private com.sun.enterprise.deployment.runtime.IASEjbCMPFinder | getFinder(java.lang.reflect.Method method)
IASEjbCMPEntityDescriptor cmpDescriptor =
(IASEjbCMPEntityDescriptor)getDescriptor();
IASEjbCMPFinder finder = cmpDescriptor.getIASEjbCMPFinder(method);
if (finder == null) {
String methodSignature = cmpDescriptor.getName() + '." +
method.getName() +
JavaClassWriterHelper.parenleft_ +
JavaClassWriterHelper.getParameterTypesList(method) +
JavaClassWriterHelper.parenright_ ;
String msg = I18NHelper.getMessage(messages,
"EXC_MissingCMP11Finder", methodSignature);//NOI18N
throw new RuntimeException(msg);
}
return finder;
|
public java.lang.String | getJDOFilterExpression(java.lang.reflect.Method method)Gets the jdo filter expression associated with the specified method
if it exists. Note that this method should only be used for CMP 1.1 -
use {@link #getQueryString} for CMP 2.0.
IASEjbCMPFinder cmpFinder = getFinder(method);
return ((cmpFinder != null) ? cmpFinder.getQueryFilter() : null);
|
public java.lang.String | getJDOOrderingSpecification(java.lang.reflect.Method method)Gets the jdo ordering specification associated with the specified
method if it exists. Note that this method should only be used for
CMP 1.1 - use {@link #getQueryString} for CMP 2.0.
IASEjbCMPFinder cmpFinder = getFinder(method);
return ((cmpFinder != null) ? cmpFinder.getQueryOrdering() : null);
|
public java.lang.String | getJDOParameterDeclaration(java.lang.reflect.Method method)Gets the jdo parameter declaration associated with the specified
method if it exists. Note that this method should only be used for
CMP 1.1 - use {@link #getQueryString} for CMP 2.0.
IASEjbCMPFinder cmpFinder = getFinder(method);
return ((cmpFinder != null) ?
cmpFinder.getQueryParameterDeclaration() : null);
|
public java.lang.String | getJDOVariableDeclaration(java.lang.reflect.Method method)Gets the jdo variables declaration associated with the specified
method if it exists. Note that this method should only be used for
CMP 1.1 - use {@link #getQueryString} for CMP 2.0.
IASEjbCMPFinder cmpFinder = getFinder(method);
return ((cmpFinder != null) ? cmpFinder.getQueryVariables() : null);
|
private static java.util.ArrayList | getListForCollection(java.util.Collection aCollection)
return ((aCollection != null) ?
new ArrayList(aCollection) : new ArrayList());
|
public boolean | isQueryPrefetchEnabled(java.lang.reflect.Method method)Returns true if prefetch is enabled for the specified
method, false otherwise. Prefetch is enabled by default.
boolean enabled = true;
QueryDescriptor queryDescriptor = getQueryDescriptor(method);
if (queryDescriptor != null)
{
IASEjbCMPEntityDescriptor cmpDescriptor =
(IASEjbCMPEntityDescriptor)getDescriptor();
PrefetchDisabledDescriptor pdDescriptor =
cmpDescriptor.getPrefetchDisabledDescriptor();
if (pdDescriptor != null)
{
MethodDescriptor methodDescriptor =
queryDescriptor.getQueryMethodDescriptor();
enabled = !pdDescriptor.isPrefetchDisabledFor(
methodDescriptor);
}
}
return enabled;
|