org.opencrx.kernel.model1.jmi1
Interface Segment
- All Superinterfaces:
- Auditee, org.openmdx.base.cci2.ContextCapable, Importer, Indexed, RefBaseObject, RefFeatured, RefObject, RefObject_1_0, SecureObject, org.openmdx.base.cci2.Segment, org.openmdx.compatibility.view1.cci2.ViewCapable, XmlExporter
public interface Segment
- extends Segment, Segment, Auditee, Importer, Indexed, SecureObject, XmlExporter
Class Segment
|
Method Summary |
void |
addElement(boolean idIsPersistent,
String id,
Element element)
Adds the specified element to the set of the values for the reference
element. |
Element |
getElement(boolean idIsPersistent,
String id)
Retrieves the value for the reference element for the
specified qualifier attribute value. |
|
getElement(ElementQuery query)
Retrieves the value for the reference element for the
specified query. |
Element |
getElement(String id)
Retrieves the value for the reference element for the
specified qualifier attribute value. |
| Methods inherited from interface org.openmdx.base.jmi1.Segment |
getExtent, getExtent, getExtent, getProvider |
| Methods inherited from interface org.openmdx.base.cci2.Segment |
getDescription, setDescription |
| 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 org.opencrx.kernel.base.cci2.Auditee |
getAudit |
| Methods inherited from interface org.opencrx.kernel.base.jmi1.SecureObject |
addOwningGroup, addOwningGroup, checkPermissions, checkPermissions, getAccessGrantedByParent, getOwner, getOwningUser, removeAllOwningGroup, removeAllOwningGroup, removeOwningGroup, removeOwningGroup, setAccessLevel, setAccessLevel, setOwningUser, setOwningUser, setOwningUser |
getElement
<T extends Element> List<T> getElement(ElementQuery query)
- Retrieves the value for the reference
element 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.
getElement
Element getElement(boolean idIsPersistent,
String id)
- Retrieves the value for the reference
element for the
specified qualifier attribute value.
- Parameters:
idIsPersistent - Defines whether value for the qualifier is persistent or notid - The value for the qualifier attribute that qualifies this reference.
- Returns:
- The possibly null value for this qualifier
getElement
Element getElement(String id)
- Retrieves the value for the reference
element for the
specified qualifier attribute value.
This method is equivalent to the preferred invocation
getElement(false,id).
- Parameters:
id - The value for the qualifier attribute that qualifies this reference.
- Returns:
- The possibly null value for this qualifier
addElement
void addElement(boolean idIsPersistent,
String id,
Element element)
- Adds the specified element to the set of the values for the reference
element.
Note: This is an extension to the JMI 1 standard.
- Parameters:
idIsPersistent - true if id is persistentid - The qualifier attribute value that qualifies the reference to get the element to be appended.element - 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.