Class MGLCategory

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

public class MGLCategory extends X_GL_Category implements ImmutablePOSupport
GL Category
Version:
$Id: MGLCategory.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MGLCategory

      public MGLCategory(Properties ctx, String GL_Category_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      GL_Category_UU - UUID key
      trxName - Transaction
    • 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)
      Copy constructor
      Parameters:
      copy -
    • MGLCategory

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

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

    • 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 GL 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 Generated GL Category (CATEGORYTYPE_SystemGenerated)
      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
    • markImmutable

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