Class MEXPFormat

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

public class MEXPFormat extends X_EXP_Format implements ImmutablePOSupport
Author:
Trifon N. Trifonov, Antonio CaƱaveral, e-Evolution
  • [ 2195090 ] Implementing ExportFormat cache
  • https://sourceforge.net/p/adempiere/feature-requests/554/, victor.perez@e-evolution.com, e-Evolution
  • [ 2195090 ] Stabilization of replication
  • https://sourceforge.net/p/adempiere/bugs/2294/
  • See Also:
    • Constructor Details

      • MEXPFormat

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

        public MEXPFormat(Properties ctx, int EXP_Format_ID, String trxName)
        Parameters:
        ctx -
        EXP_Format_ID -
        trxName -
      • MEXPFormat

        public MEXPFormat(Properties ctx, ResultSet rs, String trxName)
        Parameters:
        ctx -
        rs -
        trxName -
      • MEXPFormat

        public MEXPFormat(MEXPFormat copy)
        Copy constructor
        Parameters:
        copy -
      • MEXPFormat

        public MEXPFormat(Properties ctx, MEXPFormat copy)
        Copy constructor
        Parameters:
        ctx -
        copy -
      • MEXPFormat

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

      • getFormatLines

        public List<MEXPFormatLine> getFormatLines()
        Returns:
        list of format lines (MEXPFormatLine)
      • getFormatLinesOrderedBy

        public List<MEXPFormatLine> getFormatLinesOrderedBy(String orderBy)
        Parameters:
        orderBy -
        Returns:
        list of format lines (MEXPFormatLine)
      • getUniqueColumns

        public Collection<MEXPFormatLine> getUniqueColumns() throws SQLException
        Returns:
        collection of format line (MEXPFormatLine) with IsPartUniqueIndex=Y
        Throws:
        SQLException
      • get

        public static MEXPFormat get(int EXP_Format_ID)
        Get MEXPFormat from cache (immutable)
        Parameters:
        EXP_Format_ID -
        Returns:
        MEXPFormat
      • get

        public static MEXPFormat get(int EXP_Format_ID, String trxName)
        Get MEXPFormat from cache (immutable)
        Parameters:
        EXP_Format_ID -
        trxName -
        Returns:
        MEXPFormat
      • get

        public static MEXPFormat get(Properties ctx, int EXP_Format_ID, String trxName)
        Get MEXPFormat from cache (immutable)
        Parameters:
        ctx -
        EXP_Format_ID -
        trxName -
        Returns:
        MEXPFormat
      • getFormatByValueAD_Client_IDAndVersion

        public static MEXPFormat getFormatByValueAD_Client_IDAndVersion(Properties ctx, String value, int AD_Client_ID, String version, String trxName) throws SQLException
        Get export format via value, client and version
        Parameters:
        ctx -
        value -
        AD_Client_ID -
        version -
        trxName -
        Returns:
        MEXPFormat
        Throws:
        SQLException
      • getFormatByAD_Client_IDAD_Table_IDAndVersion

        public static MEXPFormat getFormatByAD_Client_IDAD_Table_IDAndVersion(Properties ctx, int AD_Client_ID, int AD_Table_ID, String version, String trxName) throws SQLException
        Get export format via client, table and version
        Parameters:
        ctx -
        AD_Client_ID -
        AD_Table_ID -
        version -
        trxName -
        Returns:
        MEXPFormat
        Throws:
        SQLException
      • toString

        public String toString()
        Description copied from class: PO
        String representation
        Overrides:
        toString in class X_EXP_Format
        Returns:
        String representation
      • beforeDelete

        protected boolean beforeDelete()
        Description copied from class: PO
        Execute before Delete operations.
        Default implementation is nop, to be implemented in sub-classes that needed it.
        Overrides:
        beforeDelete in class PO
        Returns:
        true if record can be deleted
      • markImmutable

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