org.opencrx.kernel.product1.jmi1
Interface AbstractPriceLevel

All Superinterfaces:
AbstractFilter, AbstractFilterAccount, AbstractFilterProduct, AbstractPriceLevel, AlertSender, Auditee, BasicObject, Cloneable, ContextCapable, CrxObject, Exporter, ExtentCapable, Importer, Indexed, RefBaseObject, RefFeatured, RefObject, RefObject_1_0, SecureObject, ViewCapable
All Known Subinterfaces:
PriceLevel, ProductPhasePriceLevel

public interface AbstractPriceLevel
extends AbstractPriceLevel, AbstractFilterAccount, CrxObject, AbstractFilterProduct

Abstract class AbstractPriceLevel


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.opencrx.kernel.product1.cci2.AbstractPriceLevel
AbstractPriceLevel.Identity
 
Method Summary
 void addAssignedAccount(boolean idIsPersistent, String id, AccountAssignment assignedAccount)
          Adds the specified element to the set of the values for the reference assignedAccount.
 void addPriceModifier(boolean idIsPersistent, String id, PriceModifier priceModifier)
          Adds the specified element to the set of the values for the reference priceModifier.
 ProcessPricesResult calculatePrices(CalculatePricesParams in)
           
 ProcessPricesResult createInitialPrices(CreateInitialPricesParams in)
           
<T extends AccountAssignment>
List<T>
getAssignedAccount(AccountAssignmentQuery query)
          Retrieves the value for the reference assignedAccount for the specified query.
 AccountAssignment getAssignedAccount(boolean idIsPersistent, String id)
          Retrieves the value for the reference assignedAccount for the specified qualifier attribute value.
 AccountAssignment getAssignedAccount(String id)
          Retrieves the value for the reference assignedAccount for the specified qualifier attribute value.
 AbstractPriceLevel getBasedOn()
          Retrieves the value for the reference basedOn.
 List<Short> getPaymentMethod()
          Retrieves a list containing all the elements for the attribute paymentMethod.
 PriceListEntry getPriceListEntry(boolean idIsPersistent, String id)
          Retrieves the value for the reference priceListEntry for the specified qualifier attribute value.
<T extends PriceListEntry>
List<T>
getPriceListEntry(PriceListEntryQuery query)
          Retrieves the value for the reference priceListEntry for the specified query.
 PriceListEntry getPriceListEntry(String id)
          Retrieves the value for the reference priceListEntry for the specified qualifier attribute value.
 PriceModifier getPriceModifier(boolean idIsPersistent, String id)
          Retrieves the value for the reference priceModifier for the specified qualifier attribute value.
<T extends PriceModifier>
List<T>
getPriceModifier(PriceModifierQuery query)
          Retrieves the value for the reference priceModifier for the specified query.
 PriceModifier getPriceModifier(String id)
          Retrieves the value for the reference priceModifier for the specified qualifier attribute value.
 List<Short> getPriceUsage()
          Retrieves a list containing all the elements for the attribute priceUsage.
 List<Short> getShippingMethod()
          Retrieves a list containing all the elements for the attribute shippingMethod.
 ProcessPricesResult removePriceLevels(RemovePriceLevelsParams in)
           
 ProcessPricesResult removePrices(RemovePricesParams in)
           
 void setBasedOn(AbstractPriceLevel basedOn)
          Sets a new value for the reference basedOn.
 void setPaymentMethod(List<Short> paymentMethod)
          Clears paymentMethod and adds the members of the given List.
 void setPriceUsage(List<Short> priceUsage)
          Clears priceUsage and adds the members of the given List.
 void setShippingMethod(List<Short> shippingMethod)
          Clears shippingMethod and adds the members of the given List.
 
Methods inherited from interface org.opencrx.kernel.product1.cci2.AbstractPriceLevel
calculatePrices, createInitialPrices, getAssignedAccount, getDescription, getName, getPriceCurrency, getPriceListEntry, getPriceModifier, getValidFrom, getValidTo, isFinal, removePriceLevels, removePrices, setDescription, setFinal, setName, setPaymentMethod, setPriceCurrency, setPriceUsage, setShippingMethod, setValidFrom, setValidTo
 
