org.openmdx.base.cci
Class ProviderImpl

java.lang.Object
  extended by org.openmdx.base.accessor.jmi.spi.RefObject_1
      extended by org.openmdx.base.cci.ProviderImpl
All Implemented Interfaces:
Serializable, javax.jdo.spi.PersistenceCapable, RefBaseObject, RefFeatured, RefObject, RefObject_1_0, RefObject_1_1, RefObject_1_2, Provider

public class ProviderImpl
extends RefObject_1
implements Provider

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.jdo.spi.PersistenceCapable
javax.jdo.spi.PersistenceCapable.ObjectIdFieldConsumer, javax.jdo.spi.PersistenceCapable.ObjectIdFieldManager, javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier
 
Field Summary
 
Fields inherited from interface javax.jdo.spi.PersistenceCapable
CHECK_READ, CHECK_WRITE, LOAD_REQUIRED, MEDIATE_READ, MEDIATE_WRITE, READ_OK, READ_WRITE_OK, SERIALIZABLE
 
Constructor Summary
ProviderImpl(Object_1_0 object, RefClass refClass)
           
 
Method Summary
 void addSegment(Segment newValue)
          Appends the specified element to the list of all the values for the reference segment.
 void addSegment(String qualifiedName, Segment newValue)
          Appends the specified element to the list of all the values for the reference segment for a specified qualifier attribute value.
 Authority getAuthority()
          Retrieves the value for the reference authority.
 Collection getSegment()
          Retrieves a collection containing all the elements for the reference segment.
 List getSegment(SegmentFilter filter)
          Retrieves the value for the reference segment for the specified filter.
 List 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.
 void removeSegment(String qualifiedName)
          Removes the qualified (by means of the specified qualifier attribute value) element from the list of all the values for the reference segment.
protected  void setAuthority(Authority newValue)
           
 void setSegment(List newValue)
           
 void setSegment(Segment[] newValue)
           
 
Methods inherited from class org.openmdx.base.accessor.jmi.spi.RefObject_1
equals, getModel, getValue, hashCode, jdoCopyFields, jdoCopyKeyFieldsFromObjectId, jdoCopyKeyFieldsToObjectId, jdoCopyKeyFieldsToObjectId, jdoGetObjectId, jdoGetPersistenceManager, jdoGetTransactionalObjectId, jdoGetVersion, jdoIsDeleted, jdoIsDetached, jdoIsDirty, jdoIsNew, jdoIsPersistent, jdoIsTransactional, jdoMakeDirty, jdoNewInstance, jdoNewInstance, jdoNewObjectIdInstance, jdoNewObjectIdInstance, jdoProvideField, jdoProvideFields, jdoReplaceField, jdoReplaceFields, jdoReplaceFlags, jdoReplaceStateManager, refAddEventListener, refAddToUnitOfWork, refAddValue, refAddValue, refAddValue, refClass, refContext, refDefaultFetchGroup, refDelegate, refDelete, refFlush, refGetEventListeners, refGetPath, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refImmediateComposite, refImmediatePackage, refInitialize, refInitialize, refInvokeOperation, refInvokeOperation, refIsDeleted, refIsDirty, refIsInstanceOf, refIsNew, refIsPersistent, refIsWriteProtected, refMetaObject, refMofId, refOutermostComposite, refOutermostPackage, refRefresh, refRefreshAsynchronously, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refRemoveValue, refRemoveValue, refSetOutermostPackage, refSetValue, refSetValue, refSetValue, refSetValue, refVerifyConstraints, refWriteProtect, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

ProviderImpl

public ProviderImpl(Object_1_0 object,
                    RefClass refClass)
Method Detail

getAuthority

public Authority getAuthority()
Description copied from interface: Provider
Retrieves the value for the reference authority.

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

setAuthority

protected void setAuthority(Authority newValue)

setSegment

public void setSegment(List newValue)

setSegment

public void setSegment(Segment[] newValue)

getSegment

public Segment getSegment(String qualifiedName)
Description copied from interface: Provider
Retrieves the value for the reference segment for the specified qualifier attribute value.

Specified by:
getSegment in interface Provider
Parameters:
qualifiedName - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this reference.

getSegment

public Collection getSegment()
Description copied from interface: Provider
Retrieves a collection containing all the elements for the reference segment.

Specified by:
getSegment in interface Provider
Returns:
A collection containing all the elements for this reference.

getSegment

public List getSegment(SegmentFilter filter)
Description copied from interface: Provider
Retrieves the value for the reference segment for the specified filter.

Specified by:
getSegment in interface Provider
Parameters:
filter - filter which is applied to the set of referenced objects.
Returns:
The filtered collection of referenced objects.

getSegment

public List getSegment(SegmentQuery query)
Description copied from interface: Provider
Retrieves the value for the reference segment for the specified query.

Specified by:
getSegment in interface Provider
Returns:
The filtered collection of referenced objects.

addSegment

public void addSegment(String qualifiedName,
                       Segment newValue)
Description copied from interface: Provider
Appends the specified element to the list of all the values for the reference segment for a specified qualifier attribute value.

Specified by:
addSegment in interface Provider
Parameters:
qualifiedName - The qualifier attribute value that qualifies the reference to get the element to be appended.
newValue - The element to be appended.

addSegment

public void addSegment(Segment newValue)
Description copied from interface: Provider
Appends the specified element to the list of all the values for the reference segment.

Specified by:
addSegment in interface Provider
Parameters:
newValue - The element to be appended.

removeSegment

public void removeSegment(String qualifiedName)
Description copied from interface: Provider
Removes the qualified (by means of the specified qualifier attribute value) element from the list of all the values for the reference segment.

Specified by:
removeSegment in interface Provider
Parameters:
qualifiedName - The qualifier attribute value that qualifies the reference to get the element to be removed.


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