uk.ac.soton.itinnovation.grid.service.dataresource.beans
Class BaseHibernateDAO<T extends GridResource>
java.lang.Object
uk.ac.soton.itinnovation.grid.service.dataresource.beans.BaseHibernateDAO<T>
- Direct Known Subclasses:
- DataResourceDAO, DataResourceRoleDAO, DataResourceSubscriptionDAO, SecureSessionDAO
public abstract class BaseHibernateDAO<T extends GridResource>
- extends Object
Contains methods common to all DataResource DAOs that act on Hibernate.
|
Field Summary |
protected org.hibernate.SessionFactory |
factory
|
protected PDP |
pdp
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
factory
protected org.hibernate.SessionFactory factory
pdp
protected PDP pdp
BaseHibernateDAO
public BaseHibernateDAO()
getBeanClass
protected abstract Class<T> getBeanClass()
createBeanHook
protected abstract T createBeanHook(StorableInStateRepository managingConversation,
String label)
storeBean
protected void storeBean(T bean)
deleteBean
public void deleteBean(T bean)
updateBean
public void updateBean(T bean)
findByID
protected T findByID(Class<T> clazz,
String resourceID)
findByPBACRole
protected List<T> findByPBACRole(Class<T> clazz,
SubjectDescription subject,
String additionalRoleName)
throws RemoteException
- Throws:
RemoteException
findByReference
protected List<T> findByReference(Class<T> clazz,
String fieldName,
String resourceID)
findIDsByReference
protected List<String> findIDsByReference(Class<T> clazz,
String fieldName,
String resourceID)
findAll
protected List<T> findAll(Class<T> clazz)
Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.