|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.oodt.cas.filemgr.structs.type.TypeHandler
org.apache.oodt.cas.filemgr.structs.type.ValueReplaceTypeHandler
public abstract class ValueReplaceTypeHandler
A Subset-TypeHandler which only allows for metadata value modification. It will automatically detected and replace the metadata values for the metadata element which it is responsible for. All the developer needs to supply is the convertion method between the original value and the Catalog value
Field Summary |
---|
Fields inherited from class org.apache.oodt.cas.filemgr.structs.type.TypeHandler |
---|
elementName |
Constructor Summary | |
---|---|
ValueReplaceTypeHandler()
|
Method Summary | |
---|---|
protected abstract String |
getCatalogValue(String origValue)
Converts the metadata element, for this TypeHandler, value to the Catalog value |
protected abstract String |
getOrigValue(String databaseValue)
Converts the metadata element, for this TypeHandler, value from the Catalog value to the original value |
protected QueryCriteria |
handleRangeQueryCriteria(RangeQueryCriteria rqc)
Converts the given RangeQueryCriteria into a QueryCriteria with the necessary Catalog elements and values to perform the query |
protected QueryCriteria |
handleTermQueryCriteria(TermQueryCriteria tqc)
Converts the given TermQueryCriteria into a QueryCriteria with the necessary Catalog elements and values to perform the query |
void |
postGetMetadataHandle(org.apache.oodt.cas.metadata.Metadata metadata)
Handles converting any Catalog metadata element values to their original values. |
void |
preAddMetadataHandle(org.apache.oodt.cas.metadata.Metadata metadata)
Handles converting any metadata element to Catalog element values. |
Methods inherited from class org.apache.oodt.cas.filemgr.structs.type.TypeHandler |
---|
getElementName, preQueryHandle, setElementName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueReplaceTypeHandler()
Method Detail |
---|
public void postGetMetadataHandle(org.apache.oodt.cas.metadata.Metadata metadata)
postGetMetadataHandle
in class TypeHandler
metadata
- The Catalog Metadatapublic void preAddMetadataHandle(org.apache.oodt.cas.metadata.Metadata metadata)
preAddMetadataHandle
in class TypeHandler
metadata
- The Original Metadataprotected QueryCriteria handleRangeQueryCriteria(RangeQueryCriteria rqc)
handleRangeQueryCriteria
in class TypeHandler
protected QueryCriteria handleTermQueryCriteria(TermQueryCriteria tqc)
handleTermQueryCriteria
in class TypeHandler
protected abstract String getCatalogValue(String origValue)
origValue
- The value for the element which this TypeHandler
is responsible for
protected abstract String getOrigValue(String databaseValue)
origValue
- The value for the element which this TypeHandler
is responsible for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |