org.figure8.join.core.persistence
Interface ObjectDao

All Known Subinterfaces:
AssemblyDao, BuildDao, ComponentDao, ComponentTypeDao, DeliverableDao, DeliverableTypeDao, DeploymentDao, EISMappingDao, EnvironmentMappingDao, EventDao, JMSConsumerBeanInfoDao, LogicalEnvironmentDao, MachineDao, MailingListDao, MessageDao, ParameterDao, ParameterValueDao, PermissionDao, PhysicalEnvironmentDao, QuartzCronInfoDao, ReleaseDao, ResourceDao, ResourceMappingDao, ResourceTypeDao, ResourceVersionDao, RoleDao, ScriptLogInfoDao, StatusDao, StepDao, SubscriptionDao, TargetDao, UserDao, VersionedResourceUpdateDao
All Known Implementing Classes:
GenericHibernateObjectDao, HibernateAssemblyDao, HibernateBuildDao, HibernateComponentDao, HibernateComponentTypeDao, HibernateDeliverableDao, HibernateDeliverableTypeDao, HibernateDeploymentDao, HibernateEISMappingDao, HibernateEnvironmentMappingDao, HibernateEventDao, HibernateJMSConsumerBeanInfoDao, HibernateLogicalEnvironmentDao, HibernateMachineDao, HibernateMailingListDao, HibernateMessageDao, HibernateObjectDao, HibernateParameterDao, HibernateParameterValueDao, HibernatePermissionDao, HibernatePhysicalEnvironmentDao, HibernateQuartzCronInfoDao, HibernateReleaseDao, HibernateResourceDao, HibernateResourceMappingDao, HibernateResourceTypeDao, HibernateResourceVersionDao, HibernateRoleDao, HibernateScriptLogInfoDao, HibernateStatusDao, HibernateStepDao, HibernateSubscriptionDao, HibernateTargetDao, HibernateUserDao, HibernateVersionedResourceUpdateDao, JdbcUserDao

public interface ObjectDao

This is an interface for defining an entity object Data Access Object. A Dao is the layer responsible for managing datastore access details.

Version:
$Revision: 1.3 $
Author:
Laurent Broudoux

Method Summary
 java.util.List findAll()
          Find all entity objects associated with this Dao.
 java.util.List findAllSorted(java.lang.String sortField)
          Find all entity objects asscoiated with this Dao.
 java.lang.Class getPersistentClass()
          Get the persistent class associated to this Dao.
 void initialize(EntityObject entityobject)
          Force initialization of the given entity from underlying datastore (this may involves initialization of lazily loaded relations fields)
 void initializeAssociation(EntityObject entityobject, java.lang.Object proxy)
          Force initialization of the given entity association from underlying datastore
 boolean isInitialized(java.lang.Object object)
          Check if an object (EntityObject or association proxy) is initialized from datastore
 void refresh(EntityObject entityobject)
          Re-read the content of the given entity from underlying datastore.
 void remove(EntityObject entityobject)
          Remove the given entity object from underlying datastore.
 void replicate(java.lang.Object obj)
          Persist the object state throughout the cluster.
 void save(EntityObject entityobject)
          Save the given entity into underlying datastore.
 

Method Detail

save

void save(EntityObject entityobject)
Save the given entity into underlying datastore.

Parameters:
entityobject - EntityObject to save

remove

void remove(EntityObject entityobject)
Remove the given entity object from underlying datastore.

Parameters:
entityobject - EntityObject to remove

refresh

void refresh(EntityObject entityobject)
Re-read the content of the given entity from underlying datastore.

Parameters:
entityobject - EntityObject to refresh content

initialize

void initialize(EntityObject entityobject)
Force initialization of the given entity from underlying datastore (this may involves initialization of lazily loaded relations fields)

Parameters:
entityobject - EntityObject to initialize

initializeAssociation

void initializeAssociation(EntityObject entityobject,
                           java.lang.Object proxy)
Force initialization of the given entity association from underlying datastore

Parameters:
entityobject - EntityObject whose association shoud be initialized
proxy - A proxy object representing entoty association (this may be a collection)

isInitialized

boolean isInitialized(java.lang.Object object)
Check if an object (EntityObject or association proxy) is initialized from datastore

Parameters:
object - The object to check initialization for
Returns:
true if object has been loaded from datastore, false otherwise

replicate

void replicate(java.lang.Object obj)
Persist the object state throughout the cluster.

Parameters:
obj - The object to replicate

findAll

java.util.List findAll()
Find all entity objects associated with this Dao.

Returns:
A List of EntityObjects

findAllSorted

java.util.List findAllSorted(java.lang.String sortField)
Find all entity objects asscoiated with this Dao. The result list is sorted by sortField criteria.

Parameters:
sortField - Field for sorting criteria
Returns:
A List of EntityObjects

getPersistentClass

java.lang.Class getPersistentClass()
Get the persistent class associated to this Dao.

Returns:
The class of the persistent object


Copyright © 2005-2008 Join. All Rights Reserved.