Methods inherited from interface org.opencrx.kernel.account1.jmi1.AbstractFilterAccount
addAccountFilterProperty, countFilteredAccount, getAccountFilterProperty, getAccountFilterProperty, getAccountFilterProperty, getFilteredAccount, getFilteredAccount, getFilteredAccount
 
Methods inherited from interface org.opencrx.kernel.account1.cci2.AbstractFilterAccount
getAccountFilterProperty, getFilteredAccount
 
Methods inherited from interface org.opencrx.kernel.generic.jmi1.CrxObject
addAdditionalExternalLink, addAttachedDocument, addDocumentFolderAssignment, addMedia, addNote, addPropertySet, addRating, getAdditionalExternalLink, getAdditionalExternalLink, getAdditionalExternalLink, getAttachedDocument, getAttachedDocument, getAttachedDocument, getCategory, getDocumentFolderAssignment, getDocumentFolderAssignment, getDocumentFolderAssignment, getExternalLink, getMedia, getMedia, getMedia, getNote, getNote, getNote, getPropertySet, getPropertySet, getPropertySet, getPropertySetEntry, getPropertySetEntry, getPropertySetEntry, getRating, getRating, getRating, getUserBoolean4, getUserCode4, getUserDate4, getUserDateTime4, getUserNumber4, getUserString4, setCategory, setExternalLink, setUserBoolean4, setUserCode4, setUserDate4, setUserDateTime4, setUserNumber4, setUserString4
 
Methods inherited from interface org.opencrx.kernel.generic.cci2.CrxObject
getAdditionalExternalLink, getAttachedDocument, getDisabledReason, getDocumentFolderAssignment, getMedia, getNote, getPropertySet, getPropertySetEntry, getRating, getUserCode0, getUserCode1, getUserCode2, getUserCode3, getUserDate0, getUserDate1, getUserDate2, getUserDate3, getUserDateTime0, getUserDateTime1, getUserDateTime2, getUserDateTime3, getUserNumber0, getUserNumber1, getUserNumber2, getUserNumber3, getUserString0, getUserString1, getUserString2, getUserString3, 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.jmi1.AlertSender
sendAlert
 
Methods inherited from interface org.opencrx.kernel.base.cci2.AlertSender
sendAlert
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.Auditee
getAudit, getAudit, getAudit
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Auditee
getAudit
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.Cloneable
clone_
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Cloneable
clone_
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.Exporter
exportItem, exportItemAdvanced
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Exporter
exportItem, exportItemAdvanced
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.Importer
importItem
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Importer
importItem
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.Indexed
getIndexEntry, getIndexEntry, getIndexEntry, updateIndex
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Indexed
getIndexEntry
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.SecureObject
addOwningGroup, checkPermissions, getAccessGrantedByParent, getOwner, getOwningUser, removeAllOwningGroup, removeOwningGroup, replaceOwningGroup, setAccessLevel, setOwningUser, setOwningUser
 
Methods inherited from interface org.opencrx.kernel.base.cci2.SecureObject
addOwningGroup, checkPermissions, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getOwningGroup, removeAllOwningGroup, removeOwningGroup, replaceOwningGroup, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setOwningUser
 
Methods inherited from interface org.openmdx.base.jmi1.BasicObject
getCreatedBy, getModifiedBy
 
Methods inherited from interface org.openmdx.base.cci2.BasicObject
getCreatedAt, getModifiedAt
 
Methods inherited from interface org.openmdx.base.cci2.ContextCapable
getContext
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.compatibility.view1.jmi1.ViewCapable
getView, getView, getView
 
Methods inherited from interface org.openmdx.compatibility.view1.cci2.ViewCapable
getView
 
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
 
Methods inherited from interface org.opencrx.kernel.product1.jmi1.AbstractFilterProduct
addProductFilterProperty, countFilteredProduct, getFilteredProduct, getFilteredProduct, getFilteredProduct, getProductFilterProperty, getProductFilterProperty, getProductFilterProperty
 
Methods inherited from interface org.opencrx.kernel.product1.cci2.AbstractFilterProduct
getFilteredProduct, getProductFilterProperty
 

Method Detail

getAssignedAccount

<T extends AccountAssignment> List<T> getAssignedAccount(AccountAssignmentQuery query)
Retrieves the value for the reference assignedAccount 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.

