|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.orm.hibernate.support.HibernateDaoSupport
org.figure8.join.core.persistence.HibernateObjectDao
org.figure8.join.businessobjects.environment.persistence.HibernateResourceDao
public class HibernateResourceDao
Implementation of ResourceDao using Hibernate ORM system.
| Field Summary |
|---|
| Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
HibernateResourceDao()
Creates a new instance of HibernateResourceDao. |
|
| Method Summary | |
|---|---|
java.lang.Class |
getPersistentClass()
Get the persistent class associated to this Dao. |
Resource |
getResource(long id)
Retrieve a Resource using its identifier |
Resource |
getResource(java.lang.String name)
Retrieve a Resource using its name |
java.util.List |
getResourcesByCategory(java.lang.String category)
Retrieve all Resources corresponding to a specified category of resources |
java.util.List |
getResourcesByType(AbstractResourceType type)
Retrieve all Resource corresponding to a specified type of resources |
| 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 HibernateResourceDao()
| Method Detail |
|---|
public Resource getResource(long id)
getResource in interface ResourceDaoid - The unique identifier of this resource
public Resource getResource(java.lang.String name)
getResource in interface ResourceDaoname - The name of Resource to retrieve
public java.util.List getResourcesByCategory(java.lang.String category)
getResourcesByCategory in interface ResourceDaocategory - The string representing the category of resource (Service, Gwateway, ..)
Resource corresponding to this categorypublic java.util.List getResourcesByType(AbstractResourceType type)
getResourcesByType in interface ResourceDaotype - The resource type of Resources to retrieve (only persistent types are supported at that time)
Resource corresponding to this typepublic java.lang.Class getPersistentClass()
ObjectDao
getPersistentClass in interface ObjectDao
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||