public class EjbMethodPattern<X>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
RESIN_DATABASE |
static int |
RESIN_READ_ONLY |
static int |
RESIN_ROW_LOCK |
Constructor and Description |
---|
EjbMethodPattern()
Creates a new method.
|
EjbMethodPattern(EjbBean<X> bean,
MethodSignature signature)
Creates a new method.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(AnnotatedMethod<?> apiMethod)
Configures the bean with the override values
|
boolean |
equals(java.lang.Object o)
Returns true if these are equivalent.
|
int |
getJDBCIsolation()
Returns the JDBC isolation.
|
java.lang.String |
getLocation()
Returns the config location.
|
java.lang.String |
getName()
Returns the method name.
|
java.lang.String |
getQuery()
Returns the method's query.
|
boolean |
getQueryLoadsBean()
Returns true if the query method should load bean values.
|
java.lang.String |
getQueryLocation()
Returns the query config location.
|
boolean |
getRelationLoadsBean()
Returns true if the relation method should load bean values.
|
int |
getResinIsolation()
Returns the Resin isolation.
|
java.util.ArrayList<java.lang.String> |
getRoles()
Returns the roles allowed for the method.
|
MethodSignature |
getSignature()
Returns the method signature.
|
TransactionAttributeType |
getTransactionType()
Returns the method's transaction type, e.g.
|
boolean |
isMatch(AnnotatedMethod<?> method) |
boolean |
isReadOnly()
Returns true if the method does not set any values.
|
void |
setBean(EjbBean<X> bean)
Sets the bean.
|
void |
setJDBCIsolation(int isolation)
Sets the JDBC isolation.
|
void |
setLocation(java.lang.String location)
Sets the config location.
|
void |
setQuery(java.lang.String query)
Sets the method's query.
|
void |
setQueryLoadsBean(boolean loadBean)
Set true if the query method should load bean values.
|
void |
setQueryLocation(java.lang.String location)
Sets the query node.
|
void |
setRelationLoadsBean(boolean loadBean)
Set true if the relation method should load bean values.
|
void |
setResinIsolation(java.lang.String isolation)
Sets the Resin isolation.
|
void |
setRoles(java.util.ArrayList<java.lang.String> roles)
Set the roles allowed for the method.
|
void |
setRoles(java.lang.String[] roles)
Set the roles allowed for the method.
|
void |
setSignature(MethodSignature sig)
Sets the method signature.
|
void |
setTransaction(TransactionAttributeType type) |
void |
setTransAttribute(java.lang.String type)
Sets the method's transaction type, e.g.
|
java.lang.String |
toString() |
public static final int RESIN_DATABASE
public static final int RESIN_READ_ONLY
public static final int RESIN_ROW_LOCK
public EjbMethodPattern()
public EjbMethodPattern(EjbBean<X> bean, MethodSignature signature)
entity
- the owning entity bean.signature
- the method signature.public void setLocation(java.lang.String location)
public java.lang.String getLocation()
public void setSignature(MethodSignature sig)
public MethodSignature getSignature()
public java.lang.String getName()
public boolean isReadOnly()
public int getResinIsolation()
public void setResinIsolation(java.lang.String isolation) throws ConfigException
ConfigException
public int getJDBCIsolation()
public void setJDBCIsolation(int isolation)
public java.lang.String getQuery()
public void setQuery(java.lang.String query)
public java.lang.String getQueryLocation()
public void setQueryLocation(java.lang.String location)
public TransactionAttributeType getTransactionType()
public void setTransaction(TransactionAttributeType type) throws ConfigException
ConfigException
public void setTransAttribute(java.lang.String type) throws ConfigException
ConfigException
public boolean getQueryLoadsBean()
public void setQueryLoadsBean(boolean loadBean)
public boolean getRelationLoadsBean()
public void setRelationLoadsBean(boolean loadBean)
public java.util.ArrayList<java.lang.String> getRoles()
public void setRoles(java.util.ArrayList<java.lang.String> roles)
public void setRoles(java.lang.String[] roles)
public void configure(AnnotatedMethod<?> apiMethod)
public boolean isMatch(AnnotatedMethod<?> method)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object