com.sun.jdo.spi.persistence.support.ejb.ejbc
Class MethodHelper

java.lang.Object
  extended by com.sun.jdo.spi.persistence.support.ejb.ejbc.AbstractMethodHelper
      extended by com.sun.jdo.spi.persistence.support.ejb.ejbc.MethodHelper

public class MethodHelper
extends AbstractMethodHelper

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
MethodHelper(IASEjbCMPEntityDescriptor descriptor)
          Creates a new instance of MethodHelper
 
Method Summary
protected  void categorizeMethods()
          Reads all known methods and sorts them by name into specific Collections for further processing.
 java.lang.String getJDOFilterExpression(java.lang.reflect.Method method)
          Gets the jdo filter expression associated with the specified method if it exists.
 java.lang.String getJDOOrderingSpecification(java.lang.reflect.Method method)
          Gets the jdo ordering specification associated with the specified method if it exists.
 java.lang.String getJDOParameterDeclaration(java.lang.reflect.Method method)
          Gets the jdo parameter declaration associated with the specified method if it exists.
 java.lang.String getJDOVariableDeclaration(java.lang.reflect.Method method)
          Gets the jdo variables declaration associated with the specified method if it exists.
 boolean isQueryPrefetchEnabled(java.lang.reflect.Method method)
          Returns true if prefetch is enabled for the specified method, false otherwise.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
categorizeMethods in class AbstractMethodHelper

isQueryPrefetchEnabled

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.

Specified by:
isQueryPrefetchEnabled in class AbstractMethodHelper
Parameters:
method - the java.lang.reflect.Method object used to find the prefetch setting.
Returns:
a boolean representing the prefetch setting

getJDOFilterExpression

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 AbstractMethodHelper.getQueryString(java.lang.reflect.Method) for CMP 2.0.

Specified by:
getJDOFilterExpression in class AbstractMethodHelper
Parameters:
method - the java.lang.reflect.Method object used to find the query filter
Returns:
the jdo filter expression

getJDOParameterDeclaration

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 AbstractMethodHelper.getQueryString(java.lang.reflect.Method) for CMP 2.0.

Specified by:
getJDOParameterDeclaration in class AbstractMethodHelper
Parameters:
method - the java.lang.reflect.Method object used to find the parameter declaration
Returns:
the jdo parameter declaration

getJDOVariableDeclaration

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 AbstractMethodHelper.getQueryString(java.lang.reflect.Method) for CMP 2.0.

Specified by:
getJDOVariableDeclaration in class AbstractMethodHelper
Parameters:
method - the java.lang.reflect.Method object used to find the parameter declaration
Returns:
the jdo variables declaration

getJDOOrderingSpecification

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 AbstractMethodHelper.getQueryString(java.lang.reflect.Method) for CMP 2.0.

Specified by:
getJDOOrderingSpecification in class AbstractMethodHelper
Parameters:
method - the java.lang.reflect.Method object used to find the parameter declaration
Returns:
the jdo ordering specification


Copyright © 2012 GlassFish Community. All Rights Reserved.