org.opencrx.kernel.code1.jmi1
Interface CodeValueContainer
- All Superinterfaces:
- AspectCapable, 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
|
Method Summary |
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. |
|
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.base.jmi1.SecureObject |
addOwningGroup, checkPermissions, getAccessGrantedByParent, getOwner, getOwningUser, removeAllOwningGroup, removeOwningGroup, replaceOwningGroup, setAccessLevel, 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, setOwningUser |
| Methods inherited from interface org.openmdx.base.accessor.jmi.cci.RefObject_1_0 |
refAddEventListener, refAddToUnitOfWork, refAddValue, refContext, refDefaultFetchGroup, refDelegate, refGetEventListeners, refGetPath, refGetValue, refGetValue, refInitialize, refInitialize, refIsDeleted, refIsDirty, refIsNew, refIsPersistent, refIsWriteProtected, refRefresh, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refSetValue, refWriteProtect |
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 notcode - 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 persistentcode - 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.
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-2009, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.