Class MInfoColumn

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, IInfoColumn, I_AD_InfoColumn, I_Persistent, Evaluatee, ImmutablePOSupport

public class MInfoColumn extends X_AD_InfoColumn implements IInfoColumn, ImmutablePOSupport
Info Window Column Model
Version:
$Id: MInfoColumn.java,v 1.2 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MInfoColumn

      public MInfoColumn(Properties ctx, String AD_InfoColumn_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      AD_InfoColumn_UU - UUID key
      trxName - Transaction
    • MInfoColumn

      public MInfoColumn(Properties ctx, int AD_InfoColumn_ID, String trxName)
      Stanfard Constructor
      Parameters:
      ctx - context
      AD_InfoColumn_ID - id
      trxName - transaction
    • MInfoColumn

      public MInfoColumn(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
      Parameters:
      ctx - context
      rs - result set
      trxName - transaction
    • MInfoColumn

      public MInfoColumn(MInfoWindow targetInfoWindow)
      Parameters:
      targetInfoWindow -
    • MInfoColumn

      public MInfoColumn(MInfoColumn copy)
      copy constructor
      Parameters:
      copy -
  • Method Details

    • getParent

      public MInfoWindow getParent()
      Get Parent
      Returns:
      parent
    • isColumnAccess

      public boolean isColumnAccess(AccessSqlParser.TableInfo[] tableInfos)
      check column read access
      Parameters:
      tableInfos -
      Returns:
      false if current role don't have read access to the column, true otherwise
    • isDisplayed

      public boolean isDisplayed(Properties ctx, int windowNo)
      Parameters:
      ctx -
      windowNo -
      Returns:
      true if visible, false otherwise
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Description copied from class: PO
      Called before Save for Pre-Save Operation
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - new record
      Returns:
      true if record can be saved
    • afterSave

      protected boolean afterSave(boolean newRecord, boolean success)
      when change field relate to sql, call valid from infoWindow
      Overrides:
      afterSave in class PO
      Parameters:
      newRecord - new record
      success - true if save operation was success
      Returns:
      if save was a success
    • afterDelete

      protected boolean afterDelete(boolean success)
       when delete record, call valid from parent to set state
       when delete all, valid state is false
       when delete a wrong column can make valid state to true
       
      Overrides:
      afterDelete in class PO
      Parameters:
      success - true if record deleted
      Returns:
      true if delete is a success
    • getInfoColumnID

      public int getInfoColumnID()
      Description copied from interface: IInfoColumn
      Id of MInfoColumn
      Specified by:
      getInfoColumnID in interface IInfoColumn
      Returns:
    • getAD_InfoColumn

      public MInfoColumn getAD_InfoColumn()
      Description copied from interface: IInfoColumn
      Get MInfoColumn instance
      Specified by:
      getAD_InfoColumn in interface IInfoColumn
      Returns:
      MInfoColumn
    • getAD_Val_Rule

      public I_AD_Val_Rule getAD_Val_Rule() throws RuntimeException
      Specified by:
      getAD_Val_Rule in interface I_AD_InfoColumn
      Overrides:
      getAD_Val_Rule in class X_AD_InfoColumn
      Throws:
      RuntimeException
    • markImmutable

      public PO markImmutable()
      Description copied from interface: ImmutablePOSupport
      mark PO as immutable
      Specified by:
      markImmutable in interface ImmutablePOSupport
      Returns:
      PO