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

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

public class HibernatePhysicalEnvironmentDao
extends HibernateObjectDao
implements PhysicalEnvironmentDao

Implementation of PhysicalEnvironmentDao 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
HibernatePhysicalEnvironmentDao()
           
 
Method Summary
 java.lang.Class getPersistentClass()
          Get the persistent class associated to this Dao.
 PhysicalEnvironment getPhysicalEnvironment(long id)
          Retrieve a physical environment using its entity identifier
 PhysicalEnvironment getPhysicalEnvironment(java.lang.String key)
          Retrieve a physical environment using its key
 
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

HibernatePhysicalEnvironmentDao

public HibernatePhysicalEnvironmentDao()
Method Detail

getPhysicalEnvironment

public PhysicalEnvironment getPhysicalEnvironment(long id)
Retrieve a physical environment using its entity identifier

Specified by:
getPhysicalEnvironment in interface PhysicalEnvironmentDao
Parameters:
id - The environment unique identifier
Returns:
The PhysicalEnvironment with this id or null if no environment is found

getPhysicalEnvironment

public PhysicalEnvironment getPhysicalEnvironment(java.lang.String key)
Retrieve a physical environment using its key

Specified by:
getPhysicalEnvironment in interface PhysicalEnvironmentDao
Parameters:
key - The business key of the environment to retrieve
Returns:
The PhysicalEnvironment with this key or null if no environment is found

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.PhysicalEnvironment class


Copyright © 2005-2008 Join. All Rights Reserved.