public class RelationHandler
extends java.lang.Object
| Constructor and Description |
|---|
RelationHandler(java.lang.String docid,
java.lang.String doctype,
DBConnection conn,
edu.ucsb.nceas.utilities.triple.TripleCollection list)
Constructor for this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteRelations(java.lang.String docid)
Deletes all of the relations with a docid of 'docid'.
|
static java.lang.String |
getAccessFileIDWithRevision(java.lang.String docid)
Get the access file id for a package
|
public RelationHandler(java.lang.String docid,
java.lang.String doctype,
DBConnection conn,
edu.ucsb.nceas.utilities.triple.TripleCollection list)
throws McdbException,
java.sql.SQLException,
AccessionNumberException
docid - the ID of the XML document to index.doctype - the doctype of this documentconn - the db connectionlist - the triple listMcdbExceptionjava.sql.SQLExceptionAccessionNumberExceptionpublic void deleteRelations(java.lang.String docid)
throws java.sql.SQLException
docid - the docid of the package which relations to delete.java.sql.SQLExceptionpublic static java.lang.String getAccessFileIDWithRevision(java.lang.String docid)
throws java.sql.SQLException
docid - the document identifier of the packagejava.sql.SQLExceptionCopyright © 2020 Regents of the University of California. All Rights Reserved.