org.LexGrid.LexBIG.caCore.connection.orm.utils
Class LexEVSClassCache

java.lang.Object
  extended by gov.nih.nci.system.util.ClassCache
      extended by org.LexGrid.LexBIG.caCore.connection.orm.utils.LexEVSClassCache

public class LexEVSClassCache
extends ClassCache


Constructor Summary
LexEVSClassCache()
          Constructor for creating an empty ClassCache.
LexEVSClassCache(DAOListFactory listFactory)
          Constructs a Cache of Class and Hibernate information given.
 
Method Summary
 DAO getDAOForClass(java.lang.String qualClassName)
           
 java.util.List getDaoList()
           
 java.util.List getDaoList(Request request)
           
 java.util.List getDaoList(Request request, QueryOptions queryOptions)
           
 java.util.List<DAOSelectionStrategy> getSelectionStrategies()
           
 boolean isCollection(java.lang.String className, java.lang.String attribName)
           
 void setDaoList(java.util.List daoList)
           
 void setSelectionStrategies(java.util.List<DAOSelectionStrategy> selectionStrategies)
           
 
Methods inherited from class gov.nih.nci.system.util.ClassCache
getAllFieldNames, getAllFields, getAllPackageNames, getAllQualClassNames, getAllUnqualClassNames, getAssociations, getAssociationType, getClassFromCache, getDataType, getFields, getFieldsOfType, getFieldsOfTypeFromCache, getNonPrimitiveFields, getPkgClassNames, getPkgNameForClass, getQualifiedClassName, getReturnType, getReturnType, getSettersForTypeFromCache, getSubClassNames, isClassNameValid, isPackageNameValid, isSearchable, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LexEVSClassCache

public LexEVSClassCache(DAOListFactory listFactory)
                 throws DAOException
Constructs a Cache of Class and Hibernate information given.

Parameters:
listFactory - The DAO List Factory that is providing the DAOs for this Cache.
Throws:
DAOException

LexEVSClassCache

public LexEVSClassCache()
                 throws DAOException
Constructor for creating an empty ClassCache. Note: To populate this Cache, you must explicitly call 'setDaoList' -- otherwise this Cache will not be initialized. For most purposes, passing in the DAOListFactory is the preferred way of constructing this class, that way it will automatically be initialized. Use this constructor if you want to populate this Cache later, or not at all (for example, for disabling caCORE SDK functionality in LexEVSAPI).

Throws:
DAOException
Method Detail

setDaoList

public void setDaoList(java.util.List daoList)
Overrides:
setDaoList in class ClassCache
Parameters:
daoList - A list of DAO's for which Class metadata should be generated and cached. Called by the Spring Framework. See application-config.xml for more details.

getDaoList

public java.util.List getDaoList()
Overrides:
getDaoList in class ClassCache

getDaoList

public java.util.List getDaoList(Request request,
                                 QueryOptions queryOptions)
                          throws SelectionStrategyException
Throws:
SelectionStrategyException

getDaoList

public java.util.List getDaoList(Request request)
                          throws SelectionStrategyException
Throws:
SelectionStrategyException

isCollection

public boolean isCollection(java.lang.String className,
                            java.lang.String attribName)
                     throws QueryException
Overrides:
isCollection in class ClassCache
Throws:
QueryException

getSelectionStrategies

public java.util.List<DAOSelectionStrategy> getSelectionStrategies()

setSelectionStrategies

public void setSelectionStrategies(java.util.List<DAOSelectionStrategy> selectionStrategies)

getDAOForClass

public DAO getDAOForClass(java.lang.String qualClassName)
Overrides:
getDAOForClass in class ClassCache