org.hibernate.test.annotations.tuplizer
Class EntityNameInterceptor

java.lang.Object
  extended by org.hibernate.EmptyInterceptor
      extended by org.hibernate.test.annotations.tuplizer.EntityNameInterceptor
All Implemented Interfaces:
Serializable, Interceptor

public class EntityNameInterceptor
extends EmptyInterceptor

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.hibernate.EmptyInterceptor
INSTANCE
 
Constructor Summary
EntityNameInterceptor()
           
 
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
 

Constructor Detail

EntityNameInterceptor

public EntityNameInterceptor()
Method Detail

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.