Class MRecordAccess

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_AD_Record_Access, I_Persistent, Evaluatee

public class MRecordAccess extends X_AD_Record_Access
Record Access Model
Version:
$Id: MRecordAccess.java,v 1.3 2006/07/30 00:58:37 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MRecordAccess

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

      public MRecordAccess(Properties ctx, int ignored, String trxName)
      Parameters:
      ctx - context
      ignored - ignored
      trxName - transaction
    • MRecordAccess

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

      public MRecordAccess(Properties ctx, int AD_Role_ID, int AD_Table_ID, int Record_ID, String trxName)
      Full New Constructor
      Parameters:
      ctx - context
      AD_Role_ID - role
      AD_Table_ID - table
      Record_ID - record
      trxName - transaction
  • Method Details

    • getKeyColumnName

      public String getKeyColumnName()
      Get Key Column Name
      Returns:
      Key Column Name
    • getSynonym

      public String getSynonym()
      Get predefined synonym of column.
      SalesRep_ID is synonym of AD_User_ID.
      Account_ID is synonym of C_ElementValue_ID.
      Returns:
      Synonym of Column Name or null
    • isSynonym

      public boolean isSynonym()
      Key Column has a Synonym.
      Returns:
      true if Key Column has Synonym
      See Also:
    • isReadWrite

      public boolean isReadWrite()
      Is Read Write
      Returns:
      false if exclude or readonly
    • getKeyColumnName

      public String getKeyColumnName(AccessSqlParser.TableInfo[] tableInfo)
      Get Key Column Name with consideration of Synonym
      Parameters:
      tableInfo -
      Returns:
      key column name
      See Also:
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_AD_Record_Access
      Returns:
      info
    • toStringX

      public String toStringX(Properties ctx)
      Extended String Representation
      Parameters:
      ctx - context
      Returns:
      extended info
    • getTableName

      public String getTableName(Properties ctx)
      Get Table Name
      Parameters:
      ctx - context
      Returns:
      table name
    • afterSave

      protected boolean afterSave(boolean newRecord, boolean success)
      Description copied from class: PO
      Called after Save for Post-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      afterSave in class PO
      Parameters:
      newRecord - true if it is a new record
      success - true if save operation was success
      Returns:
      if save was a success
    • afterDelete

      protected boolean afterDelete(boolean success)
      Description copied from class: PO
      Execute after Delete operations.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      afterDelete in class PO
      Parameters:
      success - true if record deleted
      Returns:
      true if delete is a success