org.openmdx.base.jmi1
Interface Provider

All Superinterfaces:
Provider, RefBaseObject, RefFeatured, RefObject, RefObject_1_0

public interface Provider
extends Provider, RefObject_1_0

Class Provider


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openmdx.base.cci2.Provider
Provider.Identity
 
Method Summary
 void addSegment(boolean qualifiedNameIsPersistent, String qualifiedName, Segment segment)
          Adds the specified element to the set of the values for the reference segment.
 Authority getAuthority()
          Retrieves the value for the reference authority.
 Segment getSegment(boolean qualifiedNameIsPersistent, String qualifiedName)
          Retrieves the value for the reference segment for the specified qualifier attribute value.
<T extends Segment>
List<T>
getSegment(SegmentQuery query)
          Retrieves the value for the reference segment for the specified query.
 Segment getSegment(String qualifiedName)
          Retrieves the value for the reference segment for the specified qualifier attribute value.
 
Methods inherited from interface org.openmdx.base.cci2.Provider
addSegment, getSegment
 
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

getAuthority

Authority getAuthority()
Retrieves the value for the reference authority.

Specified by:
getAuthority in interface Provider
Returns:
The non-null value for this reference.

getSegment

<T extends Segment> List<T> getSegment(SegmentQuery query)
Retrieves the value for the reference segment 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.

getSegment

Segment getSegment(boolean qualifiedNameIsPersistent,
                   String qualifiedName)
Retrieves the value for the reference segment for the specified qualifier attribute value.

Specified by:
getSegment in interface Provider
Parameters:
qualifiedNameIsPersistent - Defines whether value for the qualifier is persistent or not
qualifiedName - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

getSegment

Segment getSegment(String qualifiedName)
Retrieves the value for the reference segment for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getSegment(false,qualifiedName).

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

addSegment

void addSegment(boolean qualifiedNameIsPersistent,
                String qualifiedName,
                Segment segment)
Adds the specified element to the set of the values for the reference segment.

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

Parameters:
qualifiedNameIsPersistent - true if qualifiedName is persistent
qualifiedName - The qualifier attribute value that qualifies the reference to get the element to be appended.
segment - The element to be appended.


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