public abstract class AbstractEnhancedType extends AmberType
Constructor and Description |
---|
AbstractEnhancedType(AmberPersistenceUnit amberPersistenceUnit) |
Modifier and Type | Method and Description |
---|---|
void |
addCallback(int callbackIndex,
java.lang.reflect.Method callback)
Adds a callback.
|
void |
addPostLoadCallback(java.lang.reflect.Method callback)
Adds a @PostLoad callback.
|
void |
addPostPersistCallback(java.lang.reflect.Method callback)
Adds a post-persist callback.
|
void |
addPostRemoveCallback(java.lang.reflect.Method callback)
Adds a post-remove callback.
|
void |
addPostUpdateCallback(java.lang.reflect.Method callback)
Adds a post-update callback.
|
void |
addPrePersistCallback(java.lang.reflect.Method callback)
Adds a pre-persist callback.
|
void |
addPreRemoveCallback(java.lang.reflect.Method callback)
Adds a pre-remove callback.
|
void |
addPreUpdateCallback(java.lang.reflect.Method callback)
Adds a pre-update callback.
|
void |
addStubMethod(StubMethod method)
Adds a stub method
|
java.lang.Class |
getBeanClass()
Gets the bean class.
|
java.util.ArrayList<java.lang.reflect.Method> |
getCallbacks(int callbackIndex)
Gets the callbacks.
|
java.lang.String |
getClassName()
Returns the class name.
|
ClassComponent |
getComponentGenerator()
Gets a component generator.
|
java.lang.String |
getComponentInterfaceName()
Returns the component interface name.
|
java.lang.Throwable |
getConfigException() |
java.lang.Object |
getInstance()
Gets the instance.
|
java.lang.Class |
getInstanceClass()
Gets the instance class.
|
protected java.lang.Class |
getInstanceClass(java.lang.Class validationInterface)
Gets the instance class.
|
java.lang.String |
getInstanceClassName()
Gets the instance class name.
|
java.lang.Class |
getJavaBeanClass()
Returns the java bean class
|
java.util.ArrayList<StubMethod> |
getMethods()
Returns the methods
|
java.lang.String |
getName()
Gets the name.
|
AmberPersistenceUnit |
getPersistenceUnit()
Returns the persistence unit.
|
java.util.ArrayList<java.lang.reflect.Method> |
getPostLoadCallbacks()
Gets the post-load callback.
|
java.util.ArrayList<java.lang.reflect.Method> |
getPostPersistCallbacks()
Gets the post-persist callback.
|
java.util.ArrayList<java.lang.reflect.Method> |
getPostRemoveCallbacks()
Gets the post-remove callback.
|
java.util.ArrayList<java.lang.reflect.Method> |
getPostUpdateCallbacks()
Gets the post-update callback.
|
java.util.ArrayList<java.lang.reflect.Method> |
getPrePersistCallbacks()
Gets the pre-persist callback.
|
java.util.ArrayList<java.lang.reflect.Method> |
getPreRemoveCallbacks()
Gets the pre-remove callback.
|
java.util.ArrayList<java.lang.reflect.Method> |
getPreUpdateCallbacks()
Gets the pre-update callback.
|
boolean |
isEnhanced()
Returns true if the class is enhanced.
|
boolean |
isGenerated()
Returns true if generated.
|
boolean |
isIdClass()
Returns true if the class is a key class.
|
boolean |
isInit() |
void |
setBeanClass(java.lang.Class beanClass)
Sets the bean class.
|
void |
setConfigException(java.lang.Throwable e) |
void |
setEnhanced(boolean isEnhanced)
Sets true if the class is enhanced.
|
void |
setGenerated(boolean isGenerated)
Set true if generated.
|
void |
setIdClass(boolean isIdClass)
Sets true if the class is a key class, i.e.,
some entity is annotated with @IdClass(this.class)
|
void |
setInstance(java.lang.Object instance)
Sets the instance.
|
void |
setInstanceClassLoader(java.lang.ClassLoader loader)
Sets the instance class loader
|
void |
setInstanceClassName(java.lang.String className)
Sets the instance class name.
|
void |
setName(java.lang.String name)
Sets the name.
|
java.lang.String |
toString()
Printable version of the listener.
|
findItem, fromObject, generateCastFromObject, generateCreateColumnSQL, generateEquals, generateIncrementVersion, generateIsNull, generateLoad, generateLoad, generateLoadForeign, generateLoadNative, generateNull, generateSet, generateSetNull, generateSetVersion, getColumnCount, getForeignType, getForeignTypeName, getJavaTypeName, getObject, getObject, init, isAssignableTo, isAutoIncrement, isBoolean, isNumeric, setParameter, toObject, toObject
public AbstractEnhancedType(AmberPersistenceUnit amberPersistenceUnit)
public AmberPersistenceUnit getPersistenceUnit()
public java.lang.Throwable getConfigException()
public void setConfigException(java.lang.Throwable e)
public void setBeanClass(java.lang.Class beanClass)
public java.lang.Class getBeanClass()
public java.lang.String getClassName()
public java.lang.Class getJavaBeanClass()
public java.lang.String getComponentInterfaceName()
public ClassComponent getComponentGenerator()
public void setName(java.lang.String name)
public void setInstance(java.lang.Object instance)
public java.lang.Object getInstance()
public void setInstanceClassLoader(java.lang.ClassLoader loader)
public boolean isInit()
public java.lang.Class getInstanceClass()
protected java.lang.Class getInstanceClass(java.lang.Class validationInterface)
public void setInstanceClassName(java.lang.String className)
public java.lang.String getInstanceClassName()
public void setEnhanced(boolean isEnhanced)
public boolean isEnhanced()
public void setIdClass(boolean isIdClass)
public boolean isIdClass()
public boolean isGenerated()
public void setGenerated(boolean isGenerated)
public void addStubMethod(StubMethod method)
public java.util.ArrayList<StubMethod> getMethods()
public void addPostLoadCallback(java.lang.reflect.Method callback)
public java.util.ArrayList<java.lang.reflect.Method> getPostLoadCallbacks()
public void addPrePersistCallback(java.lang.reflect.Method callback)
public java.util.ArrayList<java.lang.reflect.Method> getPrePersistCallbacks()
public void addPostPersistCallback(java.lang.reflect.Method callback)
public java.util.ArrayList<java.lang.reflect.Method> getPostPersistCallbacks()
public void addPreUpdateCallback(java.lang.reflect.Method callback)
public java.util.ArrayList<java.lang.reflect.Method> getPreUpdateCallbacks()
public void addPostUpdateCallback(java.lang.reflect.Method callback)
public java.util.ArrayList<java.lang.reflect.Method> getPostUpdateCallbacks()
public void addPreRemoveCallback(java.lang.reflect.Method callback)
public java.util.ArrayList<java.lang.reflect.Method> getPreRemoveCallbacks()
public void addPostRemoveCallback(java.lang.reflect.Method callback)
public java.util.ArrayList<java.lang.reflect.Method> getPostRemoveCallbacks()
public java.util.ArrayList<java.lang.reflect.Method> getCallbacks(int callbackIndex)
public void addCallback(int callbackIndex, java.lang.reflect.Method callback)
public java.lang.String toString()
toString
in class java.lang.Object