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
public class X_C_Opportunity extends PO implements I_C_Opportunity, I_Persistent
Generated Model for C_Opportunity- Version:
- Release 9 - $Id$
- Author:
- iDempiere (generated)
- 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_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
Constructors Constructor Description X_C_Opportunity(Properties ctx, int C_Opportunity_ID, String trxName)
Standard ConstructorX_C_Opportunity(Properties ctx, ResultSet rs, String trxName)
Load Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
get_AccessLevel()
AccessLevelI_AD_User
getAD_User()
int
getAD_User_ID()
Get User/Contact.I_C_BPartner
getC_BPartner()
int
getC_BPartner_ID()
Get Business Partner.I_C_Campaign
getC_Campaign()
int
getC_Campaign_ID()
Get Campaign.I_C_Currency
getC_Currency()
int
getC_Currency_ID()
Get Currency.int
getC_Opportunity_ID()
Get Sales Opportunity.String
getC_Opportunity_UU()
Get C_Opportunity_UU.I_C_Order
getC_Order()
int
getC_Order_ID()
Get Order.I_C_SalesStage
getC_SalesStage()
int
getC_SalesStage_ID()
Get Sales Stage.Timestamp
getCloseDate()
Get Close Date.String
getComments()
Get Comments.BigDecimal
getCost()
Get Cost.String
getDescription()
Get Description.String
getDocumentNo()
Get Document No.Timestamp
getExpectedCloseDate()
Get Expected Close Date.KeyNamePair
getKeyNamePair()
Get Record ID/ColumnNameBigDecimal
getOpportunityAmt()
Get Opportunity Amount.BigDecimal
getProbability()
Get Probability.I_AD_User
getSalesRep()
int
getSalesRep_ID()
Get Sales Representative.BigDecimal
getWeightedAmt()
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.String
toString()
String representation-
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, 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_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 Detail
-
X_C_Opportunity
public X_C_Opportunity(Properties ctx, int C_Opportunity_ID, String trxName)
Standard Constructor
-
X_C_Opportunity
public X_C_Opportunity(Properties ctx, ResultSet rs, String trxName)
Load Constructor
-
-
Method Detail
-
get_AccessLevel
protected int get_AccessLevel()
AccessLevel- Specified by:
get_AccessLevel
in classPO
- Returns:
- 3 - Client - Org
-
initPO
protected POInfo initPO(Properties ctx)
Load Meta Data
-
getAD_User
public I_AD_User getAD_User() throws RuntimeException
- 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
public I_C_BPartner getC_BPartner() throws RuntimeException
- 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
public I_C_Campaign getC_Campaign() throws RuntimeException
- 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
public I_C_Currency getC_Currency() throws RuntimeException
- 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
public void setCloseDate(Timestamp CloseDate)
Set Close Date.- Specified by:
setCloseDate
in interfaceI_C_Opportunity
- Parameters:
CloseDate
- Close Date
-
getCloseDate
public Timestamp getCloseDate()
Get Close Date.- Specified by:
getCloseDate
in interfaceI_C_Opportunity
- Returns:
- Close Date
-
setComments
public void setComments(String Comments)
Set Comments.- Specified by:
setComments
in interfaceI_C_Opportunity
- Parameters:
Comments
- Comments or additional information
-
getComments
public String 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
public void setC_Opportunity_UU(String C_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
public String getC_Opportunity_UU()
Get C_Opportunity_UU.- Specified by:
getC_Opportunity_UU
in interfaceI_C_Opportunity
- Returns:
- C_Opportunity_UU
-
getC_Order
public I_C_Order getC_Order() throws RuntimeException
- 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
public void setCost(BigDecimal Cost)
Set Cost.- Specified by:
setCost
in interfaceI_C_Opportunity
- Parameters:
Cost
- Cost information
-
getCost
public BigDecimal getCost()
Get Cost.- Specified by:
getCost
in interfaceI_C_Opportunity
- Returns:
- Cost information
-
getC_SalesStage
public I_C_SalesStage getC_SalesStage() throws RuntimeException
- 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
public void setDescription(String Description)
Set Description.- Specified by:
setDescription
in interfaceI_C_Opportunity
- Parameters:
Description
- Optional short description of the record
-
getDescription
public String getDescription()
Get Description.- Specified by:
getDescription
in interfaceI_C_Opportunity
- Returns:
- Optional short description of the record
-
setDocumentNo
public void setDocumentNo(String DocumentNo)
Set Document No.- Specified by:
setDocumentNo
in interfaceI_C_Opportunity
- Parameters:
DocumentNo
- Document sequence number of the document
-
getDocumentNo
public String getDocumentNo()
Get Document No.- Specified by:
getDocumentNo
in interfaceI_C_Opportunity
- Returns:
- Document sequence number of the document
-
getKeyNamePair
public KeyNamePair getKeyNamePair()
Get Record ID/ColumnName- Returns:
- ID/ColumnName pair
-
setExpectedCloseDate
public void setExpectedCloseDate(Timestamp ExpectedCloseDate)
Set Expected Close Date.- Specified by:
setExpectedCloseDate
in interfaceI_C_Opportunity
- Parameters:
ExpectedCloseDate
- Expected Close Date
-
getExpectedCloseDate
public Timestamp getExpectedCloseDate()
Get Expected Close Date.- Specified by:
getExpectedCloseDate
in interfaceI_C_Opportunity
- Returns:
- Expected Close Date
-
setOpportunityAmt
public void setOpportunityAmt(BigDecimal OpportunityAmt)
Set Opportunity Amount.- Specified by:
setOpportunityAmt
in interfaceI_C_Opportunity
- Parameters:
OpportunityAmt
- The estimated value of this opportunity.
-
getOpportunityAmt
public BigDecimal getOpportunityAmt()
Get Opportunity Amount.- Specified by:
getOpportunityAmt
in interfaceI_C_Opportunity
- Returns:
- The estimated value of this opportunity.
-
setProbability
public void setProbability(BigDecimal Probability)
Set Probability.- Specified by:
setProbability
in interfaceI_C_Opportunity
- Parameters:
Probability
- Probability
-
getProbability
public BigDecimal getProbability()
Get Probability.- Specified by:
getProbability
in interfaceI_C_Opportunity
- Returns:
- Probability
-
getSalesRep
public I_AD_User getSalesRep() throws RuntimeException
- 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
public void setWeightedAmt(BigDecimal WeightedAmt)
Set Weighted Amount.- Specified by:
setWeightedAmt
in interfaceI_C_Opportunity
- Parameters:
WeightedAmt
- The amount adjusted by the probability.
-
getWeightedAmt
public BigDecimal getWeightedAmt()
Get Weighted Amount.- Specified by:
getWeightedAmt
in interfaceI_C_Opportunity
- Returns:
- The amount adjusted by the probability.
-
-