org.opencrx.kernel.contract1.jdo2
Class OpportunityPosition

java.lang.Object
  extended by org.oasisopen.jdo2.Identifiable
      extended by org.w3c.jdo2.AbstractObject
          extended by org.opencrx.kernel.contract1.jdo2.AbstractOpportunityPosition
              extended by org.opencrx.kernel.contract1.jdo2.OpportunityPosition
All Implemented Interfaces:
Serializable, AlertSender, Auditee, Cloneable, Exporter, Importer, Indexed, SecureObject, AbstractOpportunityPosition, AddressContainer, ContractPosition, DeliveryRequestContainer, OpportunityPosition, ShippingDetail, BookingOrigin, DepotReferenceHolder, CrxObject, ConfiguredProduct, ProductConfigurationSet, ProductDescriptor, AspectCapable, BasicObject, ContextCapable, Creatable, ExtentCapable, Modifiable

public class OpportunityPosition
extends AbstractOpportunityPosition
implements OpportunityPosition

Class OpportunityPosition

See Also:
Serialized Form

Nested Class Summary
static class OpportunityPosition.Slice
          Slice object hold the OpportunityPosition's multivalued attributes
 
Nested classes/interfaces inherited from class org.opencrx.kernel.contract1.jdo2.AbstractOpportunityPosition
AbstractOpportunityPosition.Identity
 
Nested classes/interfaces inherited from class org.w3c.jdo2.AbstractObject
org.w3c.jdo2.AbstractObject.EmbeddedList<E>, org.w3c.jdo2.AbstractObject.EmbeddedSet<E>
 
Nested classes/interfaces inherited from interface org.opencrx.kernel.contract1.cci2.AbstractOpportunityPosition
AbstractOpportunityPosition.Identity
 
Field Summary
static List<String> CLASS
          Define the model class org::opencrx::kernel::contract1::OpportunityPosition
 
Fields inherited from class org.opencrx.kernel.contract1.jdo2.AbstractOpportunityPosition
BASE_CLASS
 
Constructor Summary
OpportunityPosition()
           
 
Method Summary
 ProductConfigurationTypeSet getConfigType()
          Retrieves the value for the reference configType.
<T extends ProductConfiguration>
ProductConfigurationSetContainsConfiguration.Configuration<T>
getConfiguration()
          Retrieves a set containing all the elements for the reference configuration.
 ProductConfiguration getCurrentConfig()
          Retrieves the value for the reference currentConfig.
 Product getProduct()
          Retrieves the value for the reference product.
 Set<String> getProductSerialNumber()
          Retrieves a set containing all the elements for the attribute productSerialNumber.
static AbstractOpportunityPosition.Identity newIdentity(Opportunity.Identity opportunity, QualifierType idType, String id)
           
protected  org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
           
protected  List<String> openmdxjdoGetClass()
          Retrieve the model class
protected  int openmdxjdoGetSize(int field)
           
protected  void openmdxjdoSetSize(int field, int size)
           
static AbstractOpportunityPosition.Identity openmdxjdoToIdentity(ObjectId objectId)
           
 void setCurrentConfig(ProductConfiguration currentConfig)
          Sets a new value for the reference currentConfig.
 void setProduct(Product product)
          Sets a new value for the reference product.
 void setProductSerialNumber(String... productSerialNumber)
          Clears productSerialNumber and adds the given value(s).
 Void unsetConfigurationType()
           
 
Methods inherited from class org.opencrx.kernel.contract1.jdo2.AbstractOpportunityPosition
addOwningGroup, addToOpportunity, addToOpportunity, checkPermissions, clone_, exportItem, exportItemAdvanced, getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getAdditionalExternalLink, getAddress, getAmount, getAttachedDocument, getAudit, getBaseAmount, getCalcRule, getCarrier, getCategory, getCloseProbability, getContact, getContext, getContractPositionState, getCreatedAt, getCreatedBy, getDeliveryInformation, getDeliveryRequest, getDepotReference, getDescription, getDisabledReason, getDiscount, getDiscountAmount, getDiscountDescription, getDocumentFolderAssignment, getEstimatedCloseDate, getExternalLink, getGiftMessage, getIdentity, getIndexEntry, getLineItemNumber, getListPrice, getMaxQuantity, getMedia, getMinMaxQuantityHandling, getMinQuantity, getModifiedAt, getModifiedBy, getName, getNote, getOffsetQuantity, getOwner, getOwningGroup, getOwningUser, getPositionModification, getPositionNumber, getPriceLevel, getPricePerUnit, getPriceUom, getPriceUomDescription, getPriceUomDetailedDescription, getPricingDate, getPricingRule, getPricingState, getProductApplication, getProductDescription, getProductDetailedDescription, getPropertySet, getPropertySetEntry, getQuantity, getQuantityBackOrdered, getQuantityShipped, getRating, getSalesCommission, getSalesTaxType, getSalesTaxTypeDescription, getSalesTaxTypeDetailedDescription, getShippingInstructions, getShippingMethod, getShippingTrackingNumber, getTaxAmount, getUom, getUomDescription, getUomDetailedDescription, getUserBoolean4, getUserCode0, getUserCode1, getUserCode2, getUserCode3, getUserCode4, getUserDate0, getUserDate1, getUserDate2, getUserDate3, getUserDate4, getUserDateTime0, getUserDateTime1, getUserDateTime2, getUserDateTime3, getUserDateTime4, getUserNumber0, getUserNumber1, getUserNumber2, getUserNumber3, getUserNumber4, getUserString0, getUserString1, getUserString2, getUserString3, getUserString4, importItem, isDisabled, isDiscountIsPercentage, isGift, isSalesCommissionIsPercentage, isUserBoolean0, isUserBoolean1, isUserBoolean2, isUserBoolean3, openmdxjdoGetObjectId, openmdxjdoGetSlices, removeAllOwningGroup, removeOwningGroup, replaceOwningGroup, reprice, sendAlert, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setCalcRule, setCarrier, setCategory, setCloseProbability, setContractPositionState, setDescription, setDisabled, setDisabledReason, setDiscount, setDiscountDescription, setDiscountIsPercentage, setEstimatedCloseDate, setExternalLink, setGift, setGiftMessage, setListPrice, setMaxQuantity, setMinMaxQuantityHandling, setMinQuantity, setName, setOffsetQuantity, setOwningUser, setOwningUser, setPositionNumber, setPriceLevel, setPricePerUnit, setPriceUom, setPricingDate, setPricingRule, setPricingState, setQuantity, setSalesCommission, setSalesCommissionIsPercentage, setSalesTaxType, setShippingInstructions, setShippingMethod, setShippingTrackingNumber, setUom, setUserBoolean0, setUserBoolean1, setUserBoolean2, setUserBoolean3, setUserBoolean4, setUserCode0, setUserCode1, setUserCode2, setUserCode3, setUserCode4, setUserDate0, setUserDate1, setUserDate2, setUserDate3, setUserDate4, setUserDateTime0, setUserDateTime1, setUserDateTime2, setUserDateTime3, setUserDateTime4, setUserNumber0, setUserNumber1, setUserNumber2, setUserNumber3, setUserNumber4, setUserString0, setUserString1, setUserString2, setUserString3, setUserString4, updateIndex
 
Methods inherited from class org.w3c.jdo2.AbstractObject
openmdxjdoClassName, openmdxjdoGetIdentityBuilder, openmdxjdoGetList, openmdxjdoGetObjectsByParent, openmdxjdoGetSet, openmdxjdoGetSparseArray, openmdxjdoNewMap, openmdxjdoNewSlice, openmdxjdoSetArray, openmdxjdoSetCollection, openmdxjdoToArray, openmdxjdoToArray, openmdxjdoValidateElement
 
Methods inherited from class org.oasisopen.jdo2.Identifiable
jdoClass, modelClasses, openmdxjdoGetObject, openmdxjdoGetObjectById, openmdxjdoGetObjectId, openmdxjdoGetObjectSet, openmdxjdoNewObjectId, openmdxjdoNewObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.AbstractOpportunityPosition
getCloseProbability, getEstimatedCloseDate, setCloseProbability, setEstimatedCloseDate
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.ContractPosition
getAmount, getBaseAmount, getCalcRule, getContact, getContractPositionState, getDeliveryInformation, getDescription, getDiscount, getDiscountAmount, getDiscountDescription, getLineItemNumber, getListPrice, getMaxQuantity, getMinMaxQuantityHandling, getMinQuantity, getName, getOffsetQuantity, getPositionModification, getPositionNumber, getPriceLevel, getPricePerUnit, getPriceUom, getPriceUomDescription, getPriceUomDetailedDescription, getPricingDate, getPricingRule, getPricingState, getProductApplication, getProductDescription, getProductDetailedDescription, getQuantity, getQuantityBackOrdered, getQuantityShipped, getSalesCommission, getSalesTaxType, getSalesTaxTypeDescription, getSalesTaxTypeDetailedDescription, getTaxAmount, getUom, getUomDescription, getUomDetailedDescription, isDiscountIsPercentage, isSalesCommissionIsPercentage, reprice, setCalcRule, setContractPositionState, setDescription, setDiscount, setDiscountDescription, setDiscountIsPercentage, setListPrice, setMaxQuantity, setMinMaxQuantityHandling, setMinQuantity, setName, setOffsetQuantity, setPositionNumber, setPriceLevel, setPricePerUnit, setPriceUom, setPricingDate, setPricingRule, setPricingState, setQuantity, setSalesCommission, setSalesCommissionIsPercentage, setSalesTaxType, setUom
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.AddressContainer
getAddress
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.DeliveryRequestContainer
getDeliveryRequest
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.ShippingDetail
getCarrier, getGiftMessage, getShippingInstructions, getShippingMethod, getShippingTrackingNumber, isGift, setCarrier, setGift, setGiftMessage, setShippingInstructions, setShippingMethod, setShippingTrackingNumber
 
Methods inherited from interface org.opencrx.kernel.depot1.cci2.DepotReferenceHolder
getDepotReference
 
Methods inherited from interface org.opencrx.kernel.generic.cci2.CrxObject
getAdditionalExternalLink, getAttachedDocument, getCategory, getDisabledReason, getDocumentFolderAssignment, getExternalLink, getMedia, getNote, getPropertySet, getPropertySetEntry, getRating, getUserBoolean4, getUserCode0, getUserCode1, getUserCode2, getUserCode3, getUserCode4, getUserDate0, getUserDate1, getUserDate2, getUserDate3, getUserDate4, getUserDateTime0, getUserDateTime1, getUserDateTime2, getUserDateTime3, getUserDateTime4, getUserNumber0, getUserNumber1, getUserNumber2, getUserNumber3, getUserNumber4, getUserString0, getUserString1, getUserString2, getUserString3, getUserString4, isDisabled, isUserBoolean0, isUserBoolean1, isUserBoolean2, isUserBoolean3, setCategory, setDisabled, setDisabledReason, setExternalLink, setUserBoolean0, setUserBoolean1, setUserBoolean2, setUserBoolean3, setUserBoolean4, setUserCode0, setUserCode1, setUserCode2, setUserCode3, setUserCode4, setUserDate0, setUserDate1, setUserDate2, setUserDate3, setUserDate4, setUserDateTime0, setUserDateTime1, setUserDateTime2, setUserDateTime3, setUserDateTime4, setUserNumber0, setUserNumber1, setUserNumber2, setUserNumber3, setUserNumber4, setUserString0, setUserString1, setUserString2, setUserString3, setUserString4
 
Methods inherited from interface org.opencrx.kernel.base.cci2.AlertSender
sendAlert
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Auditee
getAudit
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Cloneable
clone_
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Exporter
exportItem, exportItemAdvanced
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Importer
importItem
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Indexed
getIndexEntry, updateIndex
 
Methods inherited from interface org.opencrx.kernel.base.cci2.SecureObject
addOwningGroup, checkPermissions, getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getOwner, getOwningGroup, getOwningUser, removeAllOwningGroup, removeOwningGroup, replaceOwningGroup, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setOwningUser, setOwningUser
 
Methods inherited from interface org.openmdx.base.cci2.ContextCapable
getContext
 
Methods inherited from interface org.openmdx.base.cci2.Creatable
getCreatedAt, getCreatedBy
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.base.cci2.Modifiable
getModifiedAt, getModifiedBy
 

Field Detail

CLASS

public static final List<String> CLASS
Define the model class org::opencrx::kernel::contract1::OpportunityPosition

Constructor Detail

OpportunityPosition

public OpportunityPosition()
Method Detail

getConfigType

public ProductConfigurationTypeSet getConfigType()
Retrieves the value for the reference configType.

Specified by:
getConfigType in interface ProductConfigurationSet
Returns:
The – possibly null – value for this reference.

getProduct

public Product getProduct()
Retrieves the value for the reference product.

Specified by:
getProduct in interface ProductDescriptor
Returns:
The – possibly null – value for this reference.

setProduct

public void setProduct(Product product)
Sets a new value for the reference product.

Specified by:
setProduct in interface ProductDescriptor
Parameters:
product - The non-null new value for this reference.

getConfiguration

public <T extends ProductConfiguration> ProductConfigurationSetContainsConfiguration.Configuration<T> getConfiguration()
Retrieves a set containing all the elements for the reference configuration.

Specified by:
getConfiguration in interface ProductConfigurationSet
Returns:
A set containing all the elements for this reference.

getCurrentConfig

public ProductConfiguration getCurrentConfig()
Retrieves the value for the reference currentConfig.

Specified by:
getCurrentConfig in interface ConfiguredProduct
Returns:
The – possibly null – value for this reference.

setCurrentConfig

public void setCurrentConfig(ProductConfiguration currentConfig)
Sets a new value for the reference currentConfig.

Specified by:
setCurrentConfig in interface ConfiguredProduct
Parameters:
currentConfig - The non-null new value for this reference.

getProductSerialNumber

public final Set<String> getProductSerialNumber()
Retrieves a set containing all the elements for the attribute productSerialNumber.

Specified by:
getProductSerialNumber in interface ConfiguredProduct
Returns:
A set containing all elements for this attribute.

setProductSerialNumber

public void setProductSerialNumber(String... productSerialNumber)
Clears productSerialNumber and adds the given value(s).

This method is equivalent to

   set.clear();
   set.addAll(Arrays.asList(productSerialNumber));
 

Specified by:
setProductSerialNumber in interface ConfiguredProduct
Parameters:
productSerialNumber - value(s) to be added to productSerialNumber

unsetConfigurationType

public Void unsetConfigurationType()
Specified by:
unsetConfigurationType in interface ProductConfigurationSet

openmdxjdoGetSize

protected int openmdxjdoGetSize(int field)
Overrides:
openmdxjdoGetSize in class AbstractOpportunityPosition

openmdxjdoSetSize

protected void openmdxjdoSetSize(int field,
                                 int size)
Overrides:
openmdxjdoSetSize in class AbstractOpportunityPosition

newSlice

protected org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
Overrides:
newSlice in class AbstractOpportunityPosition

openmdxjdoGetClass

protected List<String> openmdxjdoGetClass()
Retrieve the model class

Overrides:
openmdxjdoGetClass in class AbstractOpportunityPosition
Returns:
the model class
See Also:
OpportunityPosition.CLASS

newIdentity

public static AbstractOpportunityPosition.Identity newIdentity(Opportunity.Identity opportunity,
                                                               QualifierType idType,
                                                               String id)

openmdxjdoToIdentity

public static AbstractOpportunityPosition.Identity openmdxjdoToIdentity(ObjectId objectId)


This software is published under the BSD license. Copyright © 2003-2008, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.