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
 List findAll()
          Find all objects currently persisted of a particular type.
 List findAllSorted(String s)
          Find all objects currently persisted of a particular type and sort results by named property.
 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(Object objectToReplicate)
          Replicate the object.
 void save(com.atlassian.core.bean.EntityObject objectToSave)
           
 void saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
          saves the object.
 

Method Detail

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(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

List findAll()
Find all objects currently persisted of a particular type.


findAllSorted

List findAllSorted(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

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-2011 Atlassian. All Rights Reserved.