org.hibernate.test.annotations.tuplizer
Class EntityNameInterceptor
java.lang.Object
org.hibernate.EmptyInterceptor
org.hibernate.test.annotations.tuplizer.EntityNameInterceptor
- All Implemented Interfaces:
- Serializable, Interceptor
public class EntityNameInterceptor
- extends EmptyInterceptor
- See Also:
- Serialized Form
Method Summary |
String |
getEntityName(Object object)
The callback from Hibernate to determine the entity name given
a presumed entity instance. |
Methods inherited from class org.hibernate.EmptyInterceptor |
afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, findDirty, getEntity, instantiate, isTransient, onCollectionRecreate, onCollectionRemove, onCollectionUpdate, onDelete, onFlushDirty, onLoad, onPrepareStatement, onSave, postFlush, preFlush |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityNameInterceptor
public EntityNameInterceptor()
getEntityName
public String getEntityName(Object object)
- The callback from Hibernate to determine the entity name given
a presumed entity instance.
- Specified by:
getEntityName
in interface Interceptor
- Overrides:
getEntityName
in class EmptyInterceptor
- Parameters:
object
- The presumed entity instance.
- Returns:
- The entity name (pointing to the proper entity mapping).
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.