com.caucho.amber.type
Class ListenerType

java.lang.Object
  extended by com.caucho.amber.type.AmberType
      extended by com.caucho.amber.type.AbstractEnhancedType
          extended by com.caucho.amber.type.ListenerType
Direct Known Subclasses:
SubListenerType

public class ListenerType
extends AbstractEnhancedType

Represents a listener type: either a default listener declared in orm.xml meta-data or an entity listener specified in @EntityListeners entity annotation.


Field Summary
static java.lang.Class[] CALLBACK_CLASS
           
 
Constructor Summary
ListenerType(AmberPersistenceUnit amberPersistenceUnit)
           
 
Method Summary
 java.lang.Class getInstanceClass()
          Gets the instance class.
 ListenerType getParentType()
          Returns the parent type.
 java.lang.String toString()
          Printable version of the listener.
 
Methods inherited from class com.caucho.amber.type.AbstractEnhancedType
addCallback, addPostLoadCallback, addPostPersistCallback, addPostRemoveCallback, addPostUpdateCallback, addPrePersistCallback, addPreRemoveCallback, addPreUpdateCallback, addStubMethod, getBeanClass, getCallbacks, getClassName, getComponentGenerator, getComponentInterfaceName, getConfigException, getInstance, getInstanceClass, getInstanceClassName, getJavaBeanClass, getMethods, getName, getPersistenceUnit, getPostLoadCallbacks, getPostPersistCallbacks, getPostRemoveCallbacks, getPostUpdateCallbacks, getPrePersistCallbacks, getPreRemoveCallbacks, getPreUpdateCallbacks, isEnhanced, isGenerated, isIdClass, isInit, setBeanClass, setConfigException, setEnhanced, setGenerated, setIdClass, setInstance, setInstanceClassLoader, setInstanceClassName, setName
 
Methods inherited from class com.caucho.amber.type.AmberType
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CALLBACK_CLASS

public static final java.lang.Class[] CALLBACK_CLASS
Constructor Detail

ListenerType

public ListenerType(AmberPersistenceUnit amberPersistenceUnit)
Method Detail

getInstanceClass

public java.lang.Class getInstanceClass()
Gets the instance class.

Overrides:
getInstanceClass in class AbstractEnhancedType

getParentType

public ListenerType getParentType()
Returns the parent type.


toString

public java.lang.String toString()
Printable version of the listener.

Overrides:
toString in class AbstractEnhancedType