Class MFreightCategory

    • Constructor Detail

      • MFreightCategory

        public MFreightCategory​(Properties ctx,
                                int M_FreightCategory_ID,
                                String trxName)
        Default constructor
        Parameters:
        ctx - Context
        M_FreightCategory_ID - If set to 0 a new category is created.
        trxName - Name of database transaction
      • MFreightCategory

        public MFreightCategory​(Properties ctx,
                                ResultSet rs,
                                String trxName)
        Constructor using a resultset.
        Parameters:
        ctx -
        rs -
        trxName -
    • Method Detail

      • getByValue

        public static MFreightCategory getByValue​(Properties ctx,
                                                  String value,
                                                  String trxName)
        Reads a freight category from database based on the value (key) of the category. No cache is used.
        Parameters:
        ctx - Context. The context is used to match only categories within the client.
        value -
        trxName -
        Returns:
        If a match is found, the freight category. No match returns null.