org.LexGrid.LexBIG.caCore.dao.orm
Class LexEVSDAOImpl

java.lang.Object
  extended by HibernateDaoSupport
      extended by gov.nih.nci.system.dao.orm.ORMDAOImpl
          extended by org.LexGrid.LexBIG.caCore.dao.orm.LexEVSDAOImpl
All Implemented Interfaces:
DAO, LexEVSDAO

public class LexEVSDAOImpl
extends ORMDAOImpl
implements LexEVSDAO


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.LexGrid.LexBIG.caCore.dao.orm.LexEVSDAO
LexEVSDAO.DAOType
 
Field Summary
 
Fields inherited from class gov.nih.nci.system.dao.orm.ORMDAOImpl
log
 
Constructor Summary
LexEVSDAOImpl()
           
 
Method Summary
 java.util.List<java.lang.String> getAllClassNames()
           
 LexEVSDAO.DAOType getDaoType()
          Gets the Type of resource this DAO represents -- either a History or CodingScheme resource.
protected  HibernateCallback getExecuteCountCriteriaHibernateCallback(DetachedCriteria criteria)
           
protected  HibernateCallback getExecuteFindQueryCriteriaHibernateCallback(DetachedCriteria criteria, boolean lazyLoad, int firstResult, int maxResults)
           
protected  HibernateCallback getExecuteFindQueryHibernateCallback(java.lang.String hql, java.util.List params, boolean lazyLoad, int firstResult, int maxResult)
           
protected  HibernateCallback getExecuteFindQueryHibernateCallback(java.lang.String hql, java.util.List params, int firstResult, int maxResult)
           
 HibernateTemplate[] getHibernateAllTemplates()
           
 Interceptor getTablePrefixInterceptor()
           
 CodingSchemeTagList getTagList()
          Get the TagList of the CodingScheme associated with this DAO.
 java.lang.String getUri()
          Get the URI of the CodingScheme associated with this DAO.
 java.lang.String getVersion()
          Get the Version of the CodingScheme associated with this DAO.
protected static void initializeAll(java.util.List<java.lang.Object> list)
           
 Response query(Request request)
          Queries the datasource
 Response query(Request request, boolean lazyLoad, int maxResults)
          Query this DAO.
protected  Response query(Request request, DetachedCriteria obj, boolean lazyLoad, int maxResult)
           
 void setDaoType(LexEVSDAO.DAOType daoType)
           
 void setTablePrefixInterceptor(Interceptor tablePrefixInterceptor)
           
 void setTagList(CodingSchemeTagList tagList)
           
 void setUrn(java.lang.String uri)
           
 void setVersion(java.lang.String version)
           
 
Methods inherited from class gov.nih.nci.system.dao.orm.ORMDAOImpl
createHibernateTemplate, getConfig, getExecuteCountQueryHibernateCallback, getResultCountPerQuery, getSecurityHelper, isCaseSensitive, query, setCaseSensitive, setConfig, setResultCountPerQuery, setSecurityHelper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.LexGrid.LexBIG.caCore.dao.orm.LexEVSDAO
getResultCountPerQuery
 

Constructor Detail

LexEVSDAOImpl

public LexEVSDAOImpl()
Method Detail

getAllClassNames

public java.util.List<java.lang.String> getAllClassNames()
Specified by:
getAllClassNames in interface DAO
Overrides:
getAllClassNames in class ORMDAOImpl

query

public Response query(Request request)
               throws DAOException
Description copied from interface: DAO
Queries the datasource

Specified by:
query in interface DAO
Overrides:
query in class ORMDAOImpl
Returns:
Throws:
DAOException

query

public Response query(Request request,
                      boolean lazyLoad,
                      int maxResults)
               throws 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:
DAOException

query

protected Response query(Request request,
                         DetachedCriteria obj,
                         boolean lazyLoad,
                         int maxResult)
                  throws java.lang.Exception
Throws:
java.lang.Exception

getExecuteCountCriteriaHibernateCallback

protected HibernateCallback getExecuteCountCriteriaHibernateCallback(DetachedCriteria criteria)
Overrides:
getExecuteCountCriteriaHibernateCallback in class ORMDAOImpl

getExecuteFindQueryCriteriaHibernateCallback

protected HibernateCallback getExecuteFindQueryCriteriaHibernateCallback(DetachedCriteria criteria,
                                                                         boolean lazyLoad,
                                                                         int firstResult,
                                                                         int maxResults)

getExecuteFindQueryHibernateCallback

protected HibernateCallback getExecuteFindQueryHibernateCallback(java.lang.String hql,
                                                                 java.util.List params,
                                                                 int firstResult,
                                                                 int maxResult)
Overrides:
getExecuteFindQueryHibernateCallback in class ORMDAOImpl

getExecuteFindQueryHibernateCallback

protected HibernateCallback getExecuteFindQueryHibernateCallback(java.lang.String hql,
                                                                 java.util.List params,
                                                                 boolean lazyLoad,
                                                                 int firstResult,
                                                                 int maxResult)

initializeAll

protected static void initializeAll(java.util.List<java.lang.Object> list)

getTablePrefixInterceptor

public Interceptor getTablePrefixInterceptor()

setTablePrefixInterceptor

public void setTablePrefixInterceptor(Interceptor tablePrefixInterceptor)

getHibernateAllTemplates

public HibernateTemplate[] getHibernateAllTemplates()

getUri

public java.lang.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(java.lang.String uri)

getVersion

public java.lang.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(java.lang.String version)

getTagList

public 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(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)