org.alfresco.repo.domain.hibernate
Class LifecycleAdapter
java.lang.Object
org.alfresco.repo.domain.hibernate.LifecycleAdapter
- All Implemented Interfaces:
- org.hibernate.classic.Lifecycle
- Direct Known Subclasses:
- DbAccessControlListImpl, NodeImpl, ServerImpl, TransactionImpl
public abstract class LifecycleAdapter
- extends java.lang.Object
- implements org.hibernate.classic.Lifecycle
Helper base class providing lifecycle and other support
Fields inherited from interface org.hibernate.classic.Lifecycle |
NO_VETO, VETO |
Method Summary |
protected org.hibernate.Session |
getSession()
|
boolean |
onDelete(org.hibernate.Session session)
|
void |
onLoad(org.hibernate.Session session,
java.io.Serializable id)
NO OP |
boolean |
onSave(org.hibernate.Session session)
|
boolean |
onUpdate(org.hibernate.Session session)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LifecycleAdapter
public LifecycleAdapter()
getSession
protected org.hibernate.Session getSession()
- Returns:
- Returns the session that this object was used in
onDelete
public boolean onDelete(org.hibernate.Session session)
throws org.hibernate.CallbackException
- Specified by:
onDelete
in interface org.hibernate.classic.Lifecycle
- Returns:
- Returns NO_VETO always
- Throws:
org.hibernate.CallbackException
onLoad
public void onLoad(org.hibernate.Session session,
java.io.Serializable id)
- NO OP
- Specified by:
onLoad
in interface org.hibernate.classic.Lifecycle
onSave
public boolean onSave(org.hibernate.Session session)
throws org.hibernate.CallbackException
- Specified by:
onSave
in interface org.hibernate.classic.Lifecycle
- Returns:
- Returns NO_VETO always
- Throws:
org.hibernate.CallbackException
onUpdate
public boolean onUpdate(org.hibernate.Session session)
throws org.hibernate.CallbackException
- Specified by:
onUpdate
in interface org.hibernate.classic.Lifecycle
- Returns:
- Returns NO_VETO always
- Throws:
org.hibernate.CallbackException
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.