bucket.core.persistence
Interface ObjectDao
- All Known Subinterfaces:
- BlogPostDao, CommentDao, ContentEntityObjectDao, ContentPermissionDao, ContentPermissionSetDao, GlobalDescriptionDao, IndexQueueEntryDao, LabelDao, LinkDao, MailDao, NotificationDao, PageDao, PageTemplateDao, PersonalInformationDao, ReferralDao, SpaceDao, SpaceGroupDao, SpacePermissionDao, TrackbackDao, UserStatusDao, VersionedObjectDao, VersionHistoryDao
- All Known Implementing Classes:
- AbstractHibernateAttachmentDao, CachableHibernateObjectDao, CachingPageDao, CachingPersonalInformationDao, ConfluenceHibernateObjectDao, ContentEntityObjectHibernateDao, ContentPermissionHibernateDao, DefaultGlobalDescriptionDao, GenericHibernateVersionedObjectDao, HibernateAttachmentDataDao, HibernateBlogPostDao, HibernateCommentDao, HibernateContentPermissionSetDao, HibernateDraftDao, HibernateIndexQueueEntryDao, HibernateLabelDao, HibernateLinkDao, HibernateMailDao, HibernateNotificationDao, HibernateObjectDao, HibernatePageDao, HibernatePageTemplateDao, HibernatePersonalInformationDao, HibernateReferralDao, HibernateSpaceDao, HibernateSpaceGroupDao, HibernateSpacePermissionDao, HibernateTrackbackDao, HibernateUserStatusDao, HibernateVersionHistoryDao, NonTransactionalHibernateAttachmentDao, TransactionalHibernateAttachmentDao, VersionedHibernateObjectDao
public interface ObjectDao
Method Summary |
java.util.List |
findAll()
Find all objects currently persisted of a particular type. |
java.util.List |
findAllSorted(java.lang.String s)
Find all objects currently persisted of a particular type and sort results by named property. |
java.lang.Class |
getPersistentClass()
|
void |
refresh(com.atlassian.core.bean.EntityObject objectToRrfresh)
Refreshes the object again with the fresh data from db. |
void |
remove(com.atlassian.core.bean.EntityObject object)
Remove object from persistence. |
void |
replicate(java.lang.Object objectToReplicate)
Replicate the object. |
void |
save(com.atlassian.core.bean.EntityObject objectToSave)
|
void |
saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
saves the object. |
remove
void remove(com.atlassian.core.bean.EntityObject object)
- Remove object from persistence.
refresh
void refresh(com.atlassian.core.bean.EntityObject objectToRrfresh)
- Refreshes the object again with the fresh data from db.
replicate
void replicate(java.lang.Object objectToReplicate)
- Replicate the object. Replication does not generate a new id if the object does not exist in database and it
overwrites the database row if the object already exists in database.
findAll
java.util.List findAll()
- Find all objects currently persisted of a particular type.
findAllSorted
java.util.List findAllSorted(java.lang.String s)
- Find all objects currently persisted of a particular type and sort results by named property.
save
void save(com.atlassian.core.bean.EntityObject objectToSave)
getPersistentClass
java.lang.Class getPersistentClass()
saveRaw
void saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
- saves the object. if the object is new, this won't set the creation date on the object.
if it already exists, then it won't set the date that it was updated.
- Parameters:
objectToSave
-
Copyright © 2003-2009 Atlassian Pty Ltd. All Rights Reserved.