Package org.compiere.model
Class MClientInfo
java.lang.Object
org.compiere.model.PO
org.compiere.model.X_AD_ClientInfo
org.compiere.model.MClientInfo
- All Implemented Interfaces:
Serializable,Cloneable,Comparator<Object>,I_AD_ClientInfo,I_Persistent,Evaluatee,ImmutablePOSupport
Client Info Model
- Version:
- $Id: MClientInfo.java,v 1.2 2006/07/30 00:58:37 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
-
Field Summary
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_IDFields inherited from interface org.compiere.model.I_AD_ClientInfo
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_ClientInfo_UU, COLUMNNAME_AD_Org_ID, COLUMNNAME_AD_StorageProvider_ID, COLUMNNAME_AD_Tree_Activity_ID, COLUMNNAME_AD_Tree_BPartner_ID, COLUMNNAME_AD_Tree_Campaign_ID, COLUMNNAME_AD_Tree_Menu_ID, COLUMNNAME_AD_Tree_Org_ID, COLUMNNAME_AD_Tree_Product_ID, COLUMNNAME_AD_Tree_Project_ID, COLUMNNAME_AD_Tree_SalesRegion_ID, COLUMNNAME_C_AcctSchema1_ID, COLUMNNAME_C_BPartnerCashTrx_ID, COLUMNNAME_C_Calendar_ID, COLUMNNAME_C_ChargeFreight_ID, COLUMNNAME_C_UOM_Length_ID, COLUMNNAME_C_UOM_Time_ID, COLUMNNAME_C_UOM_Volume_ID, COLUMNNAME_C_UOM_Weight_ID, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_FY_StartDate, COLUMNNAME_IsActive, COLUMNNAME_IsConfirmOnDocClose, COLUMNNAME_IsConfirmOnDocVoid, COLUMNNAME_IsDiscountLineAmt, COLUMNNAME_KeepLogDays, COLUMNNAME_Logo_ID, COLUMNNAME_LogoReport_ID, COLUMNNAME_LogoWeb_ID, COLUMNNAME_M_ProductFreight_ID, COLUMNNAME_StorageArchive_ID, COLUMNNAME_StorageImage_ID, COLUMNNAME_TimeZone, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, Model, Table_ID, Table_Name -
Constructor Summary
ConstructorsConstructorDescriptionMClientInfo(Properties ctx, int ignored, String trxName) Standard ConstructorMClientInfo(Properties ctx, String AD_ClientInfo_UU, String trxName) UUID based ConstructorMClientInfo(Properties ctx, ResultSet rs, String trxName) Load ConstructorMClientInfo(Properties ctx, MClientInfo copy) Copy constructorMClientInfo(Properties ctx, MClientInfo copy, String trxName) Copy constructorMClientInfo(MClientInfo copy) Copy constructorMClientInfo(MClient client, int AD_Tree_Org_ID, int AD_Tree_BPartner_ID, int AD_Tree_Project_ID, int AD_Tree_SalesRegion_ID, int AD_Tree_Product_ID, int AD_Tree_Campaign_ID, int AD_Tree_Activity_ID, String trxName) Parent Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic MClientInfoget()Get optionally cached client for current contextstatic MClientInfoget(int AD_Client_ID) Get Client Info from cache (immutable)static MClientInfoget(Properties ctx) Get optionally cached client for context (ctx)static MClientInfoget(Properties ctx, int AD_Client_ID) Get Client Info from cache (immutable)static MClientInfoget(Properties ctx, int AD_Client_ID, String trxName) Get Client Info from cache (immutable)intGet Default Accounting Currencystatic MClientInfogetCopy(Properties ctx, int AD_Client_ID, String trxName) Get updateable copy of MClientInfo from cacheGet primary Acct Schemamark PO as immutablebooleansave()Overwrite SaveMethods inherited from class org.compiere.model.X_AD_ClientInfo
get_AccessLevel, getAD_ClientInfo_UU, getAD_StorageProvider, getAD_StorageProvider_ID, getAD_Tree_Activity, getAD_Tree_Activity_ID, getAD_Tree_BPartner, getAD_Tree_BPartner_ID, getAD_Tree_Campaign, getAD_Tree_Campaign_ID, getAD_Tree_Menu, getAD_Tree_Menu_ID, getAD_Tree_Org, getAD_Tree_Org_ID, getAD_Tree_Product, getAD_Tree_Product_ID, getAD_Tree_Project, getAD_Tree_Project_ID, getAD_Tree_SalesRegion, getAD_Tree_SalesRegion_ID, getC_AcctSchema1, getC_AcctSchema1_ID, getC_BPartnerCashTrx, getC_BPartnerCashTrx_ID, getC_Calendar, getC_Calendar_ID, getC_ChargeFreight, getC_ChargeFreight_ID, getC_UOM_Length, getC_UOM_Length_ID, getC_UOM_Time, getC_UOM_Time_ID, getC_UOM_Volume, getC_UOM_Volume_ID, getC_UOM_Weight, getC_UOM_Weight_ID, getFY_StartDate, getKeepLogDays, getLogo_ID, getLogoReport_ID, getLogoWeb_ID, getM_ProductFreight, getM_ProductFreight_ID, getStorageArchive, getStorageArchive_ID, getStorageImage, getStorageImage_ID, getTimeZone, initPO, isConfirmOnDocClose, isConfirmOnDocVoid, isDiscountLineAmt, setAD_ClientInfo_UU, setAD_StorageProvider_ID, setAD_Tree_Activity_ID, setAD_Tree_BPartner_ID, setAD_Tree_Campaign_ID, setAD_Tree_Menu_ID, setAD_Tree_Org_ID, setAD_Tree_Product_ID, setAD_Tree_Project_ID, setAD_Tree_SalesRegion_ID, setC_AcctSchema1_ID, setC_BPartnerCashTrx_ID, setC_Calendar_ID, setC_ChargeFreight_ID, setC_UOM_Length_ID, setC_UOM_Time_ID, setC_UOM_Volume_ID, setC_UOM_Weight_ID, setFY_StartDate, setIsConfirmOnDocClose, setIsConfirmOnDocVoid, setIsDiscountLineAmt, setKeepLogDays, setLogo_ID, setLogoReport_ID, setLogoWeb_ID, setM_ProductFreight_ID, setStorageArchive_ID, setStorageImage_ID, setTimeZone, toStringMethods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, 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_TableAttribute, get_TableAttributeAsBoolean, get_TableAttributeAsInt, get_TableAttributes, 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, 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, validForeignKeysExMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface org.compiere.model.I_AD_ClientInfo
getAD_Client_ID, getAD_Org_ID, getCreated, getCreatedBy, getUpdated, getUpdatedBy, isActive, setAD_Org_ID, setIsActive
-
Constructor Details
-
MClientInfo
UUID based Constructor- Parameters:
ctx- ContextAD_ClientInfo_UU- UUID keytrxName- Transaction
-
MClientInfo
Standard Constructor- Parameters:
ctx- contextignored- ignoredtrxName- transaction
-
MClientInfo
Load Constructor- Parameters:
ctx- contextrs- result settrxName- transaction
-
MClientInfo
public MClientInfo(MClient client, int AD_Tree_Org_ID, int AD_Tree_BPartner_ID, int AD_Tree_Project_ID, int AD_Tree_SalesRegion_ID, int AD_Tree_Product_ID, int AD_Tree_Campaign_ID, int AD_Tree_Activity_ID, String trxName) Parent Constructor- Parameters:
client- clientAD_Tree_Org_ID- org treeAD_Tree_BPartner_ID- bp treeAD_Tree_Project_ID- project treeAD_Tree_SalesRegion_ID- sr treeAD_Tree_Product_ID- product treeAD_Tree_Campaign_ID- campaign treeAD_Tree_Activity_ID- activity treetrxName- transaction
-
MClientInfo
Copy constructor- Parameters:
copy-
-
MClientInfo
Copy constructor- Parameters:
ctx-copy-
-
MClientInfo
Copy constructor- Parameters:
ctx-copy-trxName-
-
-
Method Details
-
get
Get Client Info from cache (immutable)- Parameters:
AD_Client_ID- id- Returns:
- Client Info
-
get
Get Client Info from cache (immutable)- Parameters:
ctx- contextAD_Client_ID- id- Returns:
- Client Info
-
get
Get Client Info from cache (immutable)- Parameters:
ctx- contextAD_Client_ID- idtrxName- optional trx- Returns:
- Client Info
-
get
Get optionally cached client for current context- Returns:
- client
-
get
Get optionally cached client for context (ctx)- Parameters:
ctx- context- Returns:
- client
-
getCopy
Get updateable copy of MClientInfo from cache- Parameters:
ctx-AD_Client_ID-trxName-- Returns:
- MClientInfo
-
getMAcctSchema1
Get primary Acct Schema- Returns:
- acct schema
-
getC_Currency_ID
public int getC_Currency_ID()Get Default Accounting Currency- Returns:
- currency or 0
-
save
public boolean save()Overwrite Save- Specified by:
savein interfaceI_Persistent- Overrides:
savein classPO- Returns:
- true if saved
-
markImmutable
Description copied from interface:ImmutablePOSupportmark PO as immutable- Specified by:
markImmutablein interfaceImmutablePOSupport- Returns:
- PO
-