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, DBConnection conn)
          Constructor for this class.
 
Method Summary
 void deleteRelations(java.lang.String docid)
          Deletes all of the relations with a docid of 'docid'.
 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
 

Constructor Detail

RelationHandler

public RelationHandler(java.lang.String docid,
                       DBConnection conn)
                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.
Method Detail

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.

getAccessFileID

public 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


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.