Package org.compiere.model
Class MAcctSchemaDefault
- java.lang.Object
-
- org.compiere.model.PO
-
- org.compiere.model.X_C_AcctSchema_Default
-
- org.compiere.model.MAcctSchemaDefault
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_C_AcctSchema_Default
,I_Persistent
,Evaluatee
,ImmutablePOSupport
public class MAcctSchemaDefault extends X_C_AcctSchema_Default implements ImmutablePOSupport
Default Accounts for MAcctSchema- Version:
- $Id: MAcctSchemaDefault.java,v 1.3 2006/07/30 00:58:37 jjanke Exp $
- Author:
- Jorg Janke, victor.perez@e-evolution.com, www.e-evolution.com
- RF [ 2214883 ] Remove SQL code and Replace for Query https://sourceforge.net/p/adempiere/feature-requests/557/
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static CLogger
s_log
Logger-
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_C_AcctSchema_Default
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_B_Asset_Acct, COLUMNNAME_B_InterestExp_Acct, COLUMNNAME_B_InterestRev_Acct, COLUMNNAME_B_InTransit_Acct, COLUMNNAME_B_PaymentSelect_Acct, COLUMNNAME_B_UnallocatedCash_Acct, COLUMNNAME_C_AcctSchema_Default_UU, COLUMNNAME_C_AcctSchema_ID, COLUMNNAME_C_Prepayment_Acct, COLUMNNAME_C_Receivable_Acct, COLUMNNAME_C_Receivable_Services_Acct, COLUMNNAME_CB_Asset_Acct, COLUMNNAME_CB_CashTransfer_Acct, COLUMNNAME_CB_Differences_Acct, COLUMNNAME_CB_Expense_Acct, COLUMNNAME_CB_Receipt_Acct, COLUMNNAME_Ch_Expense_Acct, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_IsActive, COLUMNNAME_NotInvoicedReceipts_Acct, 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_PayDiscount_Exp_Acct, COLUMNNAME_PayDiscount_Rev_Acct, COLUMNNAME_PJ_Asset_Acct, COLUMNNAME_PJ_WIP_Acct, COLUMNNAME_Processing, COLUMNNAME_RealizedGain_Acct, COLUMNNAME_RealizedLoss_Acct, COLUMNNAME_T_Credit_Acct, COLUMNNAME_T_Due_Acct, COLUMNNAME_T_Expense_Acct, COLUMNNAME_UnEarnedRevenue_Acct, COLUMNNAME_UnrealizedGain_Acct, COLUMNNAME_UnrealizedLoss_Acct, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, COLUMNNAME_V_Liability_Acct, COLUMNNAME_V_Liability_Services_Acct, COLUMNNAME_V_Prepayment_Acct, COLUMNNAME_W_Differences_Acct, COLUMNNAME_WriteOff_Acct, Model, Table_ID, Table_Name
-
-
Constructor Summary
Constructors Constructor Description MAcctSchemaDefault(Properties ctx, int C_AcctSchema_ID, String trxName)
Load ConstructorMAcctSchemaDefault(Properties ctx, ResultSet rs, String trxName)
Load ConstructorMAcctSchemaDefault(Properties ctx, MAcctSchemaDefault copy)
MAcctSchemaDefault(Properties ctx, MAcctSchemaDefault copy, String trxName)
MAcctSchemaDefault(MAcctSchemaDefault copy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
beforeSave(boolean newRecord)
Before Savestatic MAcctSchemaDefault
get(Properties ctx, int C_AcctSchema_ID)
Get Accounting Schema Default InfoArrayList<KeyNamePair>
getAcctInfo()
Get Acct Info listMAcctSchemaDefault
markImmutable()
mark PO as immutableboolean
setValue(String columnName, Integer value)
Set Value (don't use)-
Methods inherited from class org.compiere.model.X_C_AcctSchema_Default
get_AccessLevel, getB_Asset_A, getB_Asset_Acct, getB_InterestExp_A, getB_InterestExp_Acct, getB_InterestRev_A, getB_InterestRev_Acct, getB_InTransit_A, getB_InTransit_Acct, getB_PaymentSelect_A, getB_PaymentSelect_Acct, getB_UnallocatedCash_A, getB_UnallocatedCash_Acct, getC_AcctSchema, getC_AcctSchema_Default_UU, getC_AcctSchema_ID, getC_Prepayment_A, getC_Prepayment_Acct, getC_Receivable_A, getC_Receivable_Acct, getC_Receivable_Services_A, getC_Receivable_Services_Acct, getCB_Asset_A, getCB_Asset_Acct, getCB_CashTransfer_A, getCB_CashTransfer_Acct, getCB_Differences_A, getCB_Differences_Acct, getCB_Expense_A, getCB_Expense_Acct, getCB_Receipt_A, getCB_Receipt_Acct, getCh_Expense_A, getCh_Expense_Acct, getKeyNamePair, getNotInvoicedReceipts_A, getNotInvoicedReceipts_Acct, 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, getPayDiscount_Exp_A, getPayDiscount_Exp_Acct, getPayDiscount_Rev_A, getPayDiscount_Rev_Acct, getPJ_Asset_A, getPJ_Asset_Acct, getPJ_WIP_A, getPJ_WIP_Acct, getRealizedGain_A, getRealizedGain_Acct, getRealizedLoss_A, getRealizedLoss_Acct, getT_Credit_A, getT_Credit_Acct, getT_Due_A, getT_Due_Acct, getT_Expense_A, getT_Expense_Acct, getUnEarnedRevenue_A, getUnEarnedRevenue_Acct, getUnrealizedGain_A, getUnrealizedGain_Acct, getUnrealizedLoss_A, getUnrealizedLoss_Acct, getV_Liability_A, getV_Liability_Acct, getV_Liability_Services_A, getV_Liability_Services_Acct, getV_Prepayment_A, getV_Prepayment_Acct, getW_Differences_A, getW_Differences_Acct, getWriteOff_A, getWriteOff_Acct, initPO, isProcessing, setB_Asset_Acct, setB_InterestExp_Acct, setB_InterestRev_Acct, setB_InTransit_Acct, setB_PaymentSelect_Acct, setB_UnallocatedCash_Acct, setC_AcctSchema_Default_UU, setC_AcctSchema_ID, setC_Prepayment_Acct, setC_Receivable_Acct, setC_Receivable_Services_Acct, setCB_Asset_Acct, setCB_CashTransfer_Acct, setCB_Differences_Acct, setCB_Expense_Acct, setCB_Receipt_Acct, setCh_Expense_Acct, setNotInvoicedReceipts_Acct, 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, setPayDiscount_Exp_Acct, setPayDiscount_Rev_Acct, setPJ_Asset_Acct, setPJ_WIP_Acct, setProcessing, setRealizedGain_Acct, setRealizedLoss_Acct, setT_Credit_Acct, setT_Due_Acct, setT_Expense_Acct, setUnEarnedRevenue_Acct, setUnrealizedGain_Acct, setUnrealizedLoss_Acct, setV_Liability_Acct, setV_Liability_Services_Acct, setV_Prepayment_Acct, setW_Differences_Acct, setWriteOff_Acct, toString
-
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, 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_C_AcctSchema_Default
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
-
-
-
-
Field Detail
-
s_log
protected static CLogger s_log
Logger
-
-
Constructor Detail
-
MAcctSchemaDefault
public MAcctSchemaDefault(Properties ctx, int C_AcctSchema_ID, String trxName)
Load Constructor- Parameters:
ctx
- contextC_AcctSchema_ID
- parenttrxName
- transaction
-
MAcctSchemaDefault
public MAcctSchemaDefault(Properties ctx, ResultSet rs, String trxName)
Load Constructor- Parameters:
ctx
- contextrs
- result settrxName
- transaction
-
MAcctSchemaDefault
public MAcctSchemaDefault(MAcctSchemaDefault copy)
- Parameters:
copy
-
-
MAcctSchemaDefault
public MAcctSchemaDefault(Properties ctx, MAcctSchemaDefault copy)
- Parameters:
ctx
-copy
-
-
MAcctSchemaDefault
public MAcctSchemaDefault(Properties ctx, MAcctSchemaDefault copy, String trxName)
- Parameters:
ctx
-copy
-trxName
-
-
-
Method Detail
-
get
public static MAcctSchemaDefault get(Properties ctx, int C_AcctSchema_ID)
Get Accounting Schema Default Info- Parameters:
ctx
- contextC_AcctSchema_ID
- id- Returns:
- defaults
-
getAcctInfo
public ArrayList<KeyNamePair> getAcctInfo()
Get Acct Info list- Returns:
- list
-
setValue
public boolean setValue(String columnName, Integer value)
Set Value (don't use)- Parameters:
columnName
- column namevalue
- value- Returns:
- true if value set
-
beforeSave
protected boolean beforeSave(boolean newRecord)
Before Save- Overrides:
beforeSave
in classPO
- Parameters:
newRecord
- new- Returns:
- true
-
markImmutable
public MAcctSchemaDefault markImmutable()
Description copied from interface:ImmutablePOSupport
mark PO as immutable- Specified by:
markImmutable
in interfaceImmutablePOSupport
- Returns:
- PO
-
-