org.figure8.join.businessobjects.commons.persistence
Class HibernateStepDao

java.lang.Object
  extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
      extended by org.figure8.join.core.persistence.HibernateObjectDao
          extended by org.figure8.join.businessobjects.commons.persistence.HibernateStepDao
All Implemented Interfaces:
StepDao, ObjectDao, org.springframework.beans.factory.InitializingBean

public class HibernateStepDao
extends HibernateObjectDao
implements StepDao

Implementation of StepDao using Hibernate ORM system.

Version:
$Revision: 1.3 $
Author:
Laurent Broudoux

Field Summary
 
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
logger
 
Constructor Summary
HibernateStepDao()
           
 
Method Summary
 java.lang.Class getPersistentClass()
          Get the persistent class associated to this Dao.
 Step getStep(long id)
          Retrieve a step using its datastore identifier
 Step getStep(java.lang.String label)
          Retrieve a step using its label
 Step getStepByPosition(int position)
          Retrieve a step using its position number within integration cycle
 void refreshCache()
          Refresh cache containing step objects.
 void save(EntityObject entityobject)
          Save the given entity into underlying datastore and put it into applicative cache dedicated to Releases if available.
 void setCacheManager(CacheManager manager)
          Step data access object may want to use the cache manager for storing and retrieving steps.
 
Methods inherited from class org.figure8.join.core.persistence.HibernateObjectDao
findAll, findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getById, initialize, initializeAssociation, isInitialized, refresh, remove, replicate
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.figure8.join.core.persistence.ObjectDao
findAll, findAllSorted, initialize, initializeAssociation, isInitialized, refresh, remove, replicate
 

Constructor Detail

HibernateStepDao

public HibernateStepDao()
Method Detail

setCacheManager

public void setCacheManager(CacheManager manager)
Step data access object may want to use the cache manager for storing and retrieving steps. This Cache service provides and eternal cache for step objects.

Specified by:
setCacheManager in interface StepDao
Parameters:
manager - The CacheManager implementation to use.

refreshCache

public void refreshCache()
Refresh cache containing step objects. This consists in reloading cache content from datastore.

Specified by:
refreshCache in interface StepDao

getStep

public Step getStep(long id)
Retrieve a step using its datastore identifier

Specified by:
getStep in interface StepDao
Parameters:
id - The unique id within datatstore
Returns:
The corresponding step or null if no step has this id

getStep

public Step getStep(java.lang.String label)
Retrieve a step using its label

Specified by:
getStep in interface StepDao
Parameters:
label - The label of step to retrieve
Returns:
The corresponding step or null if no step has this label

getStepByPosition

public Step getStepByPosition(int position)
Retrieve a step using its position number within integration cycle

Specified by:
getStepByPosition in interface StepDao
Parameters:
position - The position number of the step to retrieve
Returns:
The step or null if no step exists with this position

getPersistentClass

public java.lang.Class getPersistentClass()
Description copied from interface: ObjectDao
Get the persistent class associated to this Dao.

Specified by:
getPersistentClass in interface ObjectDao
Returns:
org.figure8.join.businessobjects.commons.Step class

save

public void save(EntityObject entityobject)
Save the given entity into underlying datastore and put it into applicative cache dedicated to Releases if available.

Specified by:
save in interface ObjectDao
Overrides:
save in class HibernateObjectDao
Parameters:
entityobject - EntityObject to save


Copyright © 2005-2008 Join. All Rights Reserved.