Open SiteSearch 4.1.1
Final

ORG.oclc.mantis.util
Class SaveIdFromFile

java.lang.Object
  |
  +--ORG.oclc.mantis.util.SaveIdFromFile

public class SaveIdFromFile
extends Object
implements IRecordId

The SaveIdFromFile class implements the IRecordId interface and return a record id for RecordBuilder Save database. This will only happen for records which do not have record ID (accession number).


Constructor Summary
SaveIdFromFile()
           
 
Method Summary
 void incrementit()
          Executes the method that will increment the record number for the next request for a new record id.
 String runit(Db dbObject, DataDir rec)
          Executes the class being dynamically loaded using the input parameter dbObject and record data to construct and ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaveIdFromFile

public SaveIdFromFile()
Method Detail

runit

public String runit(Db dbObject,
                    DataDir rec)
Executes the class being dynamically loaded using the input parameter dbObject and record data to construct and ID. This ID is of the form TargetDBName-XXX (where XXX is next consecutive value for the Record ID file located using the DbObject).
Specified by:
runit in interface IRecordId
Parameters:
dbObject - the Db object.
DataDir - the record the ID is for.

incrementit

public void incrementit()
Executes the method that will increment the record number for the next request for a new record id.
Specified by:
incrementit in interface IRecordId

Open SiteSearch 4.1.1
Final