Package systextil.nxj

Interface ContainerData

All Superinterfaces:
FieldData
All Known Subinterfaces:
FormData

public interface ContainerData extends FieldData
Expõe para as classes controller as operações disponíveis em um container (data view) do NXJ.

Essa interface é implementada pela classe forms.systextil.ControleJavaDataView no NXJ, e, teoricamente, uma classe java que implemente essa interface é capaz de controlar qualquer DataView no NXJ.

  • Method Details

    • inFindMode

      boolean inFindMode()
      Indicates whether the data view is in find mode.
      Returns:
      true if the dataView is in find mode or false otherwise
    • isCurrentRecordNew

      boolean isCurrentRecordNew()
      Indicates whether the current record is new (created by a DataViewController.onClearToAdd() and not yet stored in the target table).
      Returns:
      true if is new or false otherwise
    • isCurrentRecordStored

      boolean isCurrentRecordStored()
      Indicates whether the values in the current record are stored in persistent storage (the database or data source).
      Returns:
      true if is stored or false otherwise
    • rejectOperation

      void rejectOperation()
      Rejects the current operation.
    • rejectRecord

      void rejectRecord()
      Used in the DataViewController.onFind() event section to reject a candidate record from being included in the selected set.
    • queueNextField

      void queueNextField(String fieldName)
      Moves the cursor to the specified field
      Parameters:
      fieldName - the name of the field
    • addAllowed

      boolean addAllowed()
      Indicates whether ADD operations are allowed in this data view.
      Returns:
      true if is allowed or false otherwise
    • deleteAllowed

      boolean deleteAllowed()
      Indicates whether DELETE operations are allowed in this data view.
      Returns:
      true if is allowed or false otherwise
    • findAllowed

      boolean findAllowed()
      Indicates whether FIND operations are allowed in this data view.
      Returns:
      true if is allowed or false otherwise
    • updateAllowed

      boolean updateAllowed()
      Indicates whether UPDATE operations are allowed in this data view.
      Returns:
      true if is allowed or false otherwise
    • addAllowed

      void addAllowed(boolean allowed)
      Set whether ADD operations are allowed in this data view.
      Parameters:
      allowed -
    • deleteAllowed

      void deleteAllowed(boolean allowed)
      Set whether DELETE operations are allowed in this data view.
      Parameters:
      allowed -
    • findAllowed

      void findAllowed(boolean allowed)
      Set whether FIND operations are allowed in this data view.
      Parameters:
      allowed -
    • updateAllowed

      void updateAllowed(boolean allowed)
      Set whether UPDATE operations are allowed in this data view.
      Parameters:
      allowed -
    • recordCount

      int recordCount()
      The number of records in the selected set.
    • currentRecordNumber

      int currentRecordNumber()
      The index number of the record on which the data view is currently positioned (first record is 1, second record is 2, and so on).
    • positionToRecord

      void positionToRecord(int recordNumber) throws Exception
      Positions to the specified record number (first record is 1, second record is 2, and so forth). Note that this operation does not trigger the DataViewController.onPreviousRecord() and DataViewController.onNextRecord() event sections.
      Parameters:
      recordNumber -
      Throws:
      Exception - when the recordNumber is invalid
    • sqlOptionalCondition

      void sqlOptionalCondition(String sqlOptionalCondition)
      An SQL WHERE clause fragment that will be included in the WHERE clause created by a FIND operation.
      Parameters:
      sqlOptionalCondition -
    • sqlOrderByClause

      void sqlOrderByClause(String sqlOrderByClause)
      The value of the SQL ORDER BY clause that is used for FIND operations.
      Parameters:
      sqlOrderByClause -
    • queueCommand

      void queueCommand(String command)
      Execute the specified event of the current DataView.
      Parameters:
      command -
    • updateCurrentRecord

      void updateCurrentRecord() throws Exception
      Performs an ADD_UPDATE operation on the current record.
      Throws:
      Exception
    • deleteCurrentRecord

      void deleteCurrentRecord() throws Exception
      Performs a DELETE operation on the current record.
      Throws:
      Exception