|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproject.biota.biotaInterface.BiotaRequestHandler
project.biota.biotaInterface.BiotaServerRequestHandler
BiotaServerRequestHandler handles requests for resources served via a 4D Server.
BiotaRequestHandler
Field Summary |
Fields inherited from class project.biota.biotaInterface.BiotaRequestHandler |
conceptualSchemaNamespace, conceptualSchemaURI, formatter, left_index, logger, maxDepth, maxlevel, requestParser, requiredConcepts, requiredTablesFields, responseRecords, right_index, rscObject |
Constructor Summary | |
BiotaServerRequestHandler(DiGIRRequestParser parser)
Constructs a BiotaServerRequestHandler to handle a DiGIR request. |
Method Summary | |
protected void |
buildDiGIRResult(String filterString)
Makes database queries to a 4D Server via a JDBC connection and processes the response returned by the database to build the records for the DiGIR response. |
protected String |
getConceptValue(String conceptName,
Object fieldsValues)
Constructs the value for a schema concept from the fieldsValues
object. |
protected void |
updateResourceMetadata(ResourceObject rscObj)
Updates the metadata for the resource specified by the ResourceObject object. |
Methods inherited from class project.biota.biotaInterface.BiotaRequestHandler |
addRecordConceptElem, buildResult, createInventoryResponseElem, findRequiredTablesFields, getQueryString, parseValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BiotaServerRequestHandler(DiGIRRequestParser parser)
parser
- the DiGIRRequestParser that parses the DiGIR requestMethod Detail |
protected void buildDiGIRResult(String filterString)
buildDiGIRResult
in class BiotaRequestHandler
filterString
- the string representation of the filter in the DiGIR requestprotected void updateResourceMetadata(ResourceObject rscObj)
SpcmRecChangedDate
in the resource's main table. It then counts
the number of rows in the ResultSet object returned and set the number of records
by calling ResourceObject.setNumberOfRecords()
method of the specified
ResourceObject object.
For the resource's last-updated date, it converts the values of the field
SpcmRecChangedDate
to a java.uitl.Date object to find the latest of them
all and calls ResourceObject.setDateLastUpdated()
method of the
ResourceObject object.
updateResourceMetadata
in class BiotaRequestHandler
rscObj
- the ResourceObject object that represents a resourceResourceObject.setNumberOfRecords(int)
,
ResourceObject.setDateLastUpdated(String)
protected String getConceptValue(String conceptName, Object fieldsValues)
fieldsValues
object. The fieldsValues
object is a java.util.Map that holds mapping
between field names to field values for a record. It calls parseValue()
method when a field needs parsing.
getConceptValue
in class BiotaRequestHandler
conceptName
- the name for the schema conceptfieldsValues
- a collection of field values for one record
BiotaRequestHandler.parseValue(Field, String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |