org.apache.jackrabbit.core.state.orm.hibernate
Class HibernatePersistenceManager

java.lang.Object
  extended byorg.apache.jackrabbit.core.state.orm.hibernate.HibernatePersistenceManager
All Implemented Interfaces:
PersistenceManager

public class HibernatePersistenceManager
extends Object
implements PersistenceManager

Hibernate implementation of a Jackrabbit persistence manager.


Constructor Summary
HibernatePersistenceManager()
           
 
Method Summary
 void close()
           
 NodeState createNew(NodeId id)
           
 PropertyState createNew(PropertyId id)
           
 void destroy(NodeReferences refs, net.sf.hibernate.Session session)
           
 void destroy(NodeState state, net.sf.hibernate.Session session)
           
 void destroy(PropertyState state, net.sf.hibernate.Session session)
           
 boolean exists(NodeId id)
           
 boolean exists(NodeReferencesId targetId)
           
 boolean exists(PropertyId id)
           
 void init(PMContext context)
           
 NodeState load(NodeId nodeId)
           
 NodeReferences load(NodeReferencesId targetId)
           
 PropertyState load(PropertyId propId)
           
 void store(ChangeLog changeLog)
           
 void store(NodeReferences refs, net.sf.hibernate.Session session)
           
 void store(NodeState state, net.sf.hibernate.Session session)
           
 void store(PropertyState state, net.sf.hibernate.Session session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernatePersistenceManager

public HibernatePersistenceManager()
Method Detail

init

public void init(PMContext context)
          throws Exception
Specified by:
init in interface PersistenceManager
Throws:
Exception
See Also:
PersistenceManager.init(org.apache.jackrabbit.core.state.PMContext)

close

public void close()
           throws Exception
Specified by:
close in interface PersistenceManager
Throws:
Exception
See Also:
PersistenceManager.close()

load

public NodeState load(NodeId nodeId)
               throws NoSuchItemStateException,
                      ItemStateException
Specified by:
load in interface PersistenceManager
Throws:
NoSuchItemStateException
ItemStateException
See Also:
PersistenceManager.load(NodeId)

load

public PropertyState load(PropertyId propId)
                   throws NoSuchItemStateException,
                          ItemStateException
Specified by:
load in interface PersistenceManager
Throws:
NoSuchItemStateException
ItemStateException
See Also:
PersistenceManager.load(PropertyId)

load

public NodeReferences load(NodeReferencesId targetId)
                    throws NoSuchItemStateException,
                           ItemStateException
Specified by:
load in interface PersistenceManager
Throws:
NoSuchItemStateException
ItemStateException
See Also:
PersistenceManager.load(NodeReferencesId)

exists

public boolean exists(NodeId id)
               throws ItemStateException
Specified by:
exists in interface PersistenceManager
Throws:
ItemStateException
See Also:
PersistenceManager.exists(NodeId)

exists

public boolean exists(PropertyId id)
               throws ItemStateException
Specified by:
exists in interface PersistenceManager
Throws:
ItemStateException
See Also:
PersistenceManager.exists(PropertyId)

exists

public boolean exists(NodeReferencesId targetId)
               throws ItemStateException
Specified by:
exists in interface PersistenceManager
Throws:
ItemStateException
See Also:
PersistenceManager.exists(NodeReferencesId)

store

public void store(NodeState state,
                  net.sf.hibernate.Session session)
           throws ItemStateException,
                  net.sf.hibernate.HibernateException
Throws:
ItemStateException
net.sf.hibernate.HibernateException
See Also:
AbstractPersistenceManager.store(NodeState)

store

public void store(PropertyState state,
                  net.sf.hibernate.Session session)
           throws ItemStateException,
                  net.sf.hibernate.HibernateException
Throws:
ItemStateException
net.sf.hibernate.HibernateException
See Also:
AbstractPersistenceManager.store(PropertyState)

store

public void store(NodeReferences refs,
                  net.sf.hibernate.Session session)
           throws ItemStateException,
                  net.sf.hibernate.HibernateException
Throws:
ItemStateException
net.sf.hibernate.HibernateException
See Also:
AbstractPersistenceManager.store(NodeReferences)

destroy

public void destroy(NodeState state,
                    net.sf.hibernate.Session session)
             throws ItemStateException,
                    net.sf.hibernate.HibernateException
Throws:
ItemStateException
net.sf.hibernate.HibernateException
See Also:
AbstractPersistenceManager.destroy(NodeState)

destroy

public void destroy(PropertyState state,
                    net.sf.hibernate.Session session)
             throws ItemStateException,
                    net.sf.hibernate.HibernateException
Throws:
ItemStateException
net.sf.hibernate.HibernateException
See Also:
AbstractPersistenceManager.destroy(PropertyState)

destroy

public void destroy(NodeReferences refs,
                    net.sf.hibernate.Session session)
             throws ItemStateException,
                    net.sf.hibernate.HibernateException
Throws:
ItemStateException
net.sf.hibernate.HibernateException
See Also:
AbstractPersistenceManager.destroy(NodeReferences)

createNew

public NodeState createNew(NodeId id)
Specified by:
createNew in interface PersistenceManager
See Also:
PersistenceManager.createNew(org.apache.jackrabbit.core.NodeId)

createNew

public PropertyState createNew(PropertyId id)
Specified by:
createNew in interface PersistenceManager
See Also:
PersistenceManager.createNew(org.apache.jackrabbit.core.NodeId)

store

public void store(ChangeLog changeLog)
           throws ItemStateException
Specified by:
store in interface PersistenceManager
Throws:
ItemStateException
See Also:
This method ensures that changes are either written completely to the underlying persistence layer, or not at all.


Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.