Class MethodHelper
- java.lang.Object
-
- com.sun.jdo.spi.persistence.support.ejb.ejbc.AbstractMethodHelper
-
- com.sun.jdo.spi.persistence.support.ejb.ejbc.MethodHelper
-
public class MethodHelper extends AbstractMethodHelper
This is a subclass ofAbstractMethodHelperwhich 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
Constructors Constructor Description MethodHelper(IASEjbCMPEntityDescriptor descriptor)Creates a new instance of MethodHelper
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcategorizeMethods()Reads all known methods and sorts them by name into specific Collections for further processing.StringgetJDOFilterExpression(Method method)Gets the jdo filter expression associated with the specified method if it exists.StringgetJDOOrderingSpecification(Method method)Gets the jdo ordering specification associated with the specified method if it exists.StringgetJDOParameterDeclaration(Method method)Gets the jdo parameter declaration associated with the specified method if it exists.StringgetJDOVariableDeclaration(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 Detail
-
MethodHelper
public MethodHelper(IASEjbCMPEntityDescriptor descriptor)
Creates a new instance of MethodHelper- Parameters:
descriptor- the IASEjbCMPEntityDescriptor which defines the information for this bean.
-
-
Method Detail
-
categorizeMethods
protected void categorizeMethods()
Reads all known methods and sorts them by name into specific Collections for further processing.- Overrides:
categorizeMethodsin classAbstractMethodHelper
-
isQueryPrefetchEnabled
public boolean isQueryPrefetchEnabled(Method method)
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
public String getJDOFilterExpression(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 - 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
public String getJDOParameterDeclaration(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 - 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
public String getJDOVariableDeclaration(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 - 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
public String getJDOOrderingSpecification(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 - 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
-
-