Package com.atlassian.bamboo.persister
Class OidGenerationInterceptor
java.lang.Object
org.springframework.orm.hibernate.support.ChainedInterceptorSupport
com.atlassian.bamboo.persister.OidGenerationInterceptor
- All Implemented Interfaces:
org.hibernate.Interceptor
Hibernate interceptor that generates entities OIDs on save.
-
Field Summary
Fields inherited from class org.springframework.orm.hibernate.support.ChainedInterceptorSupport
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onSave
(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types) Methods inherited from class org.springframework.orm.hibernate.support.ChainedInterceptorSupport
afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, findDirty, getEntity, getEntityName, getNextInterceptor, instantiate, isTransient, onCollectionRecreate, onCollectionRemove, onCollectionUpdate, onDelete, onFlushDirty, onLoad, onPrepareStatement, postFlush, preFlush, setIdOnNewEntity, setNextInterceptor
-
Constructor Details
-
OidGenerationInterceptor
public OidGenerationInterceptor()
-
-
Method Details
-
onSave
public boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException - Specified by:
onSave
in interfaceorg.hibernate.Interceptor
- Overrides:
onSave
in classChainedInterceptorSupport
- Throws:
org.hibernate.CallbackException
- See Also:
-
Interceptor.onSave(java.lang.Object, java.io.Serializable, java.lang.Object[], java.lang.String[], org.hibernate.type.Type[])
-