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

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.HibernateEnvironmentMappingDao
All Implemented Interfaces:
EnvironmentMappingDao, ObjectDao, org.springframework.beans.factory.InitializingBean

public class HibernateEnvironmentMappingDao
extends HibernateObjectDao
implements EnvironmentMappingDao

Implementation of EnvironmentMappingDao using Hibernate ORM system.

Version:
$Revision: 1.2 $
Author:
Laurent Broudoux

Field Summary
 
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
logger
 
Constructor Summary
HibernateEnvironmentMappingDao()
          Creates a new instance of HibernateEnvironmentMappingDao
 
Method Summary
 java.util.List getAllEnvironmentMappings(LogicalEnvironment logicalEnv)
          Retrieve all the environment mappings for a LogicalEnvironment through time
 java.util.List getAllEnvironmentMappings(PhysicalEnvironment physicalEnv)
          Retrieve all the environment mappings for a PhysicalEnvironment through time
 EnvironmentMapping getEnvironmentMapping(LogicalEnvironment logicalEnv, java.util.Date date)
          Retrieve the environment mapping for a LogicalEnvironment active at specified date
 EnvironmentMapping getEnvironmentMapping(long id)
          Retrieve the environment mapping having this 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

HibernateEnvironmentMappingDao

public HibernateEnvironmentMappingDao()
Creates a new instance of HibernateEnvironmentMappingDao

Method Detail

getEnvironmentMapping

public EnvironmentMapping getEnvironmentMapping(long id)
Retrieve the environment mapping having this identifier

Specified by:
getEnvironmentMapping in interface EnvironmentMappingDao
Parameters:
id - The unique identifier of mapping to retrieve
Returns:
The EnvironmentMapping having this identifier or null if no one match

getAllEnvironmentMappings

public java.util.List getAllEnvironmentMappings(LogicalEnvironment logicalEnv)
Retrieve all the environment mappings for a LogicalEnvironment through time

Specified by:
getAllEnvironmentMappings in interface EnvironmentMappingDao
Parameters:
logicalEnv - The logical environment to retrieve mappings for
Returns:
A list of org.figure8.join.businessobjects.environment.EnvironmentMapping objects

getEnvironmentMapping

public EnvironmentMapping getEnvironmentMapping(LogicalEnvironment logicalEnv,
                                                java.util.Date date)
Retrieve the environment mapping for a LogicalEnvironment active at specified date

Specified by:
getEnvironmentMapping in interface EnvironmentMappingDao
Parameters:
logicalEnv - The logical environment to retrieve mapping for
date - The date to retrieve active mapping
Returns:
The active org.figure8.join.businessobjects.environment.EnvironmentMapping or null

getAllEnvironmentMappings

public java.util.List getAllEnvironmentMappings(PhysicalEnvironment physicalEnv)
Retrieve all the environment mappings for a PhysicalEnvironment through time

Specified by:
getAllEnvironmentMappings in interface EnvironmentMappingDao
Parameters:
physicalEnv - The physical environment to retrieve mappings for
Returns:
A list of org.figure8.join.businessobjects.environment.EnvironmentMapping objects

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:
The org.figure8.join.businessobjects.environment.EnvironmentMapping class


Copyright © 2005-2008 Join. All Rights Reserved.