org.datanucleus.enhancer.bcel.method
Class JdoIsDetached
java.lang.Object
org.datanucleus.enhancer.ClassMethod
org.datanucleus.enhancer.bcel.BCELClassMethod
org.datanucleus.enhancer.bcel.method.JdoIsDetached
public class JdoIsDetached
- extends BCELClassMethod
Creates the jdoIsDetached() method found in the root persistent class in a hierarchy. The method looks like this :-
public boolean jdoIsDetached()
{
if (jdoStateManager == null && jdoDetachedState != null)
{
return true;
}
return false;
}
and if not detachable will get
public boolean jdoIsDetached()
{
return false;
}
- Since:
- 1.1
- Version:
- $Revision: 1.4 $
|
Constructor Summary |
JdoIsDetached(java.lang.String methodName,
int type,
org.apache.bcel.generic.Type resultType,
org.apache.bcel.generic.Type[] argType,
java.lang.String[] argName,
boolean synthetic,
BCELClassEnhancer gen)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
JdoIsDetached
public JdoIsDetached(java.lang.String methodName,
int type,
org.apache.bcel.generic.Type resultType,
org.apache.bcel.generic.Type[] argType,
java.lang.String[] argName,
boolean synthetic,
BCELClassEnhancer gen)
- Parameters:
methodName - type - resultType - argType - argName - synthetic - gen -
getInstance
public static JdoIsDetached getInstance(BCELClassEnhancer gen)
execute
public void execute()
- Description copied from class:
BCELClassMethod
- Method to add the contents of the class method.
- Overrides:
execute in class BCELClassMethod
Copyright © 2009. All Rights Reserved.