com.atlassian.crowd.util.persistence.hibernate
Interface ObjectDao

All Known Subinterfaces:
AddressRestrictionDAO, ApplicationDAO, ApplicationDirectoryPermissionDAO, AttributeDAO, AuthRecordDAO, DirectoryDAO, EntityObjectDAO, GroupDAO, GroupMembershipDAO, PrincipalDAO, ProfileDAO, PropertyDAO, PropertyDAO, RoleDAO, RoleMembershipDAO, SALPropertyDAO, SiteApprovalDAO, SiteDAO, TokenDAO, TokenDAOPersistence, UserDAO
All Known Implementing Classes:
AddressRestrictionDAOHibernate, ApplicationDAOHibernate, ApplicationDirectoryPermissionDAOHibernate, AttributeDAOHibernate, AuthRecordDAOHibernate, DirectoryDAOHibernate, EntityObjectDAOHibernate, GroupDAOHibernate, GroupMembershipDAOHibernate, HibernateDao, PrincipalDAOHibernate, ProfileDAOHibernate, PropertyDAOHibernate, PropertyDAOHibernate, RoleDAOHibernate, RoleMembershipDAOHibernate, SALPropertyDAOHibernate, SiteApprovalDAOHibernate, SiteDAOHibernate, TokenDAOHibernate, TokenDAOMemory, TokenDAOProxy, UserDAOHibernate

public interface ObjectDao


Method Summary
 java.lang.Class getPersistentClass()
          The class that is being persisted
 java.lang.Object load(long ID)
          Loads a persistnce DAO object from the persistence store.
 void remove(java.lang.Object persistentObject)
          Removes the DAO object from the persistence store.
 void save(java.lang.Object persistentObject)
          Saves a new DAO object to the persistence store.
 void update(java.lang.Object persistentObject)
          Updates an existing DAO object, if the object does not exist it will be added to the persistence store.
 

Method Detail

getPersistentClass

java.lang.Class getPersistentClass()
The class that is being persisted

Returns:
Class

save

void save(java.lang.Object persistentObject)
          throws org.springframework.dao.DataAccessException
Saves a new DAO object to the persistence store.

Parameters:
persistentObject - The object to save.
Throws:
org.springframework.dao.DataAccessException - A persistence exception has occurred.

update

void update(java.lang.Object persistentObject)
            throws org.springframework.dao.DataAccessException
Updates an existing DAO object, if the object does not exist it will be added to the persistence store.

Parameters:
persistentObject - The object to update.
Throws:
org.springframework.dao.DataAccessException - A persistence exception has occurred.

remove

void remove(java.lang.Object persistentObject)
            throws org.springframework.dao.DataAccessException
Removes the DAO object from the persistence store.

Parameters:
persistentObject - The object to remove.
Throws:
org.springframework.dao.DataAccessException - A persistence exception has occurred.

load

java.lang.Object load(long ID)
                      throws ObjectNotFoundException
Loads a persistnce DAO object from the persistence store.

Parameters:
ID - The unique identifier of the object to load from the persistence store.
Returns:
Object The populated object from the database
Throws:
ObjectNotFoundException - if the given object with ID for the persistent class does not exist


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.