Class M_Element

    • Constructor Detail

      • 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 Detail

      • 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:
        case sensitive column name
      • 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:
        case sensitive column name
      • 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
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new record
        Returns:
        true if record can be saved
      • afterSave

        protected boolean afterSave​(boolean newRecord,
                                    boolean success)
        After Save
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new
        success - success
        Returns:
        success
      • renameDBColumn

        public void renameDBColumn​(String newColumnName,
                                   ProcessInfo pi)