edu.lehigh.swat.hawk.storage.simpledb
Class Document

java.lang.Object
  extended by edu.lehigh.swat.hawk.storage.simplememory.Document
      extended by edu.lehigh.swat.hawk.storage.simpledb.Document
All Implemented Interfaces:
Document, java.io.Serializable
Direct Known Subclasses:
Ontology

public class Document
extends Document

Representing semantic contents in a document and/or its imported documents

See Also:
Serialized Form

Field Summary
protected  java.util.ArrayList ancestors
           
protected  DatabaseStorage model
           
protected  java.sql.Statement stmt
           
 
Fields inherited from class edu.lehigh.swat.hawk.storage.simplememory.Document
assertions, comments, distinctSets, docId, imports, individuals, label, nameSpaces, sameSets, size, xmlBase
 
Constructor Summary
Document()
          Constructor.
 
Method Summary
 void addImports(DocId id)
          Add an imports statement.
 void addIndividual(Individual indiv)
          Add an individual.
 Individual createIndividual()
          Create a Individual object.
 void deleteIndividual(Individual indi)
          Delete an individual.
 void flush()
          Flush the axioms into database.
 DocId[] getAncestors()
           
 int getDocSeq()
          Get the document sequence number.
 StorageModel getModel()
          Get the storageModel.
 void setDocSeq(int i)
          Set the document sequence number.
 void setModel(StorageModel m)
          Set the storageModel.
 void setSQLStatement(java.sql.Statement statement)
          Set the SQL statement.
 
Methods inherited from class edu.lehigh.swat.hawk.storage.simplememory.Document
addAssertion, addDescription, addDistinctIndividualsSet, addSameIndividualsSet, deleteAllIndividual, deleteAssertion, deleteDescriprion, deleteDistinctIndividualsSet, deleteImports, deleteSameIndividualsSet, equals, getAllAssertions, getAllDescriptions, getAllIndividuals, getAssertionIterator, getDescendants, getDescription, getDistinctIndividualsSets, getID, getImports, getIndividual, getIndividualIterator, getLabel, getNameSpaces, getSameIndividualsSets, getSize, getXMLBase, setDescendants, setID, setLabel, setNameSpaces, setSize, setXMLBase
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stmt

protected java.sql.Statement stmt

model

protected DatabaseStorage model

ancestors

protected java.util.ArrayList ancestors
Constructor Detail

Document

public Document()
Constructor.

Method Detail

createIndividual

public Individual createIndividual()
Create a Individual object.

Specified by:
createIndividual in interface Document
Overrides:
createIndividual in class Document

addIndividual

public void addIndividual(Individual indiv)
Add an individual.

Specified by:
addIndividual in interface Document
Overrides:
addIndividual in class Document

deleteIndividual

public void deleteIndividual(Individual indi)
Delete an individual.

Specified by:
deleteIndividual in interface Document
Overrides:
deleteIndividual in class Document

setDocSeq

public void setDocSeq(int i)
Set the document sequence number.


getDocSeq

public int getDocSeq()
Get the document sequence number.


setSQLStatement

public void setSQLStatement(java.sql.Statement statement)
Set the SQL statement.


setModel

public void setModel(StorageModel m)
Set the storageModel.


getModel

public StorageModel getModel()
Get the storageModel.


flush

public void flush()
Flush the axioms into database.

Specified by:
flush in interface Document
Overrides:
flush in class Document

addImports

public void addImports(DocId id)
Add an imports statement.

Specified by:
addImports in interface Document
Overrides:
addImports in class Document

getAncestors

public DocId[] getAncestors()