org.opencrx.kernel.building1.jmi1
Interface AbstractBuildingUnit

All Superinterfaces:
AbstractBuildingUnit, Pictured, RefBaseObject, RefFeatured, RefObject, RefObject_1_0
All Known Subinterfaces:
Building, BuildingComplex, BuildingUnit

public interface AbstractBuildingUnit
extends AbstractBuildingUnit, Pictured

Abstract class AbstractBuildingUnit

isFrozenisFrozen


Method Summary
 void addFacility(boolean idIsPersistent, String id, Facility facility)
          Adds the specified element to the set of the values for the reference facility.
 void addFacility(Facility facility)
          Adds the specified element to the set of the values for the reference facility using an implementation-specific, reassignable qualifier.
 void addFacility(String id, Facility facility)
          Adds the specified element to the set of the values for the reference facility using a reassignable qualifier.
<T extends Addressable>
List<T>
getAssignedAddress(AddressableQuery query)
          Retrieves the value for the reference assignedAddress for the specified query.
 Addressable getAssignedAddress(boolean idIsPersistent, String id)
          Retrieves the value for the reference assignedAddress for the specified qualifier attribute value.
 Addressable getAssignedAddress(String id)
          Retrieves the value for the reference assignedAddress for the specified qualifier attribute value.
 Depot getDepot()
          Retrieves the value for the reference depot.
 Facility getFacility(boolean idIsPersistent, String id)
          Retrieves the value for the reference facility for the specified qualifier attribute value.
<T extends Facility>
List<T>
getFacility(FacilityQuery query)
          Retrieves the value for the reference facility for the specified query.
 Facility getFacility(String id)
          Retrieves the value for the reference facility for the specified qualifier attribute value.
 void setDepot(Depot depot)
          Sets a new value for the reference depot.
 
Methods inherited from interface org.opencrx.kernel.building1.cci2.AbstractBuildingUnit
getAssignedAddress, getDescription, getFacility, getName, getSizeInCubicMeter, getSizeInSquareMeter, setDescription, setName, setSizeInCubicMeter, setSizeInSquareMeter
 
Methods inherited from interface org.opencrx.kernel.generic.jmi1.Pictured
getPicture, setPicture
 
Methods inherited from interface org.opencrx.kernel.generic.cci2.Pictured
getPictureContent, getPictureContentMimeType, getPictureContentName
 
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

getAssignedAddress

<T extends Addressable> List<T> getAssignedAddress(AddressableQuery query)
Retrieves the value for the reference assignedAddress 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.

getAssignedAddress

Addressable getAssignedAddress(boolean idIsPersistent,
                               String id)
Retrieves the value for the reference assignedAddress 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

getAssignedAddress

Addressable getAssignedAddress(String id)
Retrieves the value for the reference assignedAddress for the specified qualifier attribute value.

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

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

getDepot

Depot getDepot()
Retrieves the value for the reference depot.

Specified by:
getDepot in interface AbstractBuildingUnit
Returns:
The – possibly null – value for this reference.

setDepot

void setDepot(Depot depot)
Sets a new value for the reference depot.

Specified by:
setDepot in interface AbstractBuildingUnit
Parameters:
depot - The new – possibly null – value for this reference.

getFacility

<T extends Facility> List<T> getFacility(FacilityQuery query)
Retrieves the value for the reference facility 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.

getFacility

Facility getFacility(boolean idIsPersistent,
                     String id)
Retrieves the value for the reference facility 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

getFacility

Facility getFacility(String id)
Retrieves the value for the reference facility for the specified qualifier attribute value.

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

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

addFacility

void addFacility(boolean idIsPersistent,
                 String id,
                 Facility facility)
Adds the specified element to the set of the values for the reference facility.

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.
facility - The element to be appended.

addFacility

void addFacility(String id,
                 Facility facility)
Adds the specified element to the set of the values for the reference facility using a reassignable qualifier.

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

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

addFacility

void addFacility(Facility facility)
Adds the specified element to the set of the values for the reference facility using an implementation-specific, reassignable qualifier.

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

Parameters:
facility - The element to be appended.


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