Class MField

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

public class MField extends X_AD_Field implements ImmutablePOSupport
Field Model
Version:
$Id: MField.java,v 1.2 2006/07/30 00:58:04 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MField

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

      public MField(Properties ctx, int AD_Field_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      AD_Field_ID - id
      trxName - transaction
    • MField

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

      public MField(MTab parent)
      Parent Constructor
      Parameters:
      parent - parent
    • MField

      public MField(MTab parent, MField from)
      Copy Constructor
      Parameters:
      parent - parent
      from - copy from
    • MField

      public MField(MField copy)
      Copy Constructor
      Parameters:
      copy -
    • MField

      public MField(Properties ctx, MField copy)
      Copy Constructor
      Parameters:
      ctx -
      copy -
    • MField

      public MField(Properties ctx, MField copy, String trxName)
      Copy Constructor
      Parameters:
      ctx -
      copy -
      trxName -
  • Method Details

    • get

      public static MField get(int AD_Field_ID)
      Get MField from cache
      Parameters:
      AD_Field_ID -
      Returns:
      MField (immutable)
    • get

      public static MField get(Properties ctx, int AD_Field_ID)
      Parameters:
      ctx - context
      AD_Field_ID -
      Returns:
      Immutable instance of MField
    • setColumn

      public void setColumn(MColumn column)
      Set Column Values
      Parameters:
      column - column
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Description copied from class: PO
      Called before Save for Pre-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - true if it is a new record
      Returns:
      true if record can be saved
    • markImmutable

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