org.opencrx.kernel.contract1.jmi1
Interface ContractPosition

All Superinterfaces:
AddressContainer, BookingOrigin, ContractPosition, DeliveryRequestContainer, DepotReferenceHolder, RefBaseObject, RefFeatured, RefObject, RefObject_1_0, ShippingDetail
All Known Subinterfaces:
AbstractInvoicePosition, AbstractOpportunityPosition, AbstractQuotePosition, AbstractRemovedPosition, AbstractSalesOrderPosition, InvoicePosition, OpportunityPosition, QuotePosition, RemovedPosition, SalesOrderPosition

public interface ContractPosition
extends ContractPosition, AddressContainer, DeliveryRequestContainer, ShippingDetail, BookingOrigin, DepotReferenceHolder

Abstract class ContractPosition


Method Summary
 void addDeliveryInformation(boolean idIsPersistent, String id, DeliveryInformation deliveryInformation)
          Adds the specified element to the set of the values for the reference deliveryInformation.
 void addProductApplication(boolean idIsPersistent, String id, ProductApplication productApplication)
          Adds the specified element to the set of the values for the reference productApplication.
 CalculationRule getCalcRule()
          Retrieves the value for the reference calcRule.
 DeliveryInformation getDeliveryInformation(boolean idIsPersistent, String id)
          Retrieves the value for the reference deliveryInformation for the specified qualifier attribute value.
<T extends DeliveryInformation>
List<T>
getDeliveryInformation(DeliveryInformationQuery query)
          Retrieves the value for the reference deliveryInformation for the specified query.
 DeliveryInformation getDeliveryInformation(String id)
          Retrieves the value for the reference deliveryInformation for the specified qualifier attribute value.
 ProductBasePrice getListPrice()
          Retrieves the value for the reference listPrice.
 PositionModification getPositionModification(boolean idIsPersistent, String id)
          Retrieves the value for the reference positionModification for the specified qualifier attribute value.
<T extends PositionModification>
List<T>
getPositionModification(PositionModificationQuery query)
          Retrieves the value for the reference positionModification for the specified query.
 PositionModification getPositionModification(String id)
          Retrieves the value for the reference positionModification for the specified qualifier attribute value.
 AbstractPriceLevel getPriceLevel()
          Retrieves the value for the reference priceLevel.
 Uom getPriceUom()
          Retrieves the value for the reference priceUom.
 PricingRule getPricingRule()
          Retrieves the value for the reference pricingRule.
 ProductApplication getProductApplication(boolean idIsPersistent, String id)
          Retrieves the value for the reference productApplication for the specified qualifier attribute value.
<T extends ProductApplication>
List<T>
getProductApplication(ProductApplicationQuery query)
          Retrieves the value for the reference productApplication for the specified query.
 ProductApplication getProductApplication(String id)
          Retrieves the value for the reference productApplication for the specified qualifier attribute value.
 SalesTaxType getSalesTaxType()
          Retrieves the value for the reference salesTaxType.
 Uom getUom()
          Retrieves the value for the reference uom.
 org.openmdx.base.jmi1.Void reprice()
           
 org.openmdx.base.jmi1.Void reprice(org.openmdx.base.jmi1.Void params)
          Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the non-struct signature.
.
 void setCalcRule(CalculationRule calcRule)
          Sets a new value for the reference calcRule.
 void setListPrice(ProductBasePrice listPrice)
          Sets a new value for the reference listPrice.
 void setPriceLevel(AbstractPriceLevel priceLevel)
          Sets a new value for the reference priceLevel.
 void setPriceUom(Uom priceUom)
          Sets a new value for the reference priceUom.
 void setPricingRule(PricingRule pricingRule)
          Sets a new value for the reference pricingRule.
 void setSalesTaxType(SalesTaxType salesTaxType)
          Sets a new value for the reference salesTaxType.
 void setUom(Uom uom)
          Sets a new value for the reference uom.
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.ContractPosition
addDeliveryInformation, addProductApplication, getAmount, getBaseAmount, getContact, getContractPositionState, getDeliveryInformation, getDescription, getDiscount, getDiscountAmount, getDiscountDescription, getLineItemNumber, getMaxQuantity, getMinMaxQuantityHandling, getMinQuantity, getName, getOffsetQuantity, getPositionModification, getPositionNumber, getPricePerUnit, getPriceUomDescription, getPriceUomDetailedDescription, getPricingDate, getPricingState, getProductApplication, getProductDescription, getProductDetailedDescription, getQuantity, getQuantityBackOrdered, getQuantityShipped, getSalesCommission, getSalesTaxTypeDescription, getSalesTaxTypeDetailedDescription, getTaxAmount, getUomDescription, getUomDetailedDescription, isDiscountIsPercentage, isSalesCommissionIsPercentage, setContractPositionState, setDescription, setDiscount, setDiscountDescription, setDiscountIsPercentage, setMaxQuantity, setMinMaxQuantityHandling, setMinQuantity, setName, setOffsetQuantity, setPositionNumber, setPricePerUnit, setPricingDate, setPricingState, setQuantity, setSalesCommission, setSalesCommissionIsPercentage
 
