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
Product Category Account Model
- Version:
- $Id: MProductCategoryAcct.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
-
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, UUID_NEW_RECORD, 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
ConstructorDescriptionMProductCategoryAcct
(Properties ctx, int ignored, String trxName) Standard ConstructorMProductCategoryAcct
(Properties ctx, String M_Product_Category_Acct_UU, String trxName) UUID based ConstructorMProductCategoryAcct
(Properties ctx, ResultSet rs, String trxName) Load ConstructorMProductCategoryAcct
(Properties ctx, MProductCategoryAcct copy) Copy constructorMProductCategoryAcct
(Properties ctx, MProductCategoryAcct copy, String trxName) Copy constructorCopy constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
afterSave
(boolean newRecord, boolean success) Called after Save for Post-Save Operation.
Default implementation is nop, to be implemented in sub-classes that needed it.protected boolean
beforeSave
(boolean newRecord) Called before Save for Pre-Save Operation.
Default implementation is nop, to be implemented in sub-classes that needed it.void
Create cost element for costing methodstatic MProductCategoryAcct
get
(int M_Product_Category_ID, int C_AcctSchema_ID) Get Category Acctstatic MProductCategoryAcct
Get Category Acctstatic MProductCategoryAcct
get
(Properties ctx, int M_Product_Category_ID, int C_AcctSchema_ID, String trxName) Get Category Acct from cache (immutable)mark PO as immutabletoString()
String RepresentationMethods 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, buildInsertSQL, 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_UUID, get_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, 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, loadByUU, loadComplete, loadDefaults, loadPO, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, saveCrossTenantSafe, saveCrossTenantSafeEx, saveCrossTenantSafeEx, 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, toInsertSQL, 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 Details
-
MProductCategoryAcct
UUID based Constructor- Parameters:
ctx
- ContextM_Product_Category_Acct_UU
- UUID keytrxName
- Transaction
-
MProductCategoryAcct
Standard Constructor- Parameters:
ctx
- contextignored
- ignoredtrxName
-
-
MProductCategoryAcct
Load Constructor- Parameters:
ctx
- contextrs
- result settrxName
- trx
-
MProductCategoryAcct
Copy constructor- Parameters:
copy
-
-
MProductCategoryAcct
Copy constructor- Parameters:
ctx
-copy
-
-
MProductCategoryAcct
Copy constructor- Parameters:
ctx
-copy
-trxName
-
-
-
Method Details
-
get
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()Create cost element for costing method -
afterSave
protected boolean afterSave(boolean newRecord, boolean success) Description copied from class:PO
Called after Save for Post-Save Operation.
Default implementation is nop, to be implemented in sub-classes that needed it. -
markImmutable
Description copied from interface:ImmutablePOSupport
mark PO as immutable- Specified by:
markImmutable
in interfaceImmutablePOSupport
- Returns:
- PO
-
toString
String Representation- Overrides:
toString
in classX_M_Product_Category_Acct
- Returns:
- info
-
beforeSave
protected boolean beforeSave(boolean newRecord) Description copied from class:PO
Called before Save for Pre-Save Operation.
Default implementation is nop, to be implemented in sub-classes that needed it.- Overrides:
beforeSave
in classPO
- Parameters:
newRecord
- true if it is a new record- Returns:
- true if record can be saved
-