org.LexGrid.LexBIG.caCore.dao.orm
Class LexEVSDAOImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
gov.nih.nci.system.dao.orm.ORMDAOImpl
org.LexGrid.LexBIG.caCore.dao.orm.LexEVSDAOImpl
- All Implemented Interfaces:
- gov.nih.nci.system.dao.DAO, LexEVSDAO, org.springframework.beans.factory.InitializingBean
public class LexEVSDAOImpl
- extends gov.nih.nci.system.dao.orm.ORMDAOImpl
- implements LexEVSDAO
Fields inherited from class gov.nih.nci.system.dao.orm.ORMDAOImpl |
log |
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Method Summary |
List<String> |
getAllClassNames()
|
private String |
getCountQuery(String hql)
|
LexEVSDAO.DAOType |
getDaoType()
Gets the Type of resource this DAO represents -- either a History or CodingScheme resource. |
protected org.springframework.orm.hibernate3.HibernateCallback |
getExecuteCountCriteriaHibernateCallback(org.hibernate.criterion.DetachedCriteria criteria)
|
protected org.springframework.orm.hibernate3.HibernateCallback |
getExecuteFindQueryCriteriaHibernateCallback(org.hibernate.criterion.DetachedCriteria criteria,
boolean lazyLoad,
int firstResult,
int maxResults)
|
protected org.springframework.orm.hibernate3.HibernateCallback |
getExecuteFindQueryHibernateCallback(String hql,
List params,
boolean lazyLoad,
int firstResult,
int maxResult)
|
protected org.springframework.orm.hibernate3.HibernateCallback |
getExecuteFindQueryHibernateCallback(String hql,
List params,
int firstResult,
int maxResult)
|
org.springframework.orm.hibernate3.HibernateTemplate[] |
getHibernateAllTemplates()
|
org.hibernate.Interceptor |
getTablePrefixInterceptor()
|
org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeTagList |
getTagList()
Get the TagList of the CodingScheme associated with this DAO. |
String |
getUri()
Get the URI of the CodingScheme associated with this DAO. |
String |
getVersion()
Get the Version of the CodingScheme associated with this DAO. |
protected static void |
initializeAll(List<Object> list)
|
gov.nih.nci.system.dao.Response |
query(gov.nih.nci.system.dao.Request request)
|
gov.nih.nci.system.dao.Response |
query(gov.nih.nci.system.dao.Request request,
boolean lazyLoad,
int maxResults)
Query this DAO. |
protected gov.nih.nci.system.dao.Response |
query(gov.nih.nci.system.dao.Request request,
org.hibernate.criterion.DetachedCriteria obj,
boolean lazyLoad,
int maxResult)
|
protected gov.nih.nci.system.dao.Response |
query(gov.nih.nci.system.dao.Request request,
gov.nih.nci.system.query.hibernate.HQLCriteria hqlCriteria,
boolean lazyLoad,
int maxResult)
|
void |
setDaoType(LexEVSDAO.DAOType daoType)
|
void |
setTablePrefixInterceptor(org.hibernate.Interceptor tablePrefixInterceptor)
|
void |
setTagList(org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeTagList tagList)
|
void |
setUrn(String uri)
|
void |
setVersion(String version)
|
Methods inherited from class gov.nih.nci.system.dao.orm.ORMDAOImpl |
createHibernateTemplate, getConfig, getExecuteCountQueryHibernateCallback, getResultCountPerQuery, getSecurityHelper, isCaseSensitive, query, query, query, query, setCaseSensitive, setConfig, setResultCountPerQuery, setSecurityHelper |
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
checkDaoConfig, convertHibernateAccessException, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tablePrefixInterceptor
private org.hibernate.Interceptor tablePrefixInterceptor
uri
private String uri
version
private String version
tagList
private org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeTagList tagList
daoType
private LexEVSDAO.DAOType daoType
LexEVSDAOImpl
public LexEVSDAOImpl()
getAllClassNames
public List<String> getAllClassNames()
- Specified by:
getAllClassNames
in interface gov.nih.nci.system.dao.DAO
- Overrides:
getAllClassNames
in class gov.nih.nci.system.dao.orm.ORMDAOImpl
query
public gov.nih.nci.system.dao.Response query(gov.nih.nci.system.dao.Request request)
throws gov.nih.nci.system.dao.DAOException
- Specified by:
query
in interface gov.nih.nci.system.dao.DAO
- Overrides:
query
in class gov.nih.nci.system.dao.orm.ORMDAOImpl
- Throws:
gov.nih.nci.system.dao.DAOException
query
public gov.nih.nci.system.dao.Response query(gov.nih.nci.system.dao.Request request,
boolean lazyLoad,
int maxResults)
throws gov.nih.nci.system.dao.DAOException
- Description copied from interface:
LexEVSDAO
- Query this DAO.
- Specified by:
query
in interface LexEVSDAO
- Parameters:
request
- The Request to query.lazyLoad
- Initialize all the results (false to allow Lazy Loading, true to disable Lazy Loading).maxResults
- Override the maxium results per query for this query.
- Returns:
- The results of the query.
- Throws:
gov.nih.nci.system.dao.DAOException
query
protected gov.nih.nci.system.dao.Response query(gov.nih.nci.system.dao.Request request,
org.hibernate.criterion.DetachedCriteria obj,
boolean lazyLoad,
int maxResult)
throws Exception
- Throws:
Exception
getExecuteCountCriteriaHibernateCallback
protected org.springframework.orm.hibernate3.HibernateCallback getExecuteCountCriteriaHibernateCallback(org.hibernate.criterion.DetachedCriteria criteria)
- Overrides:
getExecuteCountCriteriaHibernateCallback
in class gov.nih.nci.system.dao.orm.ORMDAOImpl
getExecuteFindQueryCriteriaHibernateCallback
protected org.springframework.orm.hibernate3.HibernateCallback getExecuteFindQueryCriteriaHibernateCallback(org.hibernate.criterion.DetachedCriteria criteria,
boolean lazyLoad,
int firstResult,
int maxResults)
query
protected gov.nih.nci.system.dao.Response query(gov.nih.nci.system.dao.Request request,
gov.nih.nci.system.query.hibernate.HQLCriteria hqlCriteria,
boolean lazyLoad,
int maxResult)
throws Exception
- Throws:
Exception
getExecuteFindQueryHibernateCallback
protected org.springframework.orm.hibernate3.HibernateCallback getExecuteFindQueryHibernateCallback(String hql,
List params,
int firstResult,
int maxResult)
- Overrides:
getExecuteFindQueryHibernateCallback
in class gov.nih.nci.system.dao.orm.ORMDAOImpl
getExecuteFindQueryHibernateCallback
protected org.springframework.orm.hibernate3.HibernateCallback getExecuteFindQueryHibernateCallback(String hql,
List params,
boolean lazyLoad,
int firstResult,
int maxResult)
initializeAll
protected static void initializeAll(List<Object> list)
getCountQuery
private String getCountQuery(String hql)
getTablePrefixInterceptor
public org.hibernate.Interceptor getTablePrefixInterceptor()
setTablePrefixInterceptor
public void setTablePrefixInterceptor(org.hibernate.Interceptor tablePrefixInterceptor)
getHibernateAllTemplates
public org.springframework.orm.hibernate3.HibernateTemplate[] getHibernateAllTemplates()
getUri
public String getUri()
- Description copied from interface:
LexEVSDAO
- Get the URI of the CodingScheme associated with this DAO.
- Specified by:
getUri
in interface LexEVSDAO
- Returns:
setUrn
public void setUrn(String uri)
getVersion
public String getVersion()
- Description copied from interface:
LexEVSDAO
- Get the Version of the CodingScheme associated with this DAO.
- Specified by:
getVersion
in interface LexEVSDAO
- Returns:
- The CodingScheme Version.
setVersion
public void setVersion(String version)
getTagList
public org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeTagList getTagList()
- Description copied from interface:
LexEVSDAO
- Get the TagList of the CodingScheme associated with this DAO.
- Specified by:
getTagList
in interface LexEVSDAO
- Returns:
- The TagList associated with this CodingScheme.
setTagList
public void setTagList(org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeTagList tagList)
getDaoType
public LexEVSDAO.DAOType getDaoType()
- Description copied from interface:
LexEVSDAO
- Gets the Type of resource this DAO represents -- either a History or CodingScheme resource.
- Specified by:
getDaoType
in interface LexEVSDAO
- Returns:
- The resource type.
setDaoType
public void setDaoType(LexEVSDAO.DAOType daoType)