Class MethodHelper
java.lang.Object
com.sun.jdo.spi.persistence.support.ejb.ejbc.AbstractMethodHelper
com.sun.jdo.spi.persistence.support.ejb.ejbc.MethodHelper
This is a subclass of
AbstractMethodHelper
which provides overridden method implementations based on an SunONE
implementation.- Author:
- Rochelle Raccah
-
Field Summary
Fields inherited from class com.sun.jdo.spi.persistence.support.ejb.ejbc.AbstractMethodHelper
LOCAL_RETURN, NO_RETURN, REMOTE_RETURN -
Constructor Summary
ConstructorsConstructorDescriptionMethodHelper(org.glassfish.ejb.deployment.descriptor.IASEjbCMPEntityDescriptor descriptor) Creates a new instance of MethodHelper -
Method Summary
Modifier and TypeMethodDescriptionprotected voidReads all known methods and sorts them by name into specific Collections for further processing.getJDOFilterExpression(Method method) Gets the jdo filter expression associated with the specified method if it exists.getJDOOrderingSpecification(Method method) Gets the jdo ordering specification associated with the specified method if it exists.getJDOParameterDeclaration(Method method) Gets the jdo parameter declaration associated with the specified method if it exists.getJDOVariableDeclaration(Method method) Gets the jdo variables declaration associated with the specified method if it exists.booleanisQueryPrefetchEnabled(Method method) Returnstrueif prefetch is enabled for the specified method,falseotherwise.Methods inherited from class com.sun.jdo.spi.persistence.support.ejb.ejbc.AbstractMethodHelper
getCreateMethods, getDescriptor, getFinders, getLocalHome, getMethodNames, getQueryDescriptor, getQueryReturnType, getQueryString, getRemoteHome, getSelectors, setFinders, setSelectors
-
Constructor Details
-
MethodHelper
public MethodHelper(org.glassfish.ejb.deployment.descriptor.IASEjbCMPEntityDescriptor descriptor) Creates a new instance of MethodHelper- Parameters:
descriptor- the IASEjbCMPEntityDescriptor which defines the information for this bean.
-
-
Method Details
-
categorizeMethods
protected void categorizeMethods()Reads all known methods and sorts them by name into specific Collections for further processing.- Overrides:
categorizeMethodsin classAbstractMethodHelper
-
isQueryPrefetchEnabled
Returnstrueif prefetch is enabled for the specified method,falseotherwise. Prefetch is enabled by default.- Specified by:
isQueryPrefetchEnabledin classAbstractMethodHelper- Parameters:
method- the java.lang.reflect.Method object used to find the prefetch setting.- Returns:
- a boolean representing the prefetch setting
-
getJDOFilterExpression
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 - useAbstractMethodHelper.getQueryString(java.lang.reflect.Method)for CMP 2.0.- Specified by:
getJDOFilterExpressionin classAbstractMethodHelper- Parameters:
method- the java.lang.reflect.Method object used to find the query filter- Returns:
- the jdo filter expression
-
getJDOParameterDeclaration
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 - useAbstractMethodHelper.getQueryString(java.lang.reflect.Method)for CMP 2.0.- Specified by:
getJDOParameterDeclarationin classAbstractMethodHelper- Parameters:
method- the java.lang.reflect.Method object used to find the parameter declaration- Returns:
- the jdo parameter declaration
-
getJDOVariableDeclaration
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 - useAbstractMethodHelper.getQueryString(java.lang.reflect.Method)for CMP 2.0.- Specified by:
getJDOVariableDeclarationin classAbstractMethodHelper- Parameters:
method- the java.lang.reflect.Method object used to find the parameter declaration- Returns:
- the jdo variables declaration
-
getJDOOrderingSpecification
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 - useAbstractMethodHelper.getQueryString(java.lang.reflect.Method)for CMP 2.0.- Specified by:
getJDOOrderingSpecificationin classAbstractMethodHelper- Parameters:
method- the java.lang.reflect.Method object used to find the parameter declaration- Returns:
- the jdo ordering specification
-