This project has retired. For details please refer to its
Attic page.
JdoAccess
org.apache.maven.archiva.database.jdo
Class JdoAccess
java.lang.Object
org.apache.maven.archiva.database.jdo.JdoAccess
- All Implemented Interfaces:
- javax.jdo.listener.InstanceLifecycleListener, javax.jdo.listener.StoreLifecycleListener, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
public class JdoAccess
- extends java.lang.Object
- implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, javax.jdo.listener.InstanceLifecycleListener, javax.jdo.listener.StoreLifecycleListener
JdoAccess
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdoAccess
public JdoAccess()
initialize
public void initialize()
throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
- Specified by:
initialize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
- Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
dumpObjectState
public static void dumpObjectState(java.io.PrintStream out,
java.lang.Object o)
getPersistenceManager
public javax.jdo.PersistenceManager getPersistenceManager()
enableCache
public void enableCache(java.lang.Class<?> clazz)
saveObject
public java.lang.Object saveObject(java.lang.Object object)
saveObject
public java.lang.Object saveObject(java.lang.Object object,
java.lang.String[] fetchGroups)
getAllObjects
public java.util.List<?> getAllObjects(java.lang.Class<?> clazz)
queryObjects
public java.util.List<?> queryObjects(java.lang.Class<?> clazz,
Constraint constraint)
queryObjects
public java.util.List<?> queryObjects(SimpleConstraint constraint)
getObjectById
public java.lang.Object getObjectById(java.lang.Class<?> clazz,
java.lang.Object id,
java.lang.String fetchGroup)
throws ObjectNotFoundException,
ArchivaDatabaseException
- Throws:
ObjectNotFoundException
ArchivaDatabaseException
getObjectById
public java.lang.Object getObjectById(java.lang.Class<?> clazz,
java.lang.String id,
java.lang.String fetchGroup)
throws ObjectNotFoundException,
ArchivaDatabaseException
- Throws:
ObjectNotFoundException
ArchivaDatabaseException
objectExists
public boolean objectExists(java.lang.Object object)
objectExistsById
public boolean objectExistsById(java.lang.Class<?> clazz,
java.lang.String id)
throws ArchivaDatabaseException
- Throws:
ArchivaDatabaseException
removeObject
public void removeObject(java.lang.Object o)
throws ArchivaDatabaseException
- Throws:
ArchivaDatabaseException
rollbackIfActive
public void rollbackIfActive(javax.jdo.Transaction tx)
closePersistenceManager
public void closePersistenceManager(javax.jdo.PersistenceManager pm)
postDelete
public void postDelete(javax.jdo.listener.InstanceLifecycleEvent evt)
preDelete
public void preDelete(javax.jdo.listener.InstanceLifecycleEvent evt)
postStore
public void postStore(javax.jdo.listener.InstanceLifecycleEvent evt)
- Specified by:
postStore
in interface javax.jdo.listener.StoreLifecycleListener
preStore
public void preStore(javax.jdo.listener.InstanceLifecycleEvent evt)
- Specified by:
preStore
in interface javax.jdo.listener.StoreLifecycleListener
removeAll
public void removeAll(java.lang.Class<?> aClass)
getJdoFactory
public org.codehaus.plexus.jdo.JdoFactory getJdoFactory()
countObjects
public long countObjects(SimpleConstraint constraint)
countObjects
public long countObjects(java.lang.Class<?> clazz,
DeclarativeConstraint constraint)