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
public class MClientInfo extends X_AD_ClientInfo implements ImmutablePOSupport
Client Info Model- Version:
- $Id: MClientInfo.java,v 1.2 2006/07/30 00:58:37 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
- Serialized Form
-
-
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, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
-
Fields 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_Updated, COLUMNNAME_UpdatedBy, Model, Table_ID, Table_Name
-
-
Constructor Summary
Constructors Constructor Description MClientInfo(Properties ctx, int ignored, String trxName)Standard ConstructorMClientInfo(Properties ctx, ResultSet rs, String trxName)Load ConstructorMClientInfo(Properties ctx, MClientInfo copy)MClientInfo(Properties ctx, MClientInfo copy, String trxName)MClientInfo(MClientInfo copy)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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MClientInfoget()Get optionally cached clientstatic MClientInfoget(int AD_Client_ID)Get Client Info from cache (immutable)static MClientInfoget(Properties ctx)Get optionally cached clientstatic 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)intgetC_Currency_ID()Get Default Accounting Currencystatic MClientInfogetCopy(Properties ctx, int AD_Client_ID, String trxName)Get updateable copy of MClientInfo from cacheMAcctSchemagetMAcctSchema1()Get primary Acct SchemaMClientInfomarkImmutable()mark PO as immutablebooleansave()Overwrite Save-
Methods 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, 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, toString
-
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, 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, 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_AD_ClientInfo
getAD_Client_ID, getAD_Org_ID, getCreated, getCreatedBy, getUpdated, getUpdatedBy, isActive, setAD_Org_ID, setIsActive
-
-
-
-
Constructor Detail
-
MClientInfo
public MClientInfo(Properties ctx, int ignored, String trxName)
Standard Constructor- Parameters:
ctx- contextignored- ignoredtrxName- transaction
-
MClientInfo
public MClientInfo(Properties ctx, ResultSet rs, String trxName)
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
public MClientInfo(MClientInfo copy)
- Parameters:
copy-
-
MClientInfo
public MClientInfo(Properties ctx, MClientInfo copy)
- Parameters:
ctx-copy-
-
MClientInfo
public MClientInfo(Properties ctx, MClientInfo copy, String trxName)
- Parameters:
ctx-copy-trxName-
-
-
Method Detail
-
get
public static MClientInfo get(int AD_Client_ID)
Get Client Info from cache (immutable)- Parameters:
AD_Client_ID- id- Returns:
- Client Info
-
get
public static MClientInfo get(Properties ctx, int AD_Client_ID)
Get Client Info from cache (immutable)- Parameters:
ctx- contextAD_Client_ID- id- Returns:
- Client Info
-
get
public static MClientInfo get(Properties ctx, int AD_Client_ID, String trxName)
Get Client Info from cache (immutable)- Parameters:
ctx- contextAD_Client_ID- idtrxName- optional trx- Returns:
- Client Info
-
get
public static MClientInfo get()
Get optionally cached client- Returns:
- client
-
get
public static MClientInfo get(Properties ctx)
Get optionally cached client- Parameters:
ctx- context- Returns:
- client
-
getCopy
public static MClientInfo getCopy(Properties ctx, int AD_Client_ID, String trxName)
Get updateable copy of MClientInfo from cache- Parameters:
ctx-AD_Client_ID-trxName-- Returns:
- MClientInfo
-
getMAcctSchema1
public MAcctSchema 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
public MClientInfo markImmutable()
Description copied from interface:ImmutablePOSupportmark PO as immutable- Specified by:
markImmutablein interfaceImmutablePOSupport- Returns:
- PO
-
-