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

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

public class HibernateMachineDao
extends HibernateObjectDao
implements MachineDao

Implementation of MachineDao using Hibernate ORM system.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux

Field Summary
 
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
logger
 
Constructor Summary
HibernateMachineDao()
           
 
Method Summary
 Machine getMachine(long id)
          Retrieve a Machine using its unique identifier
 Machine getMachine(java.lang.String name)
          Retrieve a Machine using its name.
 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

HibernateMachineDao

public HibernateMachineDao()
Method Detail

getMachine

public Machine getMachine(long id)
Retrieve a Machine using its unique identifier

Specified by:
getMachine in interface MachineDao
Parameters:
id - The unique identifier of machine to retrieve
Returns:
The correspnoding machine or null if no machine has this id

getMachine

public Machine getMachine(java.lang.String name)
Retrieve a Machine using its name.

Specified by:
getMachine in interface MachineDao
Parameters:
name - Name of machine to retrieve
Returns:
The machine with this name or null if no machine 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:
org.figure8.join.businessobjects.environment.Machine class


Copyright © 2005-2008 Join. All Rights Reserved.