|
||||||||||
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.security.persistence.HibernateRoleDao
public class HibernateRoleDao
Implementation of RoleDao using Hibernate ORM system.
Field Summary |
---|
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
---|
logger |
Constructor Summary | |
---|---|
HibernateRoleDao()
Creates a new instance of HibernateRoleDao. |
Method Summary | |
---|---|
java.lang.Class |
getPersistentClass()
Get the persistent class associated to this Dao. |
Role |
getRole(long id)
Retrieve a security role using its identifier |
Role |
getRole(java.lang.String name)
Retrieve a security role using its name |
void |
save(EntityObject entityobject)
Save the given entity into underlying datastore and put it into applicative cache dedicated to Roles if available. |
void |
setCacheManager(CacheManager manager)
Role data access object may want to use the cache manager for storing and retrieving releases. |
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 |
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 |
Constructor Detail |
---|
public HibernateRoleDao()
Method Detail |
---|
public void setCacheManager(CacheManager manager)
setCacheManager
in interface RoleDao
manager
- The CacheManager implementation to use.public Role getRole(long id)
getRole
in interface RoleDao
id
- The unique identifier of Role within datastore
public Role getRole(java.lang.String name)
getRole
in interface RoleDao
name
- The name of the role
public java.lang.Class getPersistentClass()
ObjectDao
getPersistentClass
in interface ObjectDao
public void save(EntityObject entityobject)
save
in interface ObjectDao
save
in class HibernateObjectDao
entityobject
- EntityObject to save
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |