Package org.compiere.model
Class MProductCategoryAcct
- java.lang.Object
-
- org.compiere.model.PO
-
- org.compiere.model.X_M_Product_Category_Acct
-
- org.compiere.model.MProductCategoryAcct
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparator<Object>,I_M_Product_Category_Acct,I_Persistent,Evaluatee,ImmutablePOSupport
public class MProductCategoryAcct extends X_M_Product_Category_Acct implements ImmutablePOSupport
Product Category Account Model- Version:
- $Id: MProductCategoryAcct.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.compiere.model.X_M_Product_Category_Acct
COSTINGLEVEL_AD_Reference_ID, COSTINGLEVEL_BatchLot, COSTINGLEVEL_Client, COSTINGLEVEL_Organization, COSTINGMETHOD__, COSTINGMETHOD_AD_Reference_ID, COSTINGMETHOD_AverageInvoice, COSTINGMETHOD_AveragePO, COSTINGMETHOD_Fifo, COSTINGMETHOD_LastInvoice, COSTINGMETHOD_LastPOPrice, COSTINGMETHOD_Lifo, COSTINGMETHOD_StandardCosting, COSTINGMETHOD_UserDefined
-
Fields inherited from class org.compiere.model.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, LOCAL_TRX_PREFIX, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
-
Fields inherited from interface org.compiere.model.I_M_Product_Category_Acct
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_C_AcctSchema_ID, COLUMNNAME_CostingLevel, COLUMNNAME_CostingMethod, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_IsActive, COLUMNNAME_M_Product_Category_Acct_UU, COLUMNNAME_M_Product_Category_ID, COLUMNNAME_P_Asset_Acct, COLUMNNAME_P_AverageCostVariance_Acct, COLUMNNAME_P_COGS_Acct, COLUMNNAME_P_CostAdjustment_Acct, COLUMNNAME_P_Expense_Acct, COLUMNNAME_P_InventoryClearing_Acct, COLUMNNAME_P_InvoicePriceVariance_Acct, COLUMNNAME_P_LandedCostClearing_Acct, COLUMNNAME_P_PurchasePriceVariance_Acct, COLUMNNAME_P_RateVariance_Acct, COLUMNNAME_P_Revenue_Acct, COLUMNNAME_P_TradeDiscountGrant_Acct, COLUMNNAME_P_TradeDiscountRec_Acct, COLUMNNAME_Processing, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, Model, Table_ID, Table_Name
-
-
Constructor Summary
Constructors Constructor Description MProductCategoryAcct(Properties ctx, int ignored, String trxName)Standard ConstructorMProductCategoryAcct(Properties ctx, ResultSet rs, String trxName)Load CosntructorMProductCategoryAcct(Properties ctx, MProductCategoryAcct copy)MProductCategoryAcct(Properties ctx, MProductCategoryAcct copy, String trxName)MProductCategoryAcct(MProductCategoryAcct copy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanafterSave(boolean newRecord, boolean success)After SavevoidcheckCosting()Check Costing Setupstatic MProductCategoryAcctget(int M_Product_Category_ID, int C_AcctSchema_ID)Get Category Acctstatic MProductCategoryAcctget(int M_Product_Category_ID, int C_AcctSchema_ID, String trxName)Get Category Acctstatic MProductCategoryAcctget(Properties ctx, int M_Product_Category_ID, int C_AcctSchema_ID, String trxName)Get Category Acct from cache (immutable)MProductCategoryAcctmarkImmutable()mark PO as immutableStringtoString()String Representation-
Methods inherited from class org.compiere.model.X_M_Product_Category_Acct
get_AccessLevel, getC_AcctSchema, getC_AcctSchema_ID, getCostingLevel, getCostingMethod, getM_Product_Category, getM_Product_Category_Acct_UU, getM_Product_Category_ID, getP_Asset_A, getP_Asset_Acct, getP_AverageCostVariance_A, getP_AverageCostVariance_Acct, getP_COGS_A, getP_COGS_Acct, getP_CostAdjustment_A, getP_CostAdjustment_Acct, getP_Expense_A, getP_Expense_Acct, getP_InventoryClearing_A, getP_InventoryClearing_Acct, getP_InvoicePriceVariance_A, getP_InvoicePriceVariance_Acct, getP_LandedCostClearing_A, getP_LandedCostClearing_Acct, getP_PurchasePriceVariance_A, getP_PurchasePriceVariance_Acct, getP_RateVariance_A, getP_RateVariance_Acct, getP_Revenue_A, getP_Revenue_Acct, getP_TradeDiscountGrant_A, getP_TradeDiscountGrant_Acct, getP_TradeDiscountRec_A, getP_TradeDiscountRec_Acct, initPO, isProcessing, setC_AcctSchema_ID, setCostingLevel, setCostingMethod, setM_Product_Category_Acct_UU, setM_Product_Category_ID, setP_Asset_Acct, setP_AverageCostVariance_Acct, setP_COGS_Acct, setP_CostAdjustment_Acct, setP_Expense_Acct, setP_InventoryClearing_Acct, setP_InvoicePriceVariance_Acct, setP_LandedCostClearing_Acct, setP_PurchasePriceVariance_Acct, setP_RateVariance_Acct, setP_Revenue_Acct, setP_TradeDiscountGrant_Acct, setP_TradeDiscountRec_Acct, setProcessing
-
Methods inherited from class org.compiere.model.PO
afterDelete, beforeDelete, beforeSave, checkImmutable, clearCrossTenantSafe, clone, columnExists, columnExists, compare, copyPO, copyValues, copyValues, createAttachment, delete, delete, delete_Accounting, delete_Tree, deleteEx, deleteEx, dump, dump, equals, get_Attribute, get_Attributes, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_OptimisticLockingColumns, get_Table_ID, get_TableName, get_Translation, get_Translation, get_Translation, get_Translation, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, getUUIDColumnName, getUUIDColumnName, hashCode, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_Immutable, is_new, is_UseOptimisticLocking, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, load, loadByUU, loadComplete, loadDefaults, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, saveEx, saveEx, saveNew_afterSetID, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_Attribute, set_ColumnUpdateable, set_CustomColumn, set_CustomColumnReturningBoolean, set_OptimisticLockingColumns, set_TrxName, set_TrxName, set_UseOptimisticLocking, set_Value, set_Value, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, set_ValueOfColumnReturningBoolean, set_ValueOfColumnReturningBoolean, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setCrossTenantSafe, setDoc, setDocWorkflowMgr, setIsActive, setProcessedOn, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, unlock, update_Tree, validForeignKeys
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Methods inherited from interface org.compiere.model.I_M_Product_Category_Acct
getAD_Client_ID, getAD_Org_ID, getCreated, getCreatedBy, getUpdated, getUpdatedBy, isActive, setAD_Org_ID, setIsActive
-
Methods inherited from interface org.compiere.model.I_Persistent
save
-
-
-
-
Constructor Detail
-
MProductCategoryAcct
public MProductCategoryAcct(Properties ctx, int ignored, String trxName)
Standard Constructor- Parameters:
ctx- contextignored- ignoredtrxName-
-
MProductCategoryAcct
public MProductCategoryAcct(Properties ctx, ResultSet rs, String trxName)
Load Cosntructor- Parameters:
ctx- contextrs- result settrxName- trx
-
MProductCategoryAcct
public MProductCategoryAcct(MProductCategoryAcct copy)
- Parameters:
copy-
-
MProductCategoryAcct
public MProductCategoryAcct(Properties ctx, MProductCategoryAcct copy)
- Parameters:
ctx-copy-
-
MProductCategoryAcct
public MProductCategoryAcct(Properties ctx, MProductCategoryAcct copy, String trxName)
- Parameters:
ctx-copy-trxName-
-
-
Method Detail
-
get
public static MProductCategoryAcct get(int M_Product_Category_ID, int C_AcctSchema_ID)
Get Category Acct- Parameters:
M_Product_Category_ID- categoryC_AcctSchema_ID- acct schema- Returns:
- category acct
-
get
public static MProductCategoryAcct get(int M_Product_Category_ID, int C_AcctSchema_ID, String trxName)
Get Category Acct- Parameters:
M_Product_Category_ID- categoryC_AcctSchema_ID- acct schematrxName- trx- Returns:
- category acct
-
get
public static MProductCategoryAcct get(Properties ctx, int M_Product_Category_ID, int C_AcctSchema_ID, String trxName)
Get Category Acct from cache (immutable)- Parameters:
ctx- contextM_Product_Category_ID- categoryC_AcctSchema_ID- acct schematrxName- trx- Returns:
- category acct
-
checkCosting
public void checkCosting()
Check Costing Setup
-
afterSave
protected boolean afterSave(boolean newRecord, boolean success)After Save
-
markImmutable
public MProductCategoryAcct markImmutable()
Description copied from interface:ImmutablePOSupportmark PO as immutable- Specified by:
markImmutablein interfaceImmutablePOSupport- Returns:
- PO
-
toString
public String toString()
String Representation- Overrides:
toStringin classX_M_Product_Category_Acct- Returns:
- info
-
-