org.opencrx.kernel.contract1.jdo2
Class InvoicePosition

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

public class InvoicePosition
extends AbstractInvoicePosition
implements InvoicePosition

Class InvoicePosition

See Also:
Serialized Form

Nested Class Summary
static class InvoicePosition.Slice
          Slice object hold the InvoicePosition's multivalued attributes
 
Nested classes/interfaces inherited from class org.opencrx.kernel.contract1.jdo2.AbstractInvoicePosition
AbstractInvoicePosition.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.AbstractInvoicePosition
AbstractInvoicePosition.Identity
 
Field Summary
static List<String> CLASS
          Define the model class org::opencrx::kernel::contract1::InvoicePosition
 
Fields inherited from class org.opencrx.kernel.contract1.jdo2.AbstractInvoicePosition
BASE_CLASS
 
Constructor Summary
InvoicePosition()
           
 
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 AbstractInvoicePosition.Identity newIdentity(Invoice.Identity invoice, 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 AbstractInvoicePosition.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.AbstractInvoicePosition
addOwningGroup, addToInvoice, addToInvoice, checkPermissions, clone_, exportItem, exportItemAdvanced, getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getAdditionalExternalLink, getAddress, getAmount, getAttachedDocument, getAudit, getBaseAmount, getCalcRule, getCarrier, getCategory, getContact, getContext, getContractPositionState, getCreatedAt, getCreatedBy, getDeliveryInformation, getDeliveryRequest, getDepotReference, getDescription, getDisabledReason, getDiscount, getDiscountAmount, getDiscountDescription, getDocumentFolderAssignment, 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, setContractPositionState, setDescription, setDisabled, setDisabledReason, setDiscount, setDiscountDescription, setDiscountIsPercentage, 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.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::InvoicePosition

Constructor Detail

InvoicePosition

public InvoicePosition()
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 AbstractInvoicePosition

openmdxjdoSetSize

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

newSlice

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

openmdxjdoGetClass

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

Overrides:
openmdxjdoGetClass in class AbstractInvoicePosition
Returns:
the model class
See Also:
InvoicePosition.CLASS

newIdentity

public static AbstractInvoicePosition.Identity newIdentity(Invoice.Identity invoice,
                                                           QualifierType idType,
                                                           String id)

openmdxjdoToIdentity

public static AbstractInvoicePosition.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.