|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.orm.hibernate.support.HibernateDaoSupport org.figure8.join.core.persistence.HibernateObjectDao org.figure8.join.businessobjects.environment.persistence.HibernateResourceMappingDao
public class HibernateResourceMappingDao
Implementation of EnvironmentMappingDao using Hibernate ORM system.
Field Summary |
---|
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
---|
logger |
Constructor Summary | |
---|---|
HibernateResourceMappingDao()
Creates a new instance of HibernateResourceMappingDao. |
Method Summary | |
---|---|
java.lang.Class |
getPersistentClass()
Get the persistent class associated to this Dao. |
ResourceMapping |
getResourceMapping(long id)
Retrieve the resource mapping having this identifier |
java.util.List |
getResourceMappingsForEnvironment(PhysicalEnvironment environment,
java.util.Date date)
Retrieve the list of resource mappings active for environment on specfied date |
java.util.List |
getResourceMappingsForEnvironment(PhysicalEnvironment environment,
java.util.Date startDate,
java.util.Date endDate)
Retrieve a list of resource mappings done onto an environment during a specified interval. |
java.util.List |
getResourceMappingsForResource(AbstractResource resource,
java.util.Date startDate,
java.util.Date endDate)
Retrieve a list of resource mappings done onto a resource during a specified interval |
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 |
---|
public HibernateResourceMappingDao()
Method Detail |
---|
public ResourceMapping getResourceMapping(long id)
getResourceMapping
in interface ResourceMappingDao
id
- The unique identifier of mapping to retrieve
public java.util.List getResourceMappingsForResource(AbstractResource resource, java.util.Date startDate, java.util.Date endDate)
getResourceMappingsForResource
in interface ResourceMappingDao
resource
- The resource to retrieve mappings forstartDate
- The starting date of time interval to searchendDate
- The ending date of time interval to search
org.figure8.join.businessobjects.environment.ResourceMapping
objectspublic java.util.List getResourceMappingsForEnvironment(PhysicalEnvironment environment, java.util.Date date)
getResourceMappingsForEnvironment
in interface ResourceMappingDao
environment
- The physical environment to retrieve mappings fordate
- The date to retrieve active mappings
org.figure8.join.businessobjects.environment.ResourceMapping
objectspublic java.util.List getResourceMappingsForEnvironment(PhysicalEnvironment environment, java.util.Date startDate, java.util.Date endDate)
getResourceMappingsForEnvironment
in interface ResourceMappingDao
environment
- The physical environment to retrieve mappings forstartDate
- The starting date of time interval to searchendDate
- The ending date of time interval to search
org.figure8.join.businessobjects.environment.ResourceMapping
objectspublic java.lang.Class getPersistentClass()
getPersistentClass
in interface ObjectDao
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |