org.progeeks.hibernate
Class MetaObjectInterceptor

java.lang.Object
  extended by org.hibernate.EmptyInterceptor
      extended by org.progeeks.hibernate.MetaObjectInterceptor
All Implemented Interfaces:
java.io.Serializable, org.hibernate.Interceptor

public class MetaObjectInterceptor
extends org.hibernate.EmptyInterceptor

An interceptor that allows Hibernate to create MetaObjects when loading data from the database.

Version:
$Revision: 1.2 $
Author:
Matt Veitas
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.hibernate.EmptyInterceptor
INSTANCE
 
Constructor Summary
MetaObjectInterceptor()
          Creates a new MetaObjectInterceptor that will use a MapMetaKit as its underlying meta-object implementation layer.
 
Method Summary
 java.lang.String getEntityName(java.lang.Object o)
          Returns the entityName of this object (type attribute's value).
 
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

MetaObjectInterceptor

public MetaObjectInterceptor()
Creates a new MetaObjectInterceptor that will use a MapMetaKit as its underlying meta-object implementation layer.

Method Detail

getEntityName

public java.lang.String getEntityName(java.lang.Object o)
                               throws org.hibernate.CallbackException
Returns the entityName of this object (type attribute's value).

Specified by:
getEntityName in interface org.hibernate.Interceptor
Overrides:
getEntityName in class org.hibernate.EmptyInterceptor
Throws:
org.hibernate.CallbackException


Copyright © 2002-2003 Paul Speed. All Rights Reserved.