org.opencrx.kernel.product1.jmi1
Interface ProductConfigurationSet

All Superinterfaces:
ProductConfigurationSet, RefBaseObject, RefFeatured, RefObject, RefObject_1_0
All Known Subinterfaces:
AbstractInvoicePosition, AbstractOpportunityPosition, AbstractQuotePosition, AbstractSalesOrderPosition, Asset, ConfiguredProduct, CreditBooking, DebitBooking, InventoryItem, InvoicePosition, OpportunityPosition, Product, ProductReference, QuotePosition, RemovedPosition, SalesOrderPosition, SingleBooking

public interface ProductConfigurationSet
extends ProductConfigurationSet, RefObject_1_0

Abstract class ProductConfigurationSet


Method Summary
 void addConfiguration(boolean idIsPersistent, String id, ProductConfiguration configuration)
          Adds the specified element to the set of the values for the reference configuration.
 void addConfiguration(ProductConfiguration configuration)
          Adds the specified element to the set of the values for the reference configuration using an implementation-specific, reassignable qualifier.
 void addConfiguration(String id, ProductConfiguration configuration)
          Adds the specified element to the set of the values for the reference configuration using a reassignable qualifier.
 ProductConfigurationTypeSet getConfigType()
          Retrieves the value for the reference configType.
 ProductConfiguration getConfiguration(boolean idIsPersistent, String id)
          Retrieves the value for the reference configuration for the specified qualifier attribute value.
<T extends ProductConfiguration>
List<T>
getConfiguration(ProductConfigurationQuery query)
          Retrieves the value for the reference configuration for the specified query.
 ProductConfiguration getConfiguration(String id)
          Retrieves the value for the reference configuration for the specified qualifier attribute value.
 void setConfigType(ProductConfigurationTypeSet configType)
          Sets a new value for the reference configType.
 Void unsetConfigurationType()
           
 
Methods inherited from interface org.opencrx.kernel.product1.cci2.ProductConfigurationSet
getConfiguration
 
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

getConfigType

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

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

setConfigType

void setConfigType(ProductConfigurationTypeSet configType)
Sets a new value for the reference configType.

Specified by:
setConfigType in interface ProductConfigurationSet
Parameters:
configType - The new – possibly null – value for this reference.

getConfiguration

<T extends ProductConfiguration> List<T> getConfiguration(ProductConfigurationQuery query)
Retrieves the value for the reference configuration 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.

getConfiguration

ProductConfiguration getConfiguration(boolean idIsPersistent,
                                      String id)
Retrieves the value for the reference configuration 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

getConfiguration

ProductConfiguration getConfiguration(String id)
Retrieves the value for the reference configuration for the specified qualifier attribute value.

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

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

addConfiguration

void addConfiguration(boolean idIsPersistent,
                      String id,
                      ProductConfiguration configuration)
Adds the specified element to the set of the values for the reference configuration.

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

addConfiguration

void addConfiguration(String id,
                      ProductConfiguration configuration)
Adds the specified element to the set of the values for the reference configuration 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.
configuration - The element to be appended.

addConfiguration

void addConfiguration(ProductConfiguration configuration)
Adds the specified element to the set of the values for the reference configuration using an implementation-specific, reassignable qualifier.

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

Parameters:
configuration - The element to be appended.

unsetConfigurationType

Void unsetConfigurationType()
Specified by:
unsetConfigurationType in interface ProductConfigurationSet


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