org.opencrx.kernel.depot1.jmi1
Interface Segment

All Superinterfaces:
Auditee, ContextCapable, Exporter, Importer, Indexed, RefBaseObject, RefFeatured, RefObject, RefObject_1_0, SecureObject, Segment, ViewCapable

public interface Segment
extends Segment, Segment, Auditee, Exporter, Importer, Indexed, SecureObject

Class Segment


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openmdx.base.cci2.Segment
Segment.Identity
 
Method Summary
 void addDepotType(boolean idIsPersistent, String id, DepotType depotType)
          Adds the specified element to the set of the values for the reference depotType.
 void addEntity(boolean idIsPersistent, String id, DepotEntity entity)
          Adds the specified element to the set of the values for the reference entity.
 void addEntityRelationship(boolean idIsPersistent, String id, DepotEntityRelationship entityRelationship)
          Adds the specified element to the set of the values for the reference entityRelationship.
 void addSimpleBooking(boolean idIsPersistent, String id, SimpleBooking simpleBooking)
          Adds the specified element to the set of the values for the reference simpleBooking.
 SingleBooking getBooking(boolean idIsPersistent, String id)
          Retrieves the value for the reference booking for the specified qualifier attribute value.
<T extends SingleBooking>
List<T>
getBooking(SingleBookingQuery query)
          Retrieves the value for the reference booking for the specified query.
 SingleBooking getBooking(String id)
          Retrieves the value for the reference booking for the specified qualifier attribute value.
 CompoundBooking getCb(boolean idIsPersistent, String id)
          Retrieves the value for the reference cb for the specified qualifier attribute value.
<T extends CompoundBooking>
List<T>
getCb(CompoundBookingQuery query)
          Retrieves the value for the reference cb for the specified query.
 CompoundBooking getCb(String id)
          Retrieves the value for the reference cb for the specified qualifier attribute value.
 DepotType getDepotType(boolean idIsPersistent, String id)
          Retrieves the value for the reference depotType for the specified qualifier attribute value.
<T extends DepotType>
List<T>
getDepotType(DepotTypeQuery query)
          Retrieves the value for the reference depotType for the specified query.
 DepotType getDepotType(String id)
          Retrieves the value for the reference depotType for the specified qualifier attribute value.
 DepotEntity getEntity(boolean idIsPersistent, String id)
          Retrieves the value for the reference entity for the specified qualifier attribute value.
<T extends DepotEntity>
List<T>
getEntity(DepotEntityQuery query)
          Retrieves the value for the reference entity for the specified query.
 DepotEntity getEntity(String id)
          Retrieves the value for the reference entity for the specified qualifier attribute value.
 DepotEntityRelationship getEntityRelationship(boolean idIsPersistent, String id)
          Retrieves the value for the reference entityRelationship for the specified qualifier attribute value.
<T extends DepotEntityRelationship>
List<T>
getEntityRelationship(DepotEntityRelationshipQuery query)
          Retrieves the value for the reference entityRelationship for the specified query.
 DepotEntityRelationship getEntityRelationship(String id)
          Retrieves the value for the reference entityRelationship for the specified qualifier attribute value.
 SimpleBooking getSimpleBooking(boolean idIsPersistent, String id)
          Retrieves the value for the reference simpleBooking for the specified qualifier attribute value.
<T extends SimpleBooking>
List<T>
getSimpleBooking(SimpleBookingQuery query)
          Retrieves the value for the reference simpleBooking for the specified query.
 SimpleBooking getSimpleBooking(String id)
          Retrieves the value for the reference simpleBooking for the specified qualifier attribute value.
 
Methods inherited from interface org.opencrx.kernel.depot1.cci2.Segment
getBooking, getCb, getDepotType, getEntity, getEntityRelationship, getSimpleBooking
 
Methods inherited from interface org.openmdx.base.jmi1.Segment
getExtent, getExtent, getExtent, getProvider
 
Methods inherited from interface org.openmdx.base.cci2.Segment
getDescription, getExtent, setDescription
 
Methods inherited from interface org.openmdx.base.cci2.ContextCapable
getContext
 
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 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
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.Auditee
getAudit, getAudit, getAudit
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Auditee
getAudit
 
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.Indexed
getIndexEntry, getIndexEntry, getIndexEntry, updateIndex
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Indexed
getIndexEntry
 
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
 

Method Detail

getBooking

<T extends SingleBooking> List<T> getBooking(SingleBookingQuery query)
Retrieves the value for the reference booking 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.

getBooking

SingleBooking getBooking(boolean idIsPersistent,
                         String id)
Retrieves the value for the reference booking for the specified qualifier attribute value.

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

getBooking

SingleBooking getBooking(String id)
Retrieves the value for the reference booking for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getBooking(false,id).

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

getCb

<T extends CompoundBooking> List<T> getCb(CompoundBookingQuery query)
Retrieves the value for the reference cb 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.

getCb

CompoundBooking getCb(boolean idIsPersistent,
                      String id)
Retrieves the value for the reference cb for the specified qualifier attribute value.

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

getCb

CompoundBooking getCb(String id)
Retrieves the value for the reference cb for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getCb(false,id).

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

getDepotType

<T extends DepotType> List<T> getDepotType(DepotTypeQuery query)
Retrieves the value for the reference depotType 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.

getDepotType

DepotType getDepotType(boolean idIsPersistent,
                       String id)
Retrieves the value for the reference depotType for the specified qualifier attribute value.

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

getDepotType

DepotType getDepotType(String id)
Retrieves the value for the reference depotType for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getDepotType(false,id).

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

addDepotType

void addDepotType(boolean idIsPersistent,
                  String id,
                  DepotType depotType)
Adds the specified element to the set of the values for the reference depotType.

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

Parameters:
idIsPersistent - true if id is persistent
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
depotType - The element to be appended.

getEntity

<T extends DepotEntity> List<T> getEntity(DepotEntityQuery query)
Retrieves the value for the reference entity 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.

getEntity

DepotEntity getEntity(boolean idIsPersistent,
                      String id)
Retrieves the value for the reference entity for the specified qualifier attribute value.

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

getEntity

DepotEntity getEntity(String id)
Retrieves the value for the reference entity for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getEntity(false,id).

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

addEntity

void addEntity(boolean idIsPersistent,
               String id,
               DepotEntity entity)
Adds the specified element to the set of the values for the reference entity.

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

Parameters:
idIsPersistent - true if id is persistent
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
entity - The element to be appended.

getEntityRelationship

<T extends DepotEntityRelationship> List<T> getEntityRelationship(DepotEntityRelationshipQuery query)
Retrieves the value for the reference entityRelationship 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.

getEntityRelationship

DepotEntityRelationship getEntityRelationship(boolean idIsPersistent,
                                              String id)
Retrieves the value for the reference entityRelationship for the specified qualifier attribute value.

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

getEntityRelationship

DepotEntityRelationship getEntityRelationship(String id)
Retrieves the value for the reference entityRelationship for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getEntityRelationship(false,id).

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

addEntityRelationship

void addEntityRelationship(boolean idIsPersistent,
                           String id,
                           DepotEntityRelationship entityRelationship)
Adds the specified element to the set of the values for the reference entityRelationship.

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

Parameters:
idIsPersistent - true if id is persistent
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
entityRelationship - The element to be appended.

getSimpleBooking

<T extends SimpleBooking> List<T> getSimpleBooking(SimpleBookingQuery query)
Retrieves the value for the reference simpleBooking 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.

getSimpleBooking

SimpleBooking getSimpleBooking(boolean idIsPersistent,
                               String id)
Retrieves the value for the reference simpleBooking for the specified qualifier attribute value.

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

getSimpleBooking

SimpleBooking getSimpleBooking(String id)
Retrieves the value for the reference simpleBooking for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getSimpleBooking(false,id).

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

addSimpleBooking

void addSimpleBooking(boolean idIsPersistent,
                      String id,
                      SimpleBooking simpleBooking)
Adds the specified element to the set of the values for the reference simpleBooking.

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

Parameters:
idIsPersistent - true if id is persistent
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
simpleBooking - 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.