Class DMSWrapper

All Implemented Interfaces:
IPersistence, ISQLWrapper, DMSCodes, AbstractDataObject, ICBLBeanNGroup, ICBLContainer, IFieldContainer, ISMBean, ISMDataType

public abstract class DMSWrapper extends LinkedSQLWrapper implements DMSCodes
  • Constructor Details

  • Method Details

    • addSearchCondition

      public void addSearchCondition(AbstractCBLField theField, String conditionType)
      // toremove
      Parameters:
      indexField - public void addRecordKeyField (ACMField indexField) { primaryIndexKeys.add(indexField); } /** // toremove
      indexField - public void addRecordKeyField (ACMGroup indexGroup) { List fieldList = indexGroup.getPrimitiveFieldList(); for (int i = 0; i invalid input: '<' fieldList.size(); i++) { ACMField nextField = (ACMField) fieldList.get(i); addRecordKeyField(nextField ); } }
    • setCondition

      public void setCondition(String arg)
    • readRecord

      public int readRecord() throws IOStatusException
      Description copied from class: LinkedSQLWrapper
      go to next
      Overrides:
      readRecord in class LinkedSQLWrapper
      Returns:
      IPersistence.STATUS_SUCCESS if records are found, Otherwise returns other values from IPersistence;
      Throws:
      IOStatusException
    • restoreResultSet

      protected void restoreResultSet() throws SQLException
      Throws:
      SQLException
    • insertRecord

      public int insertRecord()
      Description copied from class: AbstractIndexedFile
      Insert a record - populate the values from the existing fields
      Overrides:
      insertRecord in class AbstractIndexedFile
      Returns:
      when successful it returns IPersistence.STATUS_SUCCESS
    • retrieveAdditionalSQLCondition

      public StringBuilder retrieveAdditionalSQLCondition()
      Description copied from class: SQLWrapper
      Hierarchical tables will define additional SQLConditions - e.g. INDX_FLD_TABLE_1 = 12
      Specified by:
      retrieveAdditionalSQLCondition in interface ISQLWrapper
      Overrides:
      retrieveAdditionalSQLCondition in class SQLWrapper
      Returns:
    • nextRecord

      public int nextRecord() throws IOStatusException
      Translation of COBOL Read Next ...
      Overrides:
      nextRecord in class LinkedSQLWrapper
      Returns:
      IPersistence.STATUS_SUCCESS if records are found, Otherwise returns other values from IPersistence;
      Throws:
      IOStatusException
    • reStart

      public void reStart()
      Tranlation of SET record TO BEGINNING.
    • assignStatusValue

      protected void assignStatusValue(String value)
      Used internally to set the IO operation status-values. Also if a FileStatus field is defined, the system will allocate correct values to it.
      Overrides:
      assignStatusValue in class AbstractBasePersistence
      Parameters:
      value - - .. one of ACMBasePersistent.STATUS_xxxx
    • assignStatusValue

      public void assignStatusValue(int value)
      Used internally to set the IO operation status-values. Also if a FileStatus field is defined, the system will allocate correct values to it.
      Specified by:
      assignStatusValue in interface ISQLWrapper
      Overrides:
      assignStatusValue in class AbstractBasePersistence
      Parameters:
      value - - .. one of ACMBasePersistent.STATUS_xxxx
    • isStatus

      public boolean isStatus(String value)
    • getStatus

      public String getStatus()
    • lock

      public void lock()
    • beginTransaction

      public void beginTransaction()
    • endTransaction

      public void endTransaction()
    • create

      public void create()
    • create

      public void create(int theValue)
    • first

      public void first()
      Translation of SET-TO-BEGINNING position to "before" the first record
    • free

      public void free()
    • openRecord

      public void openRecord(int openMode)