getAssignedAccount

AccountAssignment getAssignedAccount(boolean idIsPersistent,
                                     String id)
Retrieves the value for the reference assignedAccount 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

getAssignedAccount

AccountAssignment getAssignedAccount(String id)
Retrieves the value for the reference assignedAccount for the specified qualifier attribute value.

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

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

addAssignedAccount

void addAssignedAccount(boolean idIsPersistent,
                        String id,
                        AccountAssignment assignedAccount)
Adds the specified element to the set of the values for the reference assignedAccount.

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.
assignedAccount - The element to be appended.

getBasedOn

AbstractPriceLevel getBasedOn()
Retrieves the value for the reference basedOn.

Specified by:
getBasedOn in interface AbstractPriceLevel
Returns:
The – possibly null – value for this reference.

setBasedOn

void setBasedOn(AbstractPriceLevel basedOn)
Sets a new value for the reference basedOn.

Specified by:
setBasedOn in interface AbstractPriceLevel
Parameters:
basedOn - The non-null new value for this reference.

calculatePrices

ProcessPricesResult calculatePrices(CalculatePricesParams in)

createInitialPrices

ProcessPricesResult createInitialPrices(CreateInitialPricesParams in)

getPaymentMethod

List<Short> getPaymentMethod()
Retrieves a list containing all the elements for the attribute paymentMethod.

Specified by:
getPaymentMethod in interface AbstractPriceLevel
Returns:
A list containing all elements for this attribute.

setPaymentMethod

void setPaymentMethod(List<Short> paymentMethod)
Clears paymentMethod and adds the members of the given List.

This method is equivalent to

   list.clear();
   list.addAll(paymentMethod);
 
Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the equivalent code.

Parameters:
paymentMethod - collection to be copied.

getPriceListEntry

<T extends PriceListEntry> List<T> getPriceListEntry(PriceListEntryQuery query)
Retrieves the value for the reference priceListEntry 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.

getPriceListEntry

PriceListEntry getPriceListEntry(boolean idIsPersistent,
                                 String id)
Retrieves the value for the reference priceListEntry 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

getPriceListEntry

PriceListEntry getPriceListEntry(String id)
Retrieves the value for the reference priceListEntry for the specified qualifier attribute value.

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

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

getPriceModifier

<T extends PriceModifier> List<T> getPriceModifier(PriceModifierQuery query)
Retrieves the value for the reference priceModifier 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.

getPriceModifier

PriceModifier getPriceModifier(boolean idIsPersistent,
                               String id)
Retrieves the value for the reference priceModifier 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

getPriceModifier

PriceModifier getPriceModifier(String id)
Retrieves the value for the reference priceModifier for the specified qualifier attribute value.

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

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

addPriceModifier

void addPriceModifier(boolean idIsPersistent,
                      String id,
                      PriceModifier priceModifier)
Adds the specified element to the set of the values for the reference priceModifier.

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.
priceModifier - The element to be appended.

getPriceUsage

List<Short> getPriceUsage()
Retrieves a list containing all the elements for the attribute priceUsage.

Specified by:
getPriceUsage in interface AbstractPriceLevel
Returns:
A list containing all elements for this attribute.

setPriceUsage

void setPriceUsage(List<Short> priceUsage)
Clears priceUsage and adds the members of the given List.

This method is equivalent to

   list.clear();
   list.addAll(priceUsage);
 
Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the equivalent code.

Parameters:
priceUsage - collection to be copied.

removePriceLevels

ProcessPricesResult removePriceLevels(RemovePriceLevelsParams in)

removePrices

ProcessPricesResult removePrices(RemovePricesParams in)

getShippingMethod

List<Short> getShippingMethod()
Retrieves a list containing all the elements for the attribute shippingMethod.

Specified by:
getShippingMethod in interface AbstractPriceLevel
Returns:
A list containing all elements for this attribute.

setShippingMethod

void setShippingMethod(List<Short> shippingMethod)
Clears shippingMethod and adds the members of the given List.

This method is equivalent to

   list.clear();
   list.addAll(shippingMethod);
 
Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the equivalent code.

Parameters:
shippingMethod - collection to be copied.


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