public abstract class AbstractMethodHelper extends Object
Modifier and Type | Field and Description |
---|---|
static int |
LOCAL_RETURN
Constant representing a local interface return type.
|
static int |
NO_RETURN
Constant representing no return type.
|
static int |
REMOTE_RETURN
Constant representing a remote interface return type.
|
Constructor and Description |
---|
AbstractMethodHelper(EjbCMPEntityDescriptor descriptor)
Creates a new instance of AbstractMethodHelper
|
Modifier and Type | Method and Description |
---|---|
protected void |
categorizeMethods()
Reads all known methods and sorts them by name into specific
Collections for further processing.
|
List |
getCreateMethods()
Gets the list of ejb create methods for this bean.
|
protected EjbCMPEntityDescriptor |
getDescriptor()
Gets the EjbCMPEntityDescriptor which defines the
information for this bean.
|
List |
getFinders()
Gets the list of finder methods for this bean.
|
abstract String |
getJDOFilterExpression(Method method)
Gets the jdo filter expression associated with the specified method
if it exists.
|
abstract String |
getJDOOrderingSpecification(Method method)
Gets the jdo ordering specification associated with the specified
method if it exists.
|
abstract String |
getJDOParameterDeclaration(Method method)
Gets the jdo parameter declaration associated with the specified
method if it exists.
|
abstract String |
getJDOVariableDeclaration(Method method)
Gets the jdo variables declaration associated with the specified
method if it exists.
|
String |
getLocalHome()
Gets the name of the local home which corresponds to this bean.
|
Map |
getMethodNames()
Gets a map of the method names for this bean.
|
protected QueryDescriptor |
getQueryDescriptor(Method method)
Gets the query descriptor associated with the specified method if it
exists.
|
int |
getQueryReturnType(Method method)
Gets the return type associated with the specified method if it
exists.
|
String |
getQueryString(Method method)
Gets the query string associated with the specified method if it
exists.
|
String |
getRemoteHome()
Gets the name of the remote home which corresponds to this bean.
|
List |
getSelectors()
Gets the list of selector methods for this bean.
|
abstract boolean |
isQueryPrefetchEnabled(Method method)
Returns
true if prefetch is enabled for the specified
method, false otherwise. |
protected void |
setFinders(List finderList) |
protected void |
setSelectors(List selectorList) |
public static final int LOCAL_RETURN
public static final int REMOTE_RETURN
public static final int NO_RETURN
public AbstractMethodHelper(EjbCMPEntityDescriptor descriptor)
descriptor
- the EjbCMPEntityDescriptor which defines the
information for this bean.protected EjbCMPEntityDescriptor getDescriptor()
protected void categorizeMethods()
public List getFinders()
protected void setFinders(List finderList)
public List getSelectors()
protected void setSelectors(List selectorList)
public List getCreateMethods()
public Map getMethodNames()
public String getLocalHome()
public String getRemoteHome()
protected QueryDescriptor getQueryDescriptor(Method method)
method
- the java.lang.reflect.Method object used to find the
query stringnull
for CMP 1.1 queries.public String getQueryString(Method method)
method
- the java.lang.reflect.Method object used to find the
query stringpublic int getQueryReturnType(Method method)
NO_RETURN
is returned.method
- the java.lang.reflect.Method object used to find the
query return typeLOCAL_RETURN
, REMOTE_RETURN
, or NO_RETURN
public abstract boolean isQueryPrefetchEnabled(Method method)
true
if prefetch is enabled for the specified
method, false
otherwise. Prefetch is enabled by default.method
- the java.lang.reflect.Method object used to find the
prefetch setting.public abstract String getJDOFilterExpression(Method method)
getQueryString(java.lang.reflect.Method)
for CMP 2.0.method
- the java.lang.reflect.Method object used to find the
query filterpublic abstract String getJDOParameterDeclaration(Method method)
getQueryString(java.lang.reflect.Method)
for CMP 2.0.method
- the java.lang.reflect.Method object used to find the
parameter declarationpublic abstract String getJDOVariableDeclaration(Method method)
getQueryString(java.lang.reflect.Method)
for CMP 2.0.method
- the java.lang.reflect.Method object used to find the
parameter declarationpublic abstract String getJDOOrderingSpecification(Method method)
getQueryString(java.lang.reflect.Method)
for CMP 2.0.method
- the java.lang.reflect.Method object used to find the
parameter declarationCopyright © 2018. All rights reserved.