|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproject.biota.util.ResourceObject
A class holding the information for a resource.
Field Summary | |
static int |
FOURDSERVER
A constant indicating a 4D Server resource. |
static int |
FOURDWEB
A constant indicating a Biota onboard Web Server resource. |
static int |
UNKNOWN
A constant indicating a unknown type of resource. |
Constructor Summary | |
ResourceObject(String name,
project.biota.resource.Resource resource)
Constructs a ResourceObject to hold the information for a resource. |
Method Summary | |
String |
getConcatSeparator(String schema,
String conceptName)
Gets the symbol used for concatenating field values to concstruct a concept value. |
String |
getConceptSchemaLocation(String schema)
Gets the location of the conceptual schema. |
int |
getConceptType(String schema,
String conceptName)
Gets the type of the concept specified by conceptName. |
Object |
getConnection()
Gets a connection to this resource. |
String |
getDefaultInventoryClause()
Gets the default concept for a DiGIR inventory request. |
String |
getDefaultRecordSchemaLocation()
Gets the default record schema location for this resource. |
String |
getDefaultRequestType()
Gets the default operation of a DiGIR request. |
List |
getFields(String schema,
String conceptName)
Gets the list of the fields mapped to the concept specified by conceptName. |
project.biota.resource.Table[] |
getForeignTables(String tableName)
Gets the children table of the table specified by tableName in the resource configuration's table structure. |
String |
getJoinKeyTable(String tableName,
project.biota.resource.Table joinTable)
Gets the key used to join with its parent table in the resource configuration's table structure. |
int |
getMaxInventoryRecords()
Gets the maximum number of records presented in a DiGIR inventory response. |
int |
getMaxSearchRecords()
Gets the maximum number of records presented in a DiGIR search response. |
String |
getName()
Gets the name of this resource. |
String |
getPrimaryKey(String tableName)
Gets the primary key for the table specified by tableName. |
String |
getResourceMainTable()
Gets the database main table for this resource. |
project.biota.resource.Metadata |
getResourceMetadata()
Gets the Metadata object of this resource. |
int |
getResourceType()
Gets the type of this resource. |
boolean |
isConceptReturnable(String schema,
String conceptName)
Checks whether a concept is returnable for this resource. |
boolean |
isConceptSearchable(String schema,
String conceptName)
Checks whether a concept is searchable for this resource. |
boolean |
isConceptSupported(String schema,
String conceptName)
Checks whether the concept specified by conceptName is supported in this resource. |
boolean |
isResourceOK()
Checks whether this resource is correctly initialized. |
boolean |
isSchemaConcept(String schema,
String conceptName)
Checks whether the specified concept is defined in the conceptual schema. |
boolean |
isSchemaSupported(String schema)
Checks whether the specified conceptual schema is supported by this resource. |
boolean |
needConcat(String schema,
String conceptName)
Checks whether a concept's value needs to be concatenated by multiple database field values. |
void |
setDateLastUpdated(String dateLastUpdated)
Sets the date when this resource is last updated in the resource's metadata. |
void |
setNumberOfRecords(int num)
Sets the number of records in this resource. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int UNKNOWN
public static final int FOURDSERVER
public static final int FOURDWEB
Constructor Detail |
public ResourceObject(String name, project.biota.resource.Resource resource)
name
- the name of the resourceresource
- the Resource object that holds the metadata for the resourceMethod Detail |
public String getName()
public boolean isResourceOK()
public boolean isSchemaSupported(String schema)
schema
- the conceptual schema to check
public boolean isSchemaConcept(String schema, String conceptName)
schema
- the schema this concept belongs toconceptName
- the name of the concept
public boolean isConceptSupported(String schema, String conceptName)
conceptName
- the name of the concept
public boolean isConceptSearchable(String schema, String conceptName)
schema
- the schema this concept belongs toconceptName
- the name of the concept
public boolean isConceptReturnable(String schema, String conceptName)
schema
- the schema this concept belongs toconceptName
- the name of the concept
public boolean needConcat(String schema, String conceptName)
schema
- the schema this concept belongs toconceptName
- the name of the concept to check
public String getConcatSeparator(String schema, String conceptName)
schema
- the schema this concept belongs toconceptName
- the name of the concept
public List getFields(String schema, String conceptName)
schema
- the schema this concept belongs toconceptName
- the name of the concept
public int getConceptType(String schema, String conceptName)
schema
- the schema this concept belongs toconceptName
- the name of the concept
public int getResourceType()
FOURDWEB
,
FOURDSERVER
public String getResourceMainTable()
public project.biota.resource.Metadata getResourceMetadata()
public String getPrimaryKey(String tableName)
tableName
- the name of the table
public String getJoinKeyTable(String tableName, project.biota.resource.Table joinTable)
tableName
- the name of the table
public project.biota.resource.Table[] getForeignTables(String tableName)
tableName
- the name of the table
public Object getConnection()
public String getDefaultInventoryClause()
public String getDefaultRequestType()
public String getDefaultRecordSchemaLocation()
public String getConceptSchemaLocation(String schema)
schema
- the schema this concept belongs to
public void setNumberOfRecords(int num)
num
- the number of the records in the resourcepublic void setDateLastUpdated(String dateLastUpdated)
dateLastUpdated
- the string of the last update date for this resourcepublic int getMaxSearchRecords()
public int getMaxInventoryRecords()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |