Class MBPartnerLocation

    • Constructor Detail

      • MBPartnerLocation

        public MBPartnerLocation​(Properties ctx,
                                 int C_BPartner_Location_ID,
                                 String trxName)
        Default Constructor
        Parameters:
        ctx - context
        C_BPartner_Location_ID - id
        trxName - transaction
      • MBPartnerLocation

        public MBPartnerLocation​(MBPartner bp)
        BP Parent Constructor
        Parameters:
        bp - partner
      • MBPartnerLocation

        public MBPartnerLocation​(Properties ctx,
                                 ResultSet rs,
                                 String trxName)
        Constructor from ResultSet row
        Parameters:
        ctx - context
        rs - current row of result set to be loaded
        trxName - transaction
      • MBPartnerLocation

        public MBPartnerLocation​(MBPartnerLocation copy)
        Parameters:
        copy -
    • Method Detail

      • getForBPartner

        public static MBPartnerLocation[] getForBPartner​(Properties ctx,
                                                         int C_BPartner_ID,
                                                         String trxName)
        Get Locations for BPartner
        Parameters:
        ctx - context
        C_BPartner_ID - bp
        trxName -
        Returns:
        array of locations
      • getLocation

        public MLocation getLocation​(boolean requery)
        Get Location/Address
        Parameters:
        requery - get again the location from DB - please note that if used out of transaction the result is get from the cache
        Returns:
        location
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Before Save. - Set Name
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new
        Returns:
        save