org.mydm.db
Class DocHandler

java.lang.Object
  extended byorg.mydm.db.DocHandler

public class DocHandler
extends java.lang.Object

Dochandler Handles all actions on all kinds of Documents of any kind of Collection. Every DataBase transaction regarding documents goes through this Object.


Constructor Summary
DocHandler()
           
DocHandler(java.lang.String colname)
          Constructer
 
Method Summary
 void deleteEDoc(java.lang.String docid)
          deltes the EDocument from the database
 java.util.HashMap getColHash()
          Returns the Hash of the all the documents in the Collection.
 java.lang.String getDocContent(java.lang.String docid)
          Gets the Content of the Document.
 java.lang.String[] getDocList()
          Gets the List of Documents of a collection.
 EDocument getEDocument(java.lang.String docid)
          Gets the EDocument Object of particular ID The Attachment of the Collection is done here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocHandler

public DocHandler()

DocHandler

public DocHandler(java.lang.String colname)
Constructer

Parameters:
colname - String
Method Detail

getDocList

public java.lang.String[] getDocList()
Gets the List of Documents of a collection.

Returns:
Document List of the collection.

getDocContent

public java.lang.String getDocContent(java.lang.String docid)
Gets the Content of the Document.

Parameters:
docid - Document id(XMLDB ID)
Returns:
content of the document, ofcourse in XML

getEDocument

public EDocument getEDocument(java.lang.String docid)
Gets the EDocument Object of particular ID The Attachment of the Collection is done here.

Parameters:
docid -
Returns:

getColHash

public java.util.HashMap getColHash()
Returns the Hash of the all the documents in the Collection.

Returns:
colhash, hash of all docs in a collection.

deleteEDoc

public void deleteEDoc(java.lang.String docid)
deltes the EDocument from the database

Parameters:
docid -