public class EventListenerMetaData extends MetaData
EXTENSION_CLASS_MULTITENANCY_COLUMN_LENGTH, EXTENSION_CLASS_MULTITENANCY_COLUMN_NAME, EXTENSION_CLASS_MULTITENANCY_DISABLE, EXTENSION_CLASS_MULTITENANCY_JDBC_TYPE, EXTENSION_CLASS_READ_ONLY, EXTENSION_CLASS_VERSION_FIELD_NAME, EXTENSION_MEMBER_CACHEABLE, EXTENSION_MEMBER_CALENDAR_ONE_COLUMN, EXTENSION_MEMBER_CASCADE_PERSIST, EXTENSION_MEMBER_CASCADE_REFRESH, EXTENSION_MEMBER_CASCADE_UPDATE, EXTENSION_MEMBER_COMPARATOR_NAME, EXTENSION_MEMBER_CONTAINER_ALLOW_NULLS, EXTENSION_MEMBER_ENUM_GETTER_BY_VALUE, EXTENSION_MEMBER_ENUM_VALUE_GETTER, EXTENSION_MEMBER_FETCH_FK_ONLY, EXTENSION_MEMBER_IMPLEMENTATION_CLASSES, EXTENSION_MEMBER_INSERTABLE, EXTENSION_MEMBER_LIST_ORDERING, EXTENSION_MEMBER_STRATEGY_WHEN_NOTNULL, EXTENSION_MEMBER_TYPE_CONVERTER_DISABLED, EXTENSION_MEMBER_TYPE_CONVERTER_NAME, EXTENSION_MEMBER_UPDATEABLE, extensions, METADATA_CREATED_STATE, METADATA_INITIALISED_STATE, METADATA_POPULATED_STATE, METADATA_USED_STATE, metaDataState, parent, VENDOR_NAME| Constructor and Description |
|---|
EventListenerMetaData(String className)
Constructor for an EventListener MetaData
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCallback(String callbackClassName,
String methodName)
Method to add a method name for this EventListener.
|
void |
addCallback(String callbackClassName,
String className,
String methodName)
Method to add a method name for this EventListener.
|
String |
getClassName()
Accessor for the name of the EventListener class
|
String |
getMethodNameForCallbackClass(String callbackClassName)
Accessor for the method name in the EventListener class that handles the specified callback event
|
addExtension, addExtension, getExtensions, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, initialise, isInitialised, isPopulated, isUsed, newExtensionMetaData, removeExtension, setParent, toString, toStringpublic EventListenerMetaData(String className)
className - Name of the EventListener classpublic String getClassName()
public void addCallback(String callbackClassName, String methodName)
callbackClassName - Name of the callback type (javax.persistence.PrePersist etc)methodName - The method in the EventListener class that handles itpublic void addCallback(String callbackClassName, String className, String methodName)
callbackClassName - Name of the callback classclassName - Name of the class declaring the methodmethodName - The method in the className class that handles itpublic String getMethodNameForCallbackClass(String callbackClassName)
callbackClassName - Name of the callback classCopyright © 2016. All rights reserved.