Package org.compiere.model
Class X_C_Opportunity
java.lang.Object
org.compiere.model.PO
org.compiere.model.X_C_Opportunity
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_C_Opportunity
,I_Persistent
,Evaluatee
- Direct Known Subclasses:
MOpportunity
Generated Model for C_Opportunity
- Version:
- Release 11 - $Id$
- Author:
- iDempiere (generated)
- 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_ID
Fields inherited from interface org.compiere.model.I_C_Opportunity
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_AD_User_ID, COLUMNNAME_C_BPartner_ID, COLUMNNAME_C_Campaign_ID, COLUMNNAME_C_Currency_ID, COLUMNNAME_C_Opportunity_ID, COLUMNNAME_C_Opportunity_UU, COLUMNNAME_C_Order_ID, COLUMNNAME_C_SalesStage_ID, COLUMNNAME_CloseDate, COLUMNNAME_Comments, COLUMNNAME_Cost, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_Description, COLUMNNAME_DocumentNo, COLUMNNAME_ExpectedCloseDate, COLUMNNAME_IsActive, COLUMNNAME_OpportunityAmt, COLUMNNAME_Probability, COLUMNNAME_SalesRep_ID, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, COLUMNNAME_WeightedAmt, Model, Table_ID, Table_Name
-
Constructor Summary
ConstructorDescriptionX_C_Opportunity
(Properties ctx, int C_Opportunity_ID, String trxName) Standard ConstructorX_C_Opportunity
(Properties ctx, int C_Opportunity_ID, String trxName, String... virtualColumns) Standard ConstructorX_C_Opportunity
(Properties ctx, String C_Opportunity_UU, String trxName) Standard ConstructorX_C_Opportunity
(Properties ctx, String C_Opportunity_UU, String trxName, String... virtualColumns) Standard ConstructorX_C_Opportunity
(Properties ctx, ResultSet rs, String trxName) Load Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected int
AccessLevelint
Get User/Contact.int
Get Business Partner.int
Get Campaign.int
Get Currency.int
Get Sales Opportunity.Get C_Opportunity_UU.int
Get Order.int
Get Sales Stage.Get Close Date.Get Comments.getCost()
Get Cost.Get Description.Get Document No.Get Expected Close Date.Get Record ID/ColumnNameGet Opportunity Amount.Get Probability.int
Get Sales Representative.Get Weighted Amount.protected POInfo
initPO
(Properties ctx) Load Meta Datavoid
setAD_User_ID
(int AD_User_ID) Set User/Contact.void
setC_BPartner_ID
(int C_BPartner_ID) Set Business Partner.void
setC_Campaign_ID
(int C_Campaign_ID) Set Campaign.void
setC_Currency_ID
(int C_Currency_ID) Set Currency.void
setC_Opportunity_ID
(int C_Opportunity_ID) Set Sales Opportunity.void
setC_Opportunity_UU
(String C_Opportunity_UU) Set C_Opportunity_UU.void
setC_Order_ID
(int C_Order_ID) Set Order.void
setC_SalesStage_ID
(int C_SalesStage_ID) Set Sales Stage.void
setCloseDate
(Timestamp CloseDate) Set Close Date.void
setComments
(String Comments) Set Comments.void
setCost
(BigDecimal Cost) Set Cost.void
setDescription
(String Description) Set Description.void
setDocumentNo
(String DocumentNo) Set Document No.void
setExpectedCloseDate
(Timestamp ExpectedCloseDate) Set Expected Close Date.void
setOpportunityAmt
(BigDecimal OpportunityAmt) Set Opportunity Amount.void
setProbability
(BigDecimal Probability) Set Probability.void
setSalesRep_ID
(int SalesRep_ID) Set Sales Representative.void
setWeightedAmt
(BigDecimal WeightedAmt) Set Weighted Amount.toString()
String representationMethods 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_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_C_Opportunity
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
-
X_C_Opportunity
Standard Constructor -
X_C_Opportunity
public X_C_Opportunity(Properties ctx, int C_Opportunity_ID, String trxName, String... virtualColumns) Standard Constructor -
X_C_Opportunity
Standard Constructor -
X_C_Opportunity
public X_C_Opportunity(Properties ctx, String C_Opportunity_UU, String trxName, String... virtualColumns) Standard Constructor -
X_C_Opportunity
Load Constructor
-
-
Method Details
-
get_AccessLevel
protected int get_AccessLevel()AccessLevel- Specified by:
get_AccessLevel
in classPO
- Returns:
- 3 - Client - Org
-
initPO
Load Meta Data -
toString
Description copied from class:PO
String representation -
getAD_User
- Specified by:
getAD_User
in interfaceI_C_Opportunity
- Throws:
RuntimeException
-
setAD_User_ID
public void setAD_User_ID(int AD_User_ID) Set User/Contact.- Specified by:
setAD_User_ID
in interfaceI_C_Opportunity
- Parameters:
AD_User_ID
- User within the system - Internal or Business Partner Contact
-
getAD_User_ID
public int getAD_User_ID()Get User/Contact.- Specified by:
getAD_User_ID
in interfaceI_C_Opportunity
- Returns:
- User within the system - Internal or Business Partner Contact
-
getC_BPartner
- Specified by:
getC_BPartner
in interfaceI_C_Opportunity
- Throws:
RuntimeException
-
setC_BPartner_ID
public void setC_BPartner_ID(int C_BPartner_ID) Set Business Partner.- Specified by:
setC_BPartner_ID
in interfaceI_C_Opportunity
- Parameters:
C_BPartner_ID
- Identifies a Business Partner
-
getC_BPartner_ID
public int getC_BPartner_ID()Get Business Partner.- Specified by:
getC_BPartner_ID
in interfaceI_C_Opportunity
- Returns:
- Identifies a Business Partner
-
getC_Campaign
- Specified by:
getC_Campaign
in interfaceI_C_Opportunity
- Throws:
RuntimeException
-
setC_Campaign_ID
public void setC_Campaign_ID(int C_Campaign_ID) Set Campaign.- Specified by:
setC_Campaign_ID
in interfaceI_C_Opportunity
- Parameters:
C_Campaign_ID
- Marketing Campaign
-
getC_Campaign_ID
public int getC_Campaign_ID()Get Campaign.- Specified by:
getC_Campaign_ID
in interfaceI_C_Opportunity
- Returns:
- Marketing Campaign
-
getC_Currency
- Specified by:
getC_Currency
in interfaceI_C_Opportunity
- Throws:
RuntimeException
-
setC_Currency_ID
public void setC_Currency_ID(int C_Currency_ID) Set Currency.- Specified by:
setC_Currency_ID
in interfaceI_C_Opportunity
- Parameters:
C_Currency_ID
- The Currency for this record
-
getC_Currency_ID
public int getC_Currency_ID()Get Currency.- Specified by:
getC_Currency_ID
in interfaceI_C_Opportunity
- Returns:
- The Currency for this record
-
setCloseDate
Set Close Date.- Specified by:
setCloseDate
in interfaceI_C_Opportunity
- Parameters:
CloseDate
- Close Date
-
getCloseDate
Get Close Date.- Specified by:
getCloseDate
in interfaceI_C_Opportunity
- Returns:
- Close Date
-
setComments
Set Comments.- Specified by:
setComments
in interfaceI_C_Opportunity
- Parameters:
Comments
- Comments or additional information
-
getComments
Get Comments.- Specified by:
getComments
in interfaceI_C_Opportunity
- Returns:
- Comments or additional information
-
setC_Opportunity_ID
public void setC_Opportunity_ID(int C_Opportunity_ID) Set Sales Opportunity.- Specified by:
setC_Opportunity_ID
in interfaceI_C_Opportunity
- Parameters:
C_Opportunity_ID
- Sales Opportunity
-
getC_Opportunity_ID
public int getC_Opportunity_ID()Get Sales Opportunity.- Specified by:
getC_Opportunity_ID
in interfaceI_C_Opportunity
- Returns:
- Sales Opportunity
-
setC_Opportunity_UU
Set C_Opportunity_UU.- Specified by:
setC_Opportunity_UU
in interfaceI_C_Opportunity
- Parameters:
C_Opportunity_UU
- C_Opportunity_UU
-
getC_Opportunity_UU
Get C_Opportunity_UU.- Specified by:
getC_Opportunity_UU
in interfaceI_C_Opportunity
- Returns:
- C_Opportunity_UU
-
getC_Order
- Specified by:
getC_Order
in interfaceI_C_Opportunity
- Throws:
RuntimeException
-
setC_Order_ID
public void setC_Order_ID(int C_Order_ID) Set Order.- Specified by:
setC_Order_ID
in interfaceI_C_Opportunity
- Parameters:
C_Order_ID
- Order
-
getC_Order_ID
public int getC_Order_ID()Get Order.- Specified by:
getC_Order_ID
in interfaceI_C_Opportunity
- Returns:
- Order
-
setCost
Set Cost.- Specified by:
setCost
in interfaceI_C_Opportunity
- Parameters:
Cost
- Cost information
-
getCost
Get Cost.- Specified by:
getCost
in interfaceI_C_Opportunity
- Returns:
- Cost information
-
getC_SalesStage
- Specified by:
getC_SalesStage
in interfaceI_C_Opportunity
- Throws:
RuntimeException
-
setC_SalesStage_ID
public void setC_SalesStage_ID(int C_SalesStage_ID) Set Sales Stage.- Specified by:
setC_SalesStage_ID
in interfaceI_C_Opportunity
- Parameters:
C_SalesStage_ID
- Stages of the sales process
-
getC_SalesStage_ID
public int getC_SalesStage_ID()Get Sales Stage.- Specified by:
getC_SalesStage_ID
in interfaceI_C_Opportunity
- Returns:
- Stages of the sales process
-
setDescription
Set Description.- Specified by:
setDescription
in interfaceI_C_Opportunity
- Parameters:
Description
- Optional short description of the record
-
getDescription
Get Description.- Specified by:
getDescription
in interfaceI_C_Opportunity
- Returns:
- Optional short description of the record
-
setDocumentNo
Set Document No.- Specified by:
setDocumentNo
in interfaceI_C_Opportunity
- Parameters:
DocumentNo
- Document sequence number of the document
-
getDocumentNo
Get Document No.- Specified by:
getDocumentNo
in interfaceI_C_Opportunity
- Returns:
- Document sequence number of the document
-
getKeyNamePair
Get Record ID/ColumnName- Returns:
- ID/ColumnName pair
-
setExpectedCloseDate
Set Expected Close Date.- Specified by:
setExpectedCloseDate
in interfaceI_C_Opportunity
- Parameters:
ExpectedCloseDate
- Expected Close Date
-
getExpectedCloseDate
Get Expected Close Date.- Specified by:
getExpectedCloseDate
in interfaceI_C_Opportunity
- Returns:
- Expected Close Date
-
setOpportunityAmt
Set Opportunity Amount.- Specified by:
setOpportunityAmt
in interfaceI_C_Opportunity
- Parameters:
OpportunityAmt
- The estimated value of this opportunity.
-
getOpportunityAmt
Get Opportunity Amount.- Specified by:
getOpportunityAmt
in interfaceI_C_Opportunity
- Returns:
- The estimated value of this opportunity.
-
setProbability
Set Probability.- Specified by:
setProbability
in interfaceI_C_Opportunity
- Parameters:
Probability
- Probability
-
getProbability
Get Probability.- Specified by:
getProbability
in interfaceI_C_Opportunity
- Returns:
- Probability
-
getSalesRep
- Specified by:
getSalesRep
in interfaceI_C_Opportunity
- Throws:
RuntimeException
-
setSalesRep_ID
public void setSalesRep_ID(int SalesRep_ID) Set Sales Representative.- Specified by:
setSalesRep_ID
in interfaceI_C_Opportunity
- Parameters:
SalesRep_ID
- Sales Representative or Company Agent
-
getSalesRep_ID
public int getSalesRep_ID()Get Sales Representative.- Specified by:
getSalesRep_ID
in interfaceI_C_Opportunity
- Returns:
- Sales Representative or Company Agent
-
setWeightedAmt
Set Weighted Amount.- Specified by:
setWeightedAmt
in interfaceI_C_Opportunity
- Parameters:
WeightedAmt
- The amount adjusted by the probability.
-
getWeightedAmt
Get Weighted Amount.- Specified by:
getWeightedAmt
in interfaceI_C_Opportunity
- Returns:
- The amount adjusted by the probability.
-