Methods inherited from interface org.opencrx.kernel.contract1.jmi1.AddressContainer
addAddress, getAddress, getAddress, getAddress
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.AddressContainer
addAddress, getAddress
 
Methods inherited from interface org.opencrx.kernel.contract1.jmi1.DeliveryRequestContainer
addDeliveryRequest, getDeliveryRequest, getDeliveryRequest, getDeliveryRequest
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.DeliveryRequestContainer
addDeliveryRequest, getDeliveryRequest
 
Methods inherited from interface org.opencrx.kernel.contract1.jmi1.ShippingDetail
getCarrier, setCarrier
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.ShippingDetail
getGiftMessage, getShippingInstructions, getShippingMethod, getShippingTrackingNumber, isGift, setGift, setGiftMessage, setShippingInstructions, setShippingMethod, setShippingTrackingNumber
 
Methods inherited from interface org.opencrx.kernel.depot1.jmi1.DepotReferenceHolder
addDepotReference, getDepotReference, getDepotReference, getDepotReference
 
Methods inherited from interface org.opencrx.kernel.depot1.cci2.DepotReferenceHolder
addDepotReference, getDepotReference
 
Methods inherited from interface org.openmdx.base.accessor.jmi.cci.RefObject_1_0
refAddEventListener, refAddToUnitOfWork, refAddValue, refContext, refDefaultFetchGroup, refDelegate, refFlush, refGetEventListeners, refGetPath, refGetValue, refGetValue, refInitialize, refInitialize, refIsDeleted, refIsDirty, refIsNew, refIsPersistent, refIsWriteProtected, refRefresh, refRefreshAsynchronously, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refSetValue, refWriteProtect
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

getCalcRule

CalculationRule getCalcRule()
Retrieves the value for the reference calcRule.

Specified by:
getCalcRule in interface ContractPosition
Returns:
The – possibly null – value for this reference.

setCalcRule

void setCalcRule(CalculationRule calcRule)
Sets a new value for the reference calcRule.

Specified by:
setCalcRule in interface ContractPosition
Parameters:
calcRule - The non-null new value for this reference.

getDeliveryInformation

<T extends DeliveryInformation> List<T> getDeliveryInformation(DeliveryInformationQuery query)
Retrieves the value for the reference deliveryInformation for the specified query. Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should substitute this method with java.jdo.Query

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

getDeliveryInformation

DeliveryInformation getDeliveryInformation(boolean idIsPersistent,
                                           String id)
Retrieves the value for the reference deliveryInformation for the specified qualifier attribute value.

Specified by:
getDeliveryInformation in interface ContractPosition
Parameters:
idIsPersistent - Defines whether value for the qualifier is persistent or not
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

getDeliveryInformation

DeliveryInformation getDeliveryInformation(String id)
Retrieves the value for the reference deliveryInformation for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getDeliveryInformation(false,id).

Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

addDeliveryInformation

void addDeliveryInformation(boolean idIsPersistent,
                            String id,
                            DeliveryInformation deliveryInformation)
Adds the specified element to the set of the values for the reference deliveryInformation.

Note: This is an extension to the JMI 1 standard.

Parameters:
idIsPersistent - true if id is persistent
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
deliveryInformation - The element to be appended.

getListPrice

ProductBasePrice getListPrice()
Retrieves the value for the reference listPrice.

Specified by:
getListPrice in interface ContractPosition
Returns:
The – possibly null – value for this reference.

setListPrice

void setListPrice(ProductBasePrice listPrice)
Sets a new value for the reference listPrice.

Specified by:
setListPrice in interface ContractPosition
Parameters:
listPrice - The non-null new value for this reference.

getPositionModification

<T extends PositionModification> List<T> getPositionModification(PositionModificationQuery query)
Retrieves the value for the reference positionModification for the specified query. Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should substitute this method with java.jdo.Query

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

getPositionModification

PositionModification getPositionModification(boolean idIsPersistent,
                                             String id)
Retrieves the value for the reference positionModification for the specified qualifier attribute value.

Specified by:
getPositionModification in interface ContractPosition
Parameters:
idIsPersistent - Defines whether value for the qualifier is persistent or not
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

getPositionModification

PositionModification getPositionModification(String id)
Retrieves the value for the reference positionModification for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getPositionModification(false,id).

Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

getPriceLevel

AbstractPriceLevel getPriceLevel()
Retrieves the value for the reference priceLevel.

Specified by:
getPriceLevel in interface ContractPosition
Returns:
The – possibly null – value for this reference.

setPriceLevel

void setPriceLevel(AbstractPriceLevel priceLevel)
Sets a new value for the reference priceLevel.

Specified by:
setPriceLevel in interface ContractPosition
Parameters:
priceLevel - The non-null new value for this reference.

getPriceUom

Uom getPriceUom()
Retrieves the value for the reference priceUom.

Specified by:
getPriceUom in interface ContractPosition
Returns:
The – possibly null – value for this reference.

setPriceUom

void setPriceUom(Uom priceUom)
Sets a new value for the reference priceUom.

Specified by:
setPriceUom in interface ContractPosition
Parameters:
priceUom - The non-null new value for this reference.

getPricingRule

PricingRule getPricingRule()
Retrieves the value for the reference pricingRule.

Specified by:
getPricingRule in interface ContractPosition
Returns:
The – possibly null – value for this reference.

setPricingRule

void setPricingRule(PricingRule pricingRule)
Sets a new value for the reference pricingRule.

Specified by:
setPricingRule in interface ContractPosition
Parameters:
pricingRule - The non-null new value for this reference.

getProductApplication

<T extends ProductApplication> List<T> getProductApplication(ProductApplicationQuery query)
Retrieves the value for the reference productApplication for the specified query. Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should substitute this method with java.jdo.Query

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

getProductApplication

ProductApplication getProductApplication(boolean idIsPersistent,
                                         String id)
Retrieves the value for the reference productApplication for the specified qualifier attribute value.

Specified by:
getProductApplication in interface ContractPosition
Parameters:
idIsPersistent - Defines whether value for the qualifier is persistent or not
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

getProductApplication

ProductApplication getProductApplication(String id)
Retrieves the value for the reference productApplication for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getProductApplication(false,id).

Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

addProductApplication

void addProductApplication(boolean idIsPersistent,
                           String id,
                           ProductApplication productApplication)
Adds the specified element to the set of the values for the reference productApplication.

Note: This is an extension to the JMI 1 standard.

Parameters:
idIsPersistent - true if id is persistent
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
productApplication - The element to be appended.

reprice

org.openmdx.base.jmi1.Void reprice(org.openmdx.base.jmi1.Void params)
                                   throws RefException
Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the non-struct signature.
.

Throws:
RefException

reprice

org.openmdx.base.jmi1.Void reprice()
Specified by:
reprice in interface ContractPosition

getSalesTaxType

SalesTaxType getSalesTaxType()
Retrieves the value for the reference salesTaxType.

Specified by:
getSalesTaxType in interface ContractPosition
Returns:
The non-null value for this reference.

setSalesTaxType

void setSalesTaxType(SalesTaxType salesTaxType)
Sets a new value for the reference salesTaxType.

Specified by:
setSalesTaxType in interface ContractPosition
Parameters:
salesTaxType - The non-null new value for this reference.

getUom

Uom getUom()
Retrieves the value for the reference uom.

Specified by:
getUom in interface ContractPosition
Returns:
The – possibly null – value for this reference.

setUom

void setUom(Uom uom)
Sets a new value for the reference uom.

Specified by:
setUom in interface ContractPosition
Parameters:
uom - The non-null new value for this reference.


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