org.figure8.join.businessobjects.environment.persistence
Class HibernateParameterValueDao

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.environment.persistence.HibernateParameterValueDao
All Implemented Interfaces:
ParameterValueDao, ObjectDao, org.springframework.beans.factory.InitializingBean

public class HibernateParameterValueDao
extends HibernateObjectDao
implements ParameterValueDao

Implementation of ParameterValueDao using Hibernate ORM system.

Version:
$Revision: 1.3 $
Author:
Jerome Evrard

Field Summary
 
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
logger
 
Constructor Summary
HibernateParameterValueDao()
           
 
Method Summary
 java.util.List getCurrentParameterValues(java.lang.String environmentKey, java.lang.String targetName)
          Retrieve all the active parameter values for a specific environment and a specified deployment target.
 java.util.List getHistoricalParameterValues(Parameter parameter, java.lang.String environmentKey)
          Retrieve all the historical parameter values for a specific environment and a specified parameter.
 ParameterValue getParameterValue(long id)
          Retrieve the ParameterValue having this unique identifier
 java.lang.Class getPersistentClass()
          Get the persistent class associated to this Dao.
 
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, save
 
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, save
 

Constructor Detail

HibernateParameterValueDao

public HibernateParameterValueDao()
Method Detail

getParameterValue

public ParameterValue getParameterValue(long id)
Retrieve the ParameterValue having this unique identifier

Specified by:
getParameterValue in interface ParameterValueDao
Parameters:
id - The identifier returned value must have
Returns:
The ParameterValue having this identifier or null if no one matches.

getCurrentParameterValues

public java.util.List getCurrentParameterValues(java.lang.String environmentKey,
                                                java.lang.String targetName)
Retrieve all the active parameter values for a specific environment and a specified deployment target.

Specified by:
getCurrentParameterValues in interface ParameterValueDao
Parameters:
environmentKey - The key of the physical environment to retrieve values for
targetName - The name of the deployment target to retrieve values for
Returns:
A list of org.figure8.join.businessobjects.environment.ParameterValue.

getHistoricalParameterValues

public java.util.List getHistoricalParameterValues(Parameter parameter,
                                                   java.lang.String environmentKey)
Retrieve all the historical parameter values for a specific environment and a specified parameter.

Specified by:
getHistoricalParameterValues in interface ParameterValueDao
Parameters:
parameter - The parameter to retrieve values for
environmentKey - The key of the physical environment to retrieve values for
Returns:
A list of org.figure8.join.businessobjects.environment.ParameterValue.

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.environment.ParameterValue class


Copyright © 2005-2008 Join. All Rights Reserved.