|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oodt.cas.filemgr.structs.type.TypeHandler
public abstract class TypeHandler
A Metadata modification class that intercepts all Metadata flowing in and out of the Catalog. Allows the Catalog to contain additional Metadata or modified Metadata while keeping it invisible to the user. The purpose it to create String queriable Metadata so that the Catalog can be queries accurately and without extra knowledge required on the user end.
Field Summary | |
---|---|
protected String |
elementName
|
Constructor Summary | |
---|---|
TypeHandler()
|
Method Summary | |
---|---|
String |
getElementName()
Get the Element name that this TypeHandler is responsible for handling |
protected abstract QueryCriteria |
handleRangeQueryCriteria(RangeQueryCriteria qc)
Converts the given RangeQueryCriteria into a QueryCriteria with the necessary Catalog elements and values to perform the query |
protected abstract QueryCriteria |
handleTermQueryCriteria(TermQueryCriteria qc)
Converts the given TermQueryCriteria into a QueryCriteria with the necessary Catalog elements and values to perform the query |
abstract void |
postGetMetadataHandle(org.apache.oodt.cas.metadata.Metadata metadata)
Handles converting any Catalog metadata element values to their original values. |
abstract void |
preAddMetadataHandle(org.apache.oodt.cas.metadata.Metadata metadata)
Handles converting any metadata element to Catalog element values. |
Query |
preQueryHandle(Query query)
Converts this TypeHandler's element in the given Query into a Query with the necessary elements and values so the Catalog can be queried. |
void |
setElementName(String elementName)
Sets the Element name that this TypeHandler is responsible for handling |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String elementName
Constructor Detail |
---|
public TypeHandler()
Method Detail |
---|
public void setElementName(String elementName)
elementName
- The Element name for this TypeHandlerpublic String getElementName()
public Query preQueryHandle(Query query) throws QueryFormulationException
query
- Query for which the Catalog Query will be returned
QueryFormulationException
IllegalAccessException
InstantiationException
public abstract void postGetMetadataHandle(org.apache.oodt.cas.metadata.Metadata metadata)
metadata
- The Catalog Metadatapublic abstract void preAddMetadataHandle(org.apache.oodt.cas.metadata.Metadata metadata)
metadata
- The Original Metadataprotected abstract QueryCriteria handleRangeQueryCriteria(RangeQueryCriteria qc)
qc
-
protected abstract QueryCriteria handleTermQueryCriteria(TermQueryCriteria qc)
qc
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |