org.opencrx.kernel.uom1.jmi1
Interface Segment

All Superinterfaces:
ContextCapable, Exporter, Importer, RefBaseObject, RefFeatured, RefObject, RefObject_1_0, SecureObject, Segment, ViewCapable

public interface Segment
extends Segment, Segment, Exporter, Importer, SecureObject

Class Segment


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openmdx.base.cci2.Segment
Segment.Identity
 
Method Summary
 void addUom(boolean idIsPersistent, String id, Uom uom)
          Adds the specified element to the set of the values for the reference uom.
 void addUomSchedule(boolean idIsPersistent, String id, UomSchedule uomSchedule)
          Adds the specified element to the set of the values for the reference uomSchedule.
 Uom getUom(boolean idIsPersistent, String id)
          Retrieves the value for the reference uom for the specified qualifier attribute value.
 Uom getUom(String id)
          Retrieves the value for the reference uom for the specified qualifier attribute value.
<T extends Uom>
List<T>
getUom(UomQuery query)
          Retrieves the value for the reference uom for the specified query.
 UomSchedule getUomSchedule(boolean idIsPersistent, String id)
          Retrieves the value for the reference uomSchedule for the specified qualifier attribute value.
 UomSchedule getUomSchedule(String id)
          Retrieves the value for the reference uomSchedule for the specified qualifier attribute value.
<T extends UomSchedule>
List<T>
getUomSchedule(UomScheduleQuery query)
          Retrieves the value for the reference uomSchedule for the specified query.
 
Methods inherited from interface org.opencrx.kernel.uom1.cci2.Segment
getUom, getUomSchedule
 
Methods inherited from interface org.openmdx.base.jmi1.Segment
getExtent, getExtent, getExtent, getProvider
 
Methods inherited from interface org.openmdx.base.cci2.Segment
getDescription, getExtent, setDescription
 
Methods inherited from interface org.openmdx.base.cci2.ContextCapable
getContext
 
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.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.SecureObject
addOwningGroup, checkPermissions, getAccessGrantedByParent, getOwner, getOwningUser, removeAllOwningGroup, removeOwningGroup, setAccessLevel, setOwningUser, setOwningUser
 
Methods inherited from interface org.opencrx.kernel.base.cci2.SecureObject
addOwningGroup, checkPermissions, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getOwningGroup, removeAllOwningGroup, removeOwningGroup, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setOwningUser
 

Method Detail

getUom

<T extends Uom> List<T> getUom(UomQuery query)
Retrieves the value for the reference uom 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.

getUom

Uom getUom(boolean idIsPersistent,
           String id)
Retrieves the value for the reference uom 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

getUom

Uom getUom(String id)
Retrieves the value for the reference uom for the specified qualifier attribute value.

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

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

addUom

void addUom(boolean idIsPersistent,
            String id,
            Uom uom)
Adds the specified element to the set of the values for the reference uom.

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

getUomSchedule

<T extends UomSchedule> List<T> getUomSchedule(UomScheduleQuery query)
Retrieves the value for the reference uomSchedule 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.

getUomSchedule

UomSchedule getUomSchedule(boolean idIsPersistent,
                           String id)
Retrieves the value for the reference uomSchedule 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

getUomSchedule

UomSchedule getUomSchedule(String id)
Retrieves the value for the reference uomSchedule for the specified qualifier attribute value.

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

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

addUomSchedule

void addUomSchedule(boolean idIsPersistent,
                    String id,
                    UomSchedule uomSchedule)
Adds the specified element to the set of the values for the reference uomSchedule.

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


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