|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.EmptyInterceptor org.springframework.orm.hibernate3.support.ScopedBeanInterceptor
public class ScopedBeanInterceptor
Hibernate3 interceptor used for getting the proper entity name for scoped beans. As scoped bean classes are proxies generated at runtime, they are unrecognized by the persisting framework. Using this interceptor, the original scoped bean class is retrieved end exposed to Hibernate for persisting.
Usage example:
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> ... <property name="entityInterceptor"> <bean class="org.springframework.orm.hibernate3.support.ScopedBeanInterceptor"/> </property> </bean>
Field Summary |
---|
Fields inherited from class org.hibernate.EmptyInterceptor |
---|
INSTANCE |
Constructor Summary | |
---|---|
ScopedBeanInterceptor()
|
Method Summary | |
---|---|
String |
getEntityName(Object entity)
|
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 |
---|
public ScopedBeanInterceptor()
Method Detail |
---|
public String getEntityName(Object entity)
getEntityName
in interface org.hibernate.Interceptor
getEntityName
in class org.hibernate.EmptyInterceptor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |