|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjpl.eda.archive.server.MetadataElementList
This class builds a list of metadata element name/value pairs. Once the list is complete the class will update the associated product metadata table with the value information. Only non-core elements are allowed to be updated.
| Constructor Summary | |
MetadataElementList(jpl.eda.util.JDBC_DB db,
Dataset dataset,
int productId)
Constructor given a database connection, dataset information and a product indentifier. |
|
| Method Summary | |
void |
addElement(java.lang.String name,
java.lang.String value)
Add a metadata element name/value pair to the list. |
void |
addElements(java.util.HashMap map)
Add the metadata element name/value pairs contained in the given map to the list. |
void |
addToDatabase()
Add the metadata element values to the associated product metadata table. |
int |
getCount()
Get the number of metadata element name/value pairs in the list. |
java.lang.String |
getName(int index)
Get the name of the metadata element. |
java.lang.String |
getValue(int index)
Get the value associated with the metadata element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MetadataElementList(jpl.eda.util.JDBC_DB db,
Dataset dataset,
int productId)
db - The database connection.dataset - The dataset information.productId - The product identifier.| Method Detail |
public void addElement(java.lang.String name,
java.lang.String value)
name - The name of the data element.value - The value associated with the data element.public void addElements(java.util.HashMap map)
String objects. Only valid non-core elements for the current dataset will be added to the list.
map - A hash map of element/value pairs.public int getCount()
size to match the rest of Java, but instead it matches the rest of OODT.
public java.lang.String getName(int index)
index - The index of the metadata element representing its location in the array.
public java.lang.String getValue(int index)
index - The index of the metadata element representing its location in the array.
public void addToDatabase()
throws MetadataElementListException
MetadataElementListException - If an error occurs accessing the database.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||