org.LexGrid.LexBIG.caCore.connection.orm.utils
Class LexEVSClassCache
java.lang.Object
gov.nih.nci.system.util.ClassCache
org.LexGrid.LexBIG.caCore.connection.orm.utils.LexEVSClassCache
public class LexEVSClassCache
- extends ClassCache
Methods inherited from class gov.nih.nci.system.util.ClassCache |
getAllFieldNames, getAllFields, getAllPackageNames, getAllQualClassNames, getAllUnqualClassNames, getAssociations, getAssociationType, getDataType, getFields, getFieldsOfType, getFieldsOfTypeFromCache, getNonPrimitiveFields, getPkgClassNames, 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 |
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
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
getClassFromCache
public java.lang.Class getClassFromCache(java.lang.String className)
throws java.lang.ClassNotFoundException
- Overrides:
getClassFromCache
in class ClassCache
- Throws:
java.lang.ClassNotFoundException
getPkgNameForClass
public java.lang.String getPkgNameForClass(java.lang.String className)
- Overrides:
getPkgNameForClass
in class ClassCache
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