|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.LexGrid.LexBIG.caCore.web.util.LexEVSSearchUtils
public class LexEVSSearchUtils
SearchUtils presents various methods to build and modify a hibernate criteria.
Field Summary | |
---|---|
private gov.nih.nci.system.util.ClassCache |
classCache
|
private static org.apache.log4j.Logger |
log
|
Constructor Summary | |
---|---|
LexEVSSearchUtils(gov.nih.nci.system.util.ClassCache classCache)
|
Method Summary | |
---|---|
Object |
buildSearchCriteria(String packageName,
List criteriaList)
Generates nested search criteria |
Object |
convertValues(Field field,
Object value)
Converts the specified value to the field class type |
Method[] |
getAllMethods(Class resultClass)
Gets all the methods for a given class |
private List |
getAttributeCollection(String attString)
Returns list of search attributes |
private Object |
getAttributeCriteria(String att,
Object critObject,
String packageName)
Generates a criteria object |
private Method |
getAttributeSetMethodName(Object attObject,
String attName)
Returns a Method for a given attribute in the specified class |
private Object |
getCriteria(String criteriaString,
String packageName)
Generates Search Criteria |
Object |
getCriteriaValue(Object assObject,
Object critObject)
Returns the criteria value |
Field |
getField(Class className,
String attributeName)
Returns the field for a given attribute name |
private Object |
getFieldValue(Field field,
String attValue)
Returns a value for the specified field |
private Method |
getMethod(Class critClass,
String methodName)
Returns the method specified by the method name |
String |
getRoleClassName(String attRole)
Returns the class name for a given role |
private Method |
getRoleMethod(Object criteriaObject,
Object assObject)
Returns the get method for the given association |
String |
getRoleName(Class searchClass,
Object criterion)
Returns the role name for the specified class and object |
String |
getTargetClassName(String className,
String roleName)
Returns the target class name for the specified class and role names |
private boolean |
isCollectionType(Class inputClass)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static org.apache.log4j.Logger log
private gov.nih.nci.system.util.ClassCache classCache
Constructor Detail |
---|
public LexEVSSearchUtils(gov.nih.nci.system.util.ClassCache classCache)
Method Detail |
---|
public String getRoleName(Class searchClass, Object criterion) throws Exception
searchClass
- Specifies a classcriterion
- Specifies an object
return Returns the role between the specified class and object
Exception
private boolean isCollectionType(Class inputClass)
public Object getCriteriaValue(Object assObject, Object critObject) throws Exception
assObject
- critObject
-
Exception
public Object buildSearchCriteria(String packageName, List criteriaList) throws WebQueryException
packageName
- criteriaList
-
Exception
WebQueryException
private Object getCriteria(String criteriaString, String packageName) throws WebQueryException
criteriaString
- packageName
-
Exception
WebQueryException
private Method getRoleMethod(Object criteriaObject, Object assObject) throws Exception
criteriaObject
- assObject
-
Exception
private Method getMethod(Class critClass, String methodName)
critClass
- methodName
-
private List getAttributeCollection(String attString) throws Exception
attString
-
Exception
private Object getAttributeCriteria(String att, Object critObject, String packageName) throws Exception
att
- - specifies the attributecritObject
- - specifies the criteriapackageName
- - specifies the package name
Exception
public Field getField(Class className, String attributeName) throws Exception
className
- specifies the class nameattributeName
- - specifies the attribute name
Exception
private Method getAttributeSetMethodName(Object attObject, String attName)
attObject
- attName
-
private Object getFieldValue(Field field, String attValue) throws Exception
field
- attValue
-
Exception
public Object convertValues(Field field, Object value) throws Exception
field
- Specifies the fieldvalue
- Specifies the values that needs to be stored
Exception
public String getRoleClassName(String attRole)
attRole
-
public Method[] getAllMethods(Class resultClass)
resultClass
- - Specifies the class name
public String getTargetClassName(String className, String roleName) throws Exception
className
- specifies the class nameroleName
- specifies role name
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |