Class M_Element

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

public class M_Element extends X_AD_Element
System Element Model
Version:
$Id: M_Element.java,v 1.3 2006/07/30 00:58:37 jjanke Exp $ FR: [ 2214883 ] Remove SQL code and Replace for Query - red1, teo_sarca
Author:
Jorg Janke
See Also:
  • Constructor Details

    • M_Element

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

      public M_Element(Properties ctx, int AD_Element_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      AD_Element_ID - element
      trxName - transaction
    • M_Element

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

      public M_Element(Properties ctx, String columnName, String EntityType, String trxName)
      Minimum Constructor
      Parameters:
      ctx - context
      columnName - column
      EntityType - entity type
      trxName - trx
  • Method Details

    • getColumnName

      public static String getColumnName(String columnName)
      Get case sensitive Column Name
      Parameters:
      columnName - case insensitive column name
      Returns:
      case sensitive column name
    • getColumnName

      public static String getColumnName(String columnName, String trxName)
      Get case sensitive Column Name
      Parameters:
      columnName - case insensitive column name
      trxName - optional transaction name
      Returns:
      case sensitive column name
    • get

      public static M_Element get(Properties ctx, String columnName)
      Get Element
      Parameters:
      ctx - context
      columnName - case insensitive column name
      Returns:
      M_Element
    • get

      public static M_Element get(Properties ctx, String columnName, String trxName)
      Get Element
      Parameters:
      ctx - context
      columnName - case insensitive column name
      trxName - optional transaction name
      Returns:
      M_Element
    • getOfColumn

      public static M_Element getOfColumn(Properties ctx, int AD_Column_ID, String trxName)
      Get Element
      Parameters:
      ctx - context
      AD_Column_ID -
      trxName - trx
      Returns:
      M_Element
    • getOfColumn

      public static M_Element getOfColumn(Properties ctx, int AD_Column_ID)
      Get Element
      Parameters:
      ctx - context
      AD_Column_ID -
      Returns:
      M_Element
    • 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
    • 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
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_AD_Element
      Returns:
      info
    • renameDBColumn

      public void renameDBColumn(String newColumnName, ProcessInfo pi)
      Change DB column name (i.e Alter Column)
      Parameters:
      newColumnName -
      pi -