Class MGLCategory

    • Constructor Detail

      • MGLCategory

        public MGLCategory​(Properties ctx,
                           int GL_Category_ID,
                           String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        GL_Category_ID - id
        trxName - transaction
      • MGLCategory

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

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

      • get

        public static MGLCategory get​(int GL_Category_ID)
        Get MGLCategory from Cache (immutable)
        Parameters:
        GL_Category_ID - id
        Returns:
        MGLCategory
      • get

        public static MGLCategory get​(Properties ctx,
                                      int GL_Category_ID)
        Get MGLCategory from Cache (immutable)
        Parameters:
        ctx - context
        GL_Category_ID - id
        Returns:
        immutable instance of MGLCategory
      • getDefault

        public static MGLCategory getDefault​(Properties ctx,
                                             String CategoryType)
        Get Default Category
        Parameters:
        ctx - context
        CategoryType - optional CategoryType (ignored, if not exists)
        Returns:
        GL Category or null
      • getDefaultSystem

        public static MGLCategory getDefaultSystem​(Properties ctx)
        Get Default System Category
        Parameters:
        ctx - context
        Returns:
        GL Category
      • toString

        public String toString()
        Description copied from class: PO
        String representation
        Overrides:
        toString in class X_GL_Category
        Returns:
        String representation