public abstract class BambooHibernateObjectDao extends org.springframework.orm.hibernate5.support.HibernateDaoSupport implements BambooObjectDao
| Constructor and Description |
|---|
BambooHibernateObjectDao() |
| Modifier and Type | Method and Description |
|---|---|
List |
findAll()
Find all objects of the class provided by getPersistentClass()
|
List |
findAllSorted(@Nullable String sortField) |
BambooObject |
findById(long id)
Gets the object from its id
|
<T> T |
findById(long id,
Class<T> persistentClass) |
void |
refresh(com.atlassian.core.bean.EntityObject objectToRefresh)
Update the stat of an object based on the current state of the database.
|
void |
remove(com.atlassian.core.bean.EntityObject objectToRemove)
Remove an object from the database
|
void |
replicate(Object objectToReplicate) |
void |
save(com.atlassian.core.bean.EntityObject objectToSave)
Save an object.
|
void |
saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
Save the object without updateModificationData being called.
|
protected void |
updateModificationData(com.atlassian.core.bean.EntityObject objectToSave)
Perform any modifications that need to be done to an object every time it is
saved.
|
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactorypublic BambooObject findById(long id)
BambooObjectDaofindById in interface BambooObjectDaoBambooObject. null if not found.public <T> T findById(long id,
Class<T> persistentClass)
public void save(com.atlassian.core.bean.EntityObject objectToSave)
save in interface bucket.core.persistence.ObjectDaoobjectToSave - protected void updateModificationData(com.atlassian.core.bean.EntityObject objectToSave)
objectToSave - the object that is about to be savedpublic void replicate(Object objectToReplicate)
replicate in interface bucket.core.persistence.ObjectDaopublic void saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
saveRaw in interface bucket.core.persistence.ObjectDaoobjectToSave - object to savepublic void refresh(com.atlassian.core.bean.EntityObject objectToRefresh)
refresh in interface bucket.core.persistence.ObjectDaoobjectToRefresh - the object to refreshpublic void remove(com.atlassian.core.bean.EntityObject objectToRemove)
remove in interface bucket.core.persistence.ObjectDaoobjectToRemove - the object to removepublic List findAll()
findAll in interface bucket.core.persistence.ObjectDaoCopyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.