org.opencrx.kernel.code1.jmi1
Interface CodeValueContainer

All Superinterfaces:
BasicObject, CodeValueContainer, ContextCapable, Creatable, Exporter, ExtentCapable, Importer, Modifiable, RefBaseObject, RefFeatured, RefObject, RefObject_1_0, SecureObject

public interface CodeValueContainer
extends CodeValueContainer, Exporter, Importer, SecureObject, BasicObject

Class CodeValueContainer


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.opencrx.kernel.code1.cci2.CodeValueContainer
CodeValueContainer.Identity
 
Method Summary
 void addEntry(AbstractEntry entry)
          Adds the specified element to the set of the values for the reference entry using an implementation-specific, reassignable qualifier.
 void addEntry(boolean codeIsPersistent, String code, AbstractEntry entry)
          Adds the specified element to the set of the values for the reference entry.
 void addEntry(String code, AbstractEntry entry)
          Adds the specified element to the set of the values for the reference entry using a reassignable qualifier.
<T extends AbstractEntry>
List<T>
getEntry(AbstractEntryQuery query)
          Retrieves the value for the reference entry for the specified query.
 AbstractEntry getEntry(boolean codeIsPersistent, String code)
          Retrieves the value for the reference entry for the specified qualifier attribute value.
 AbstractEntry getEntry(String code)
          Retrieves the value for the reference entry for the specified qualifier attribute value.
 Set<String> getName()
          Retrieves a set containing all the elements for the attribute name.
 void setName(Set<String> name)
          Clears name and adds the members of the given Set.
 
Methods inherited from interface org.opencrx.kernel.code1.cci2.CodeValueContainer
getEntry, setName
 
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, getOwner, getOwningUser, removeAllOwningGroup, removeOwningGroup, replaceOwningGroup, setAccessLevel, setOwner, 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, setOwner, setOwningUser
 
Methods inherited from interface org.openmdx.base.jmi1.Creatable
getCreatedBy
 
Methods inherited from interface org.openmdx.base.cci2.Creatable
getCreatedAt
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.base.jmi1.Modifiable
getModifiedBy
 
Methods inherited from interface org.openmdx.base.cci2.Modifiable
getModifiedAt
 
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

getEntry

<T extends AbstractEntry> List<T> getEntry(AbstractEntryQuery query)
Retrieves the value for the reference entry 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.

getEntry

AbstractEntry getEntry(boolean codeIsPersistent,
                       String code)
Retrieves the value for the reference entry for the specified qualifier attribute value.

Parameters:
codeIsPersistent - Defines whether value for the qualifier is persistent or not
code - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

getEntry

AbstractEntry getEntry(String code)
Retrieves the value for the reference entry for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getEntry(false,code).

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

addEntry

void addEntry(boolean codeIsPersistent,
              String code,
              AbstractEntry entry)
Adds the specified element to the set of the values for the reference entry.

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

Parameters:
codeIsPersistent - true if code is persistent
code - The qualifier attribute value that qualifies the reference to get the element to be appended.
entry - The element to be appended.

addEntry

void addEntry(String code,
              AbstractEntry entry)
Adds the specified element to the set of the values for the reference entry using a reassignable qualifier.

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

Parameters:
code - The qualifier attribute value that qualifies the reference to get the element to be appended.
entry - The element to be appended.

addEntry

void addEntry(AbstractEntry entry)
Adds the specified element to the set of the values for the reference entry using an implementation-specific, reassignable qualifier.

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

Parameters:
entry - The element to be appended.

getName

Set<String> getName()
Retrieves a set containing all the elements for the attribute name.

Specified by:
getName in interface CodeValueContainer
Returns:
A set containing all elements for this attribute.

setName

void setName(Set<String> name)
Clears name and adds the members of the given Set.

This method is equivalent to

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

Parameters:
name - collection to be copied.


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