|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.spi.persistence.support.ejb.ejbc.AbstractMethodHelper
public abstract class AbstractMethodHelper
This is a helper class which extracts the information needed for method code generation of the concrete bean class.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
AbstractMethodHelper(EjbCMPEntityDescriptor descriptor)
Creates a new instance of AbstractMethodHelper |
|
| Method Summary | |
|---|---|
protected void |
categorizeMethods()
Reads all known methods and sorts them by name into specific Collections for further processing. |
java.util.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. |
java.util.List |
getFinders()
Gets the list of finder methods for this bean. |
abstract java.lang.String |
getJDOFilterExpression(java.lang.reflect.Method method)
Gets the jdo filter expression associated with the specified method if it exists. |
abstract java.lang.String |
getJDOOrderingSpecification(java.lang.reflect.Method method)
Gets the jdo ordering specification associated with the specified method if it exists. |
abstract java.lang.String |
getJDOParameterDeclaration(java.lang.reflect.Method method)
Gets the jdo parameter declaration associated with the specified method if it exists. |
abstract java.lang.String |
getJDOVariableDeclaration(java.lang.reflect.Method method)
Gets the jdo variables declaration associated with the specified method if it exists. |
java.lang.String |
getLocalHome()
Gets the name of the local home which corresponds to this bean. |
java.util.Map |
getMethodNames()
Gets a map of the method names for this bean. |
protected QueryDescriptor |
getQueryDescriptor(java.lang.reflect.Method method)
Gets the query descriptor associated with the specified method if it exists. |
int |
getQueryReturnType(java.lang.reflect.Method method)
Gets the return type associated with the specified method if it exists. |
java.lang.String |
getQueryString(java.lang.reflect.Method method)
Gets the query string associated with the specified method if it exists. |
java.lang.String |
getRemoteHome()
Gets the name of the remote home which corresponds to this bean. |
java.util.List |
getSelectors()
Gets the list of selector methods for this bean. |
abstract boolean |
isQueryPrefetchEnabled(java.lang.reflect.Method method)
Returns true if prefetch is enabled for the specified
method, false otherwise. |
protected void |
setFinders(java.util.List finderList)
|
protected void |
setSelectors(java.util.List selectorList)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LOCAL_RETURN
public static final int REMOTE_RETURN
public static final int NO_RETURN
| Constructor Detail |
|---|
public AbstractMethodHelper(EjbCMPEntityDescriptor descriptor)
descriptor - the EjbCMPEntityDescriptor which defines the
information for this bean.| Method Detail |
|---|
protected EjbCMPEntityDescriptor getDescriptor()
protected void categorizeMethods()
public java.util.List getFinders()
protected void setFinders(java.util.List finderList)
public java.util.List getSelectors()
protected void setSelectors(java.util.List selectorList)
public java.util.List getCreateMethods()
public java.util.Map getMethodNames()
public java.lang.String getLocalHome()
public java.lang.String getRemoteHome()
protected QueryDescriptor getQueryDescriptor(java.lang.reflect.Method method)
method - the java.lang.reflect.Method object used to find the
query string
null for CMP 1.1 queries.public java.lang.String getQueryString(java.lang.reflect.Method method)
method - the java.lang.reflect.Method object used to find the
query string
public int getQueryReturnType(java.lang.reflect.Method method)
NO_RETURN is returned.
method - the java.lang.reflect.Method object used to find the
query return type
LOCAL_RETURN, REMOTE_RETURN, or NO_RETURNpublic abstract boolean isQueryPrefetchEnabled(java.lang.reflect.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 java.lang.String getJDOFilterExpression(java.lang.reflect.Method method)
getQueryString(java.lang.reflect.Method) for CMP 2.0.
method - the java.lang.reflect.Method object used to find the
query filter
public abstract java.lang.String getJDOParameterDeclaration(java.lang.reflect.Method method)
getQueryString(java.lang.reflect.Method) for CMP 2.0.
method - the java.lang.reflect.Method object used to find the
parameter declaration
public abstract java.lang.String getJDOVariableDeclaration(java.lang.reflect.Method method)
getQueryString(java.lang.reflect.Method) for CMP 2.0.
method - the java.lang.reflect.Method object used to find the
parameter declaration
public abstract java.lang.String getJDOOrderingSpecification(java.lang.reflect.Method method)
getQueryString(java.lang.reflect.Method) for CMP 2.0.
method - the java.lang.reflect.Method object used to find the
parameter declaration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||