org.apache.continuum.dao
Class AbstractDao
java.lang.Object
org.apache.continuum.dao.AbstractDao
- Direct Known Subclasses:
- BuildDefinitionDaoImpl, BuildDefinitionTemplateDaoImpl, BuildQueueDaoImpl, BuildResultDaoImpl, ContinuumReleaseResultDaoImpl, DaoUtilsImpl, DirectoryPurgeConfigurationDaoImpl, DistributedDirectoryPurgeConfigurationDaoImpl, InstallationDaoImpl, LocalRepositoryDaoImpl, NotifierDaoImpl, ProfileDaoImpl, ProjectDaoImpl, ProjectGroupDaoImpl, ProjectScmRootDaoImpl, RepositoryPurgeConfigurationDaoImpl, ScheduleDaoImpl, SystemConfigurationDaoImpl
public class AbstractDao
- extends Object
- Version:
- $Id: AbstractDao.java 1372260 2012-08-13 04:29:09Z brett $
- Author:
- Emmanuel Venisse
Method Summary |
protected Object |
addObject(Object object)
|
protected void |
attachAndDelete(Object object)
|
protected List |
getAllObjectsDetached(Class clazz)
|
protected List |
getAllObjectsDetached(Class clazz,
String fetchGroup)
|
protected List |
getAllObjectsDetached(Class clazz,
String ordering,
String fetchGroup)
|
protected List |
getAllObjectsDetached(javax.jdo.PersistenceManager pmf,
Class clazz,
String ordering,
String fetchGroup)
|
protected javax.jdo.PersistenceManagerFactory |
getContinuumPersistenceManagerFactory()
|
protected Object |
getObjectById(Class clazz,
int id)
|
protected Object |
getObjectById(Class clazz,
int id,
String fetchGroup)
|
protected Object |
getObjectFromQuery(Class clazz,
String idField,
String id,
String fetchGroup)
|
protected javax.jdo.PersistenceManager |
getPersistenceManager()
|
protected Object |
makePersistent(javax.jdo.PersistenceManager pm,
Object object,
boolean detach)
|
protected void |
removeObject(Object o)
|
protected void |
rollback(javax.jdo.Transaction tx)
|
protected void |
updateObject(Object object)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROJECT_WITH_BUILDS_FETCH_GROUP
protected static final String PROJECT_WITH_BUILDS_FETCH_GROUP
- See Also:
- Constant Field Values
PROJECT_WITH_CHECKOUT_RESULT_FETCH_GROUP
protected static final String PROJECT_WITH_CHECKOUT_RESULT_FETCH_GROUP
- See Also:
- Constant Field Values
BUILD_RESULT_WITH_DETAILS_FETCH_GROUP
protected static final String BUILD_RESULT_WITH_DETAILS_FETCH_GROUP
- See Also:
- Constant Field Values
PROJECT_BUILD_DETAILS_FETCH_GROUP
protected static final String PROJECT_BUILD_DETAILS_FETCH_GROUP
- See Also:
- Constant Field Values
PROJECT_ALL_DETAILS_FETCH_GROUP
protected static final String PROJECT_ALL_DETAILS_FETCH_GROUP
- See Also:
- Constant Field Values
PROJECT_DEPENDENCIES_FETCH_GROUP
protected static final String PROJECT_DEPENDENCIES_FETCH_GROUP
- See Also:
- Constant Field Values
PROJECTGROUP_PROJECTS_FETCH_GROUP
protected static final String PROJECTGROUP_PROJECTS_FETCH_GROUP
- See Also:
- Constant Field Values
BUILD_TEMPLATE_BUILD_DEFINITIONS
protected static final String BUILD_TEMPLATE_BUILD_DEFINITIONS
- See Also:
- Constant Field Values
AbstractDao
public AbstractDao()
addObject
protected Object addObject(Object object)
removeObject
protected void removeObject(Object o)
updateObject
protected void updateObject(Object object)
throws ContinuumStoreException
- Throws:
ContinuumStoreException
getObjectById
protected Object getObjectById(Class clazz,
int id)
throws ContinuumStoreException
- Throws:
ContinuumStoreException
getObjectById
protected Object getObjectById(Class clazz,
int id,
String fetchGroup)
throws ContinuumStoreException
- Throws:
ContinuumStoreException
getObjectFromQuery
protected Object getObjectFromQuery(Class clazz,
String idField,
String id,
String fetchGroup)
throws ContinuumStoreException
- Throws:
ContinuumStoreException
getAllObjectsDetached
protected List getAllObjectsDetached(Class clazz)
getAllObjectsDetached
protected List getAllObjectsDetached(Class clazz,
String fetchGroup)
getAllObjectsDetached
protected List getAllObjectsDetached(Class clazz,
String ordering,
String fetchGroup)
getAllObjectsDetached
protected List getAllObjectsDetached(javax.jdo.PersistenceManager pmf,
Class clazz,
String ordering,
String fetchGroup)
rollback
protected void rollback(javax.jdo.Transaction tx)
attachAndDelete
protected void attachAndDelete(Object object)
getPersistenceManager
protected javax.jdo.PersistenceManager getPersistenceManager()
getContinuumPersistenceManagerFactory
protected javax.jdo.PersistenceManagerFactory getContinuumPersistenceManagerFactory()
makePersistent
protected Object makePersistent(javax.jdo.PersistenceManager pm,
Object object,
boolean detach)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.