Class MInfoColumn

    • Constructor Detail

      • 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)
      • MInfoColumn

        public MInfoColumn​(MInfoColumn copy)
        copy constructor
        Parameters:
        copy -
    • Method Detail

      • 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, false otherwise
      • isDisplayed

        public boolean isDisplayed​(Properties ctx,
                                   int windowNo)
        Parameters:
        ctx -
        windowNo -
        Returns:
        boolean
      • 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