org.mydm.db
Class SequenceGenerator

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

public class SequenceGenerator
extends java.lang.Object


Method Summary
static SequenceGenerator getInstance()
           
 int getNewAuthorID()
          Gets the next author id from the sequence
 int getNewCollectionID()
          Gets a new Collection id
 int getNewColMDFTextID()
          Gets a new ID for mdftext entry for a collection.
 int getNewDocId()
          This Method Gets the id for a document.
 int getNewFileID()
          Gets a new file ID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SequenceGenerator getInstance()

getNewDocId

public int getNewDocId()
This Method Gets the id for a document. This increments the counter for the Document Obejcts.

Returns:
nextid nextid for the doc

getNewAuthorID

public int getNewAuthorID()
Gets the next author id from the sequence

Returns:
new authorid

getNewFileID

public int getNewFileID()
Gets a new file ID

Returns:
new fileid

getNewCollectionID

public int getNewCollectionID()
Gets a new Collection id

Returns:
new collection id

getNewColMDFTextID

public int getNewColMDFTextID()
Gets a new ID for mdftext entry for a collection.

Returns:
new mdftext collection id