edu.ucsb.nceas.metacat
Class RelationHandler

java.lang.Object
  |
  +--edu.ucsb.nceas.metacat.RelationHandler
All Implemented Interfaces:
java.lang.Runnable

public class RelationHandler
extends java.lang.Object
implements java.lang.Runnable


Constructor Summary
RelationHandler(DocumentImpl xmldoc, java.sql.Connection conn)
          Constructor for this class.
 
Method Summary
 void deleteRelations(java.lang.String docid)
          Deletes all of the relations with a docid of 'docid'.
 void run()
          The thread handler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationHandler

public RelationHandler(DocumentImpl xmldoc,
                       java.sql.Connection conn)
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:
xmldoc - the xml document to index.
Method Detail

run

public void run()
The thread handler
Specified by:
run in interface java.lang.Runnable

deleteRelations

public void deleteRelations(java.lang.String docid)
Deletes all of the relations with a docid of 'docid'.
Parameters:
docid - the docid to delete.


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