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 intget_AccessLevel()AccessLevelI_AD_UsergetAD_User()intgetAD_User_ID()Get User/Contact.I_C_BPartnergetC_BPartner()intgetC_BPartner_ID()Get Business Partner.I_C_CampaigngetC_Campaign()intgetC_Campaign_ID()Get Campaign.I_C_CurrencygetC_Currency()intgetC_Currency_ID()Get Currency.intgetC_Opportunity_ID()Get Sales Opportunity.StringgetC_Opportunity_UU()Get C_Opportunity_UU.I_C_OrdergetC_Order()intgetC_Order_ID()Get Order.I_C_SalesStagegetC_SalesStage()intgetC_SalesStage_ID()Get Sales Stage.TimestampgetCloseDate()Get Close Date.StringgetComments()Get Comments.BigDecimalgetCost()Get Cost.StringgetDescription()Get Description.StringgetDocumentNo()Get Document No.TimestampgetExpectedCloseDate()Get Expected Close Date.KeyNamePairgetKeyNamePair()Get Record ID/ColumnNameBigDecimalgetOpportunityAmt()Get Opportunity Amount.BigDecimalgetProbability()Get Probability.I_AD_UsergetSalesRep()intgetSalesRep_ID()Get Sales Representative.BigDecimalgetWeightedAmt()Get Weighted Amount.protected POInfoinitPO(Properties ctx)Load Meta DatavoidsetAD_User_ID(int AD_User_ID)Set User/Contact.voidsetC_BPartner_ID(int C_BPartner_ID)Set Business Partner.voidsetC_Campaign_ID(int C_Campaign_ID)Set Campaign.voidsetC_Currency_ID(int C_Currency_ID)Set Currency.voidsetC_Opportunity_ID(int C_Opportunity_ID)Set Sales Opportunity.voidsetC_Opportunity_UU(String C_Opportunity_UU)Set C_Opportunity_UU.voidsetC_Order_ID(int C_Order_ID)Set Order.voidsetC_SalesStage_ID(int C_SalesStage_ID)Set Sales Stage.voidsetCloseDate(Timestamp CloseDate)Set Close Date.voidsetComments(String Comments)Set Comments.voidsetCost(BigDecimal Cost)Set Cost.voidsetDescription(String Description)Set Description.voidsetDocumentNo(String DocumentNo)Set Document No.voidsetExpectedCloseDate(Timestamp ExpectedCloseDate)Set Expected Close Date.voidsetOpportunityAmt(BigDecimal OpportunityAmt)Set Opportunity Amount.voidsetProbability(BigDecimal Probability)Set Probability.voidsetSalesRep_ID(int SalesRep_ID)Set Sales Representative.voidsetWeightedAmt(BigDecimal WeightedAmt)Set Weighted Amount.StringtoString()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_AccessLevelin 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_Userin interfaceI_C_Opportunity- Throws:
RuntimeException
-
setAD_User_ID
public void setAD_User_ID(int AD_User_ID)
Set User/Contact.- Specified by:
setAD_User_IDin 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_IDin 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_BPartnerin interfaceI_C_Opportunity- Throws:
RuntimeException
-
setC_BPartner_ID
public void setC_BPartner_ID(int C_BPartner_ID)
Set Business Partner.- Specified by:
setC_BPartner_IDin 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_IDin interfaceI_C_Opportunity- Returns:
- Identifies a Business Partner
-
getC_Campaign
public I_C_Campaign getC_Campaign() throws RuntimeException
- Specified by:
getC_Campaignin interfaceI_C_Opportunity- Throws:
RuntimeException
-
setC_Campaign_ID
public void setC_Campaign_ID(int C_Campaign_ID)
Set Campaign.- Specified by:
setC_Campaign_IDin interfaceI_C_Opportunity- Parameters:
C_Campaign_ID- Marketing Campaign
-
getC_Campaign_ID
public int getC_Campaign_ID()
Get Campaign.- Specified by:
getC_Campaign_IDin interfaceI_C_Opportunity- Returns:
- Marketing Campaign
-
getC_Currency
public I_C_Currency getC_Currency() throws RuntimeException
- Specified by:
getC_Currencyin interfaceI_C_Opportunity- Throws:
RuntimeException
-
setC_Currency_ID
public void setC_Currency_ID(int C_Currency_ID)
Set Currency.- Specified by:
setC_Currency_IDin 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_IDin interfaceI_C_Opportunity- Returns:
- The Currency for this record
-
setCloseDate
public void setCloseDate(Timestamp CloseDate)
Set Close Date.- Specified by:
setCloseDatein interfaceI_C_Opportunity- Parameters:
CloseDate- Close Date
-
getCloseDate
public Timestamp getCloseDate()
Get Close Date.- Specified by:
getCloseDatein interfaceI_C_Opportunity- Returns:
- Close Date
-
setComments
public void setComments(String Comments)
Set Comments.- Specified by:
setCommentsin interfaceI_C_Opportunity- Parameters:
Comments- Comments or additional information
-
getComments
public String getComments()
Get Comments.- Specified by:
getCommentsin 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_IDin interfaceI_C_Opportunity- Parameters:
C_Opportunity_ID- Sales Opportunity
-
getC_Opportunity_ID
public int getC_Opportunity_ID()
Get Sales Opportunity.- Specified by:
getC_Opportunity_IDin 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_UUin 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_UUin interfaceI_C_Opportunity- Returns:
- C_Opportunity_UU
-
getC_Order
public I_C_Order getC_Order() throws RuntimeException
- Specified by:
getC_Orderin interfaceI_C_Opportunity- Throws:
RuntimeException
-
setC_Order_ID
public void setC_Order_ID(int C_Order_ID)
Set Order.- Specified by:
setC_Order_IDin interfaceI_C_Opportunity- Parameters:
C_Order_ID- Order
-
getC_Order_ID
public int getC_Order_ID()
Get Order.- Specified by:
getC_Order_IDin interfaceI_C_Opportunity- Returns:
- Order
-
setCost
public void setCost(BigDecimal Cost)
Set Cost.- Specified by:
setCostin interfaceI_C_Opportunity- Parameters:
Cost- Cost information
-
getCost
public BigDecimal getCost()
Get Cost.- Specified by:
getCostin interfaceI_C_Opportunity- Returns:
- Cost information
-
getC_SalesStage
public I_C_SalesStage getC_SalesStage() throws RuntimeException
- Specified by:
getC_SalesStagein interfaceI_C_Opportunity- Throws:
RuntimeException
-
setC_SalesStage_ID
public void setC_SalesStage_ID(int C_SalesStage_ID)
Set Sales Stage.- Specified by:
setC_SalesStage_IDin 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_IDin interfaceI_C_Opportunity- Returns:
- Stages of the sales process
-
setDescription
public void setDescription(String Description)
Set Description.- Specified by:
setDescriptionin interfaceI_C_Opportunity- Parameters:
Description- Optional short description of the record
-
getDescription
public String getDescription()
Get Description.- Specified by:
getDescriptionin interfaceI_C_Opportunity- Returns:
- Optional short description of the record
-
setDocumentNo
public void setDocumentNo(String DocumentNo)
Set Document No.- Specified by:
setDocumentNoin interfaceI_C_Opportunity- Parameters:
DocumentNo- Document sequence number of the document
-
getDocumentNo
public String getDocumentNo()
Get Document No.- Specified by:
getDocumentNoin 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:
setExpectedCloseDatein interfaceI_C_Opportunity- Parameters:
ExpectedCloseDate- Expected Close Date
-
getExpectedCloseDate
public Timestamp getExpectedCloseDate()
Get Expected Close Date.- Specified by:
getExpectedCloseDatein interfaceI_C_Opportunity- Returns:
- Expected Close Date
-
setOpportunityAmt
public void setOpportunityAmt(BigDecimal OpportunityAmt)
Set Opportunity Amount.- Specified by:
setOpportunityAmtin interfaceI_C_Opportunity- Parameters:
OpportunityAmt- The estimated value of this opportunity.
-
getOpportunityAmt
public BigDecimal getOpportunityAmt()
Get Opportunity Amount.- Specified by:
getOpportunityAmtin interfaceI_C_Opportunity- Returns:
- The estimated value of this opportunity.
-
setProbability
public void setProbability(BigDecimal Probability)
Set Probability.- Specified by:
setProbabilityin interfaceI_C_Opportunity- Parameters:
Probability- Probability
-
getProbability
public BigDecimal getProbability()
Get Probability.- Specified by:
getProbabilityin interfaceI_C_Opportunity- Returns:
- Probability
-
getSalesRep
public I_AD_User getSalesRep() throws RuntimeException
- Specified by:
getSalesRepin interfaceI_C_Opportunity- Throws:
RuntimeException
-
setSalesRep_ID
public void setSalesRep_ID(int SalesRep_ID)
Set Sales Representative.- Specified by:
setSalesRep_IDin interfaceI_C_Opportunity- Parameters:
SalesRep_ID- Sales Representative or Company Agent
-
getSalesRep_ID
public int getSalesRep_ID()
Get Sales Representative.- Specified by:
getSalesRep_IDin interfaceI_C_Opportunity- Returns:
- Sales Representative or Company Agent
-
setWeightedAmt
public void setWeightedAmt(BigDecimal WeightedAmt)
Set Weighted Amount.- Specified by:
setWeightedAmtin interfaceI_C_Opportunity- Parameters:
WeightedAmt- The amount adjusted by the probability.
-
getWeightedAmt
public BigDecimal getWeightedAmt()
Get Weighted Amount.- Specified by:
getWeightedAmtin interfaceI_C_Opportunity- Returns:
- The amount adjusted by the probability.
-
-