edu.ucsb.nceas.metacat
Class RelationHandler
java.lang.Object
edu.ucsb.nceas.metacat.RelationHandler
- public class RelationHandler
- extends java.lang.Object
Constructor Summary |
RelationHandler(java.lang.String docid,
java.lang.String doctype,
DBConnection conn,
edu.ucsb.nceas.morpho.datapackage.TripleCollection list)
Constructor for this class. |
Method Summary |
void |
deleteRelations(java.lang.String docid)
Deletes all of the relations with a docid of 'docid'. |
static java.lang.String |
getAccessFileID(java.lang.String docid)
Get the access file id for a package |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RelationHandler
public RelationHandler(java.lang.String docid,
java.lang.String doctype,
DBConnection conn,
edu.ucsb.nceas.morpho.datapackage.TripleCollection list)
throws McdbException,
java.sql.SQLException,
AccessionNumberException
- Constructor for this class. finds all of the relations to a single xml
document and writes them to the database. This includes transitive
relations.
- Parameters:
docid
- the ID of the XML document to index.doctype
- the doctype of this documentconn
- the db connectionlist
- the triple list
deleteRelations
public void deleteRelations(java.lang.String docid)
throws java.sql.SQLException
- Deletes all of the relations with a docid of 'docid'.
- Parameters:
docid
- the docid of the package which relations to delete.
- Throws:
java.sql.SQLException
getAccessFileID
public static java.lang.String getAccessFileID(java.lang.String docid)
throws java.sql.SQLException
- Get the access file id for a package
- Parameters:
docid
- the document identifier of the package
- Returns:
- the document identifier of the access file for that package
- Throws:
java.sql.SQLException
Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.