org.opencrx.kernel.contract1.jmi1
Interface AbstractContractPosition

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

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

Abstract class AbstractContractPosition

isFrozenisFrozen


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 addDeliveryInformation(String id, DeliveryInformation deliveryInformation)
          Adds the specified element to the set of the values for the reference deliveryInformation using a reassignable qualifier.
 void addProductApplication(boolean idIsPersistent, String id, ProductApplication productApplication)
          Adds the specified element to the set of the values for the reference productApplication.
 void addProductApplication(String id, ProductApplication productApplication)
          Adds the specified element to the set of the values for the reference productApplication using a reassignable qualifier.
 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.
 Void reprice()
           
 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.AbstractContractPosition
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, setLineItemNumber, setMaxQuantity, setMinMaxQuantityHandling, setMinQuantity, setName, setOffsetQuantity, setPositionNumber, setPricePerUnit, setPricingDate, setPricingState, setQuantity, setSalesCommission, setSalesCommissionIsPercentage
 
Methods inherited from interface org.opencrx.kernel.contract1.jmi1.AddressContainer
addAddress, addAddress, getAddress, getAddress, getAddress
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.AddressContainer
getAddress
 
Methods inherited from interface org.opencrx.kernel.contract1.jmi1.DeliveryRequestContainer
addDeliveryRequest, addDeliveryRequest, getDeliveryRequest, getDeliveryRequest, getDeliveryRequest
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.DeliveryRequestContainer
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, addDepotReference, getDepotReference, getDepotReference, getDepotReference
 
Methods inherited from interface org.opencrx.kernel.depot1.cci2.DepotReferenceHolder
getDepotReference
 
Methods inherited from interface org.openmdx.base.accessor.jmi.cci.RefObject_1_0
refDefaultFetchGroup, refDelegate, refGetPath, refGetValue, refInitialize, refInitialize, refSetValue
 
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 AbstractContractPosition
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 AbstractContractPosition
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.

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.

addDeliveryInformation

void addDeliveryInformation(String id,
                            DeliveryInformation deliveryInformation)
Adds the specified element to the set of the values for the reference deliveryInformation using a reassignable qualifier.

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

Parameters:
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 AbstractContractPosition
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 AbstractContractPosition
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.

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 AbstractContractPosition
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 AbstractContractPosition
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 AbstractContractPosition
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 AbstractContractPosition
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 AbstractContractPosition
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 AbstractContractPosition
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.

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.

addProductApplication

void addProductApplication(String id,
                           ProductApplication productApplication)
Adds the specified element to the set of the values for the reference productApplication using a reassignable qualifier.

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

Parameters:
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
productApplication - The element to be appended.

reprice

Void reprice()
Specified by:
reprice in interface AbstractContractPosition

getSalesTaxType

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

Specified by:
getSalesTaxType in interface AbstractContractPosition
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 AbstractContractPosition
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 AbstractContractPosition
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 AbstractContractPosition
Parameters:
uom - The non-null new value for this reference.


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