org.opencrx.kernel.building1.jdo2
Class BuildingUnit

java.lang.Object
  extended by org.oasisopen.jdo2.Identifiable
      extended by org.w3c.jdo2.AbstractObject
          extended by org.opencrx.kernel.building1.jdo2.BuildingUnit
All Implemented Interfaces:
Serializable, AlertSender, Auditee, Cloneable, Importer, Indexed, SecureObject, SubscriptionTarget, XmlExporter, AbstractBuildingUnit, BuildingUnit, CrxObject, Pictured, org.openmdx.base.cci2.BasicObject, org.openmdx.base.cci2.ContextCapable, org.openmdx.base.cci2.ExtentCapable, org.openmdx.compatibility.view1.cci2.ViewCapable

public class BuildingUnit
extends org.w3c.jdo2.AbstractObject
implements BuildingUnit

Class BuildingUnit

See Also:
Serialized Form

Nested Class Summary
static class BuildingUnit.Identity
          The object's application identity
static class BuildingUnit.Slice
           
 
Nested classes/interfaces inherited from class org.w3c.jdo2.AbstractObject
org.w3c.jdo2.AbstractObject.BLOB, org.w3c.jdo2.AbstractObject.CLOB, org.w3c.jdo2.AbstractObject.EmbeddedList<E>, org.w3c.jdo2.AbstractObject.EmbeddedSet<E>
 
Field Summary
static List<String> BASE_CLASS
          Define this class as base class
static List<String> CLASS
          Define the model class org::opencrx::kernel::building1::BuildingUnit
 
Constructor Summary
BuildingUnit()
           
 
Method Summary
<T extends ModifySecureObjectResult>
T
addOwningGroup(PrincipalGroup group, short mode)
           
<T extends org.openmdx.base.cci2.Void>
T
addSubscription()
           
<T extends org.openmdx.base.cci2.Void>
T
addSubscriptionForParent()
           
<T extends CloneResult>
T
clone_(String referenceFilter)
           
<T extends ExportResult>
T
exportXml(String attributeFilter, String referenceFilter)
           
 org.openmdx.base.cci2.BasicObject getAccessGrantedByParent()
          Retrieves the value for the reference accessGrantedByParent.
 short getAccessLevelBrowse()
          Retrieves the value for the attribute accessLevelBrowse.
 short getAccessLevelDelete()
          Retrieves the value for the attribute accessLevelDelete.
 short getAccessLevelUpdate()
          Retrieves the value for the attribute accessLevelUpdate.
<T extends AdditionalExternalLink>
Collection<T>
getAdditionalExternalLink()
          Retrieves a set containing all the elements for the reference additionalExternalLink.
<T extends Addressable>
Set<T>
getAssignedAddress()
          Retrieves a set containing all the elements for the reference assignedAddress.
<T extends DocumentAttachment>
Collection<T>
getAttachedDocument()
          Retrieves a set containing all the elements for the reference attachedDocument.
<T extends AuditEntry>
Collection<T>
getAudit()
          Retrieves a set containing all the elements for the reference audit.
 short getBuildingUnitType()
          Retrieves the value for the attribute buildingUnitType.
 List<String> getCategory()
           
 Date getCreatedAt()
          Retrieves the value for the attribute createdAt.
 Set<String> getCreatedBy()
           
 Depot getDepot()
          Retrieves the value for the reference depot.
 String getDescription()
           
 String getDisabledReason()
           
 List<URI> getExternalLink()
           
<T extends Facility>
Collection<T>
getFacility()
          Retrieves a set containing all the elements for the reference facility.
 XRI getIdentity()
          Retrieves the value for the derived attribute identity.
<T extends IndexEntry>
Collection<T>
getIndexEntry()
          Retrieves a set containing all the elements for the reference indexEntry.
<T extends Media>
Collection<T>
getMedia()
          Retrieves a set containing all the elements for the reference media.
 Date getModifiedAt()
          Retrieves the value for the attribute modifiedAt.
 Set<String> getModifiedBy()
           
 String getName()
          Retrieves the value for the attribute name.
<T extends Note>
Collection<T>
getNote()
          Retrieves a set containing all the elements for the reference note.
 List<String> getOwner()
           
<T extends PrincipalGroup>
List<T>
getOwningGroup()
          Retrieves the Collection of objects referenced by owningGroup.
 User getOwningUser()
          Retrieves the value for the reference owningUser.
 BuildingUnit getParent()
          Retrieves the value for the reference parent.
 Media getPicture()
          Retrieves the value for the reference picture.
 byte[] getPictureContent()
           
 String getPictureContentMimeType()
           
 String getPictureContentName()
           
<T extends PropertySet>
Collection<T>
getPropertySet()
          Retrieves a set containing all the elements for the reference propertySet.
<T extends PropertySetEntry>
Collection<T>
getPropertySetEntry()
          Retrieves a set containing all the elements for the reference propertySetEntry.
<T extends Rating>
Collection<T>
getRating()
          Retrieves a set containing all the elements for the reference rating.
 BigDecimal getSizeInCubicMeter()
           
 BigDecimal getSizeInSquareMeter()
           
 List<Boolean> getUserBoolean4()
           
 Short getUserCode0()
           
 Short getUserCode1()
           
 Short getUserCode2()
           
 Short getUserCode3()
           
 List<Short> getUserCode4()
           
 javax.xml.datatype.XMLGregorianCalendar getUserDate0()
           
 javax.xml.datatype.XMLGregorianCalendar getUserDate1()
           
 javax.xml.datatype.XMLGregorianCalendar getUserDate2()
           
 javax.xml.datatype.XMLGregorianCalendar getUserDate3()
           
 List<javax.xml.datatype.XMLGregorianCalendar> getUserDate4()
           
 Date getUserDateTime0()
           
 Date getUserDateTime1()
           
 Date getUserDateTime2()
           
 Date getUserDateTime3()
           
 List<Date> getUserDateTime4()
           
 BigDecimal getUserNumber0()
           
 BigDecimal getUserNumber1()
           
 BigDecimal getUserNumber2()
           
 BigDecimal getUserNumber3()
           
 List<BigDecimal> getUserNumber4()
           
 String getUserString0()
           
 String getUserString1()
           
 String getUserString2()
           
 String getUserString3()
           
 List<String> getUserString4()
           
<T extends org.openmdx.compatibility.view1.cci2.View>
Collection<T>
getView()
          Retrieves a set containing all the elements for the reference view.
<T extends ImportResult>
T
importItem(byte[] item, String itemMimeType, String itemName, short locale)
           
 boolean isDisabled()
          Retrieves the value for the attribute disabled.
 Boolean isUserBoolean0()
           
 Boolean isUserBoolean1()
           
 Boolean isUserBoolean2()
           
 Boolean isUserBoolean3()
           
static BuildingUnit.Identity newIdentity(Building.Identity building, boolean idIsPersistent, String id)
           
protected  org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
           
protected  List<String> openmdxjdoGetClass()
          Retrieve the model class
protected  String openmdxjdoGetObjectId()
          Retrieve the object's JDO identity key
static CloseableCollection<BuildingUnit> openmdxjdoGetObjectsByParent(Building building)
          Navigate through an object's composite association
protected  int openmdxjdoGetSize(int field)
           
protected
<E extends org.w3c.jdo2.AbstractObject.Slice>
SortedMap<Integer,E>
openmdxjdoGetSlices()
           
protected  void openmdxjdoSetSize(int field, int size)
           
<T extends ModifySecureObjectResult>
T
removeAllOwningGroup(short mode)
           
<T extends ModifySecureObjectResult>
T
removeOwningGroup(PrincipalGroup group, short mode)
           
<T extends org.openmdx.base.cci2.Void>
T
removeSubscription()
           
<T extends org.openmdx.base.cci2.Void>
T
removeSubscriptionForParent()
           
<T extends org.openmdx.base.cci2.Void>
T
sendAlert(String description, short importance, String name, org.openmdx.base.cci2.BasicObject reference, String toUsers)
           
<T extends ModifySecureObjectResult>
T
setAccessLevel(short accessLevelBrowse, short accessLevelDelete, short accessLevelUpdate, short mode)
           
 void setAccessLevelBrowse(short accessLevelBrowse)
          Sets a new value for the attribute accessLevelBrowse.
 void setAccessLevelDelete(short accessLevelDelete)
          Sets a new value for the attribute accessLevelDelete.
 void setAccessLevelUpdate(short accessLevelUpdate)
          Sets a new value for the attribute accessLevelUpdate.
 void setBuilding(Building building)
          Sets a new value for the reference building.
 void setBuilding(Building building, boolean idIsPersistent, String id)
          Set the object's composite association org:opencrx:kernel:building1:BuildingContainsBuildingUnit.
 void setBuildingUnitType(short buildingUnitType)
          Sets a new value for the attribute buildingUnitType.
 void setCategory(String... category)
           This method is equivalent to
 void setDepot(Depot depot)
          Sets a new value for the reference depot.
 void setDescription(String description)
          Sets a new value for the attribute description.
 void setDisabled(boolean disabled)
          Sets a new value for the attribute disabled.
 void setDisabledReason(String disabledReason)
          Sets a new value for the attribute disabledReason.
 void setExternalLink(URI... externalLink)
           This method is equivalent to
 void setName(String name)
          Sets a new value for the attribute name.
<T extends ModifySecureObjectResult>
T
setOwningUser(short mode, User user)
           
 void setOwningUser(User owningUser)
          Sets a new value for the reference owningUser.
 void setParent(BuildingUnit parent)
          Sets a new value for the reference parent.
 void setPicture(Media picture)
          Sets a new value for the reference picture.
 void setSizeInCubicMeter(BigDecimal sizeInCubicMeter)
          Sets a new value for the attribute sizeInCubicMeter.
 void setSizeInSquareMeter(BigDecimal sizeInSquareMeter)
          Sets a new value for the attribute sizeInSquareMeter.
 void setUserBoolean0(Boolean userBoolean0)
          Sets a new value for the attribute userBoolean0.
 void setUserBoolean1(Boolean userBoolean1)
          Sets a new value for the attribute userBoolean1.
 void setUserBoolean2(Boolean userBoolean2)
          Sets a new value for the attribute userBoolean2.
 void setUserBoolean3(Boolean userBoolean3)
          Sets a new value for the attribute userBoolean3.
 void setUserBoolean4(boolean... userBoolean4)
           This method is equivalent to
 void setUserCode0(Short userCode0)
          Sets a new value for the attribute userCode0.
 void setUserCode1(Short userCode1)
          Sets a new value for the attribute userCode1.
 void setUserCode2(Short userCode2)
          Sets a new value for the attribute userCode2.
 void setUserCode3(Short userCode3)
          Sets a new value for the attribute userCode3.
 void setUserCode4(short... userCode4)
           This method is equivalent to
 void setUserDate0(javax.xml.datatype.XMLGregorianCalendar userDate0)
          Sets a new value for the attribute userDate0.
 void setUserDate1(javax.xml.datatype.XMLGregorianCalendar userDate1)
          Sets a new value for the attribute userDate1.
 void setUserDate2(javax.xml.datatype.XMLGregorianCalendar userDate2)
          Sets a new value for the attribute userDate2.
 void setUserDate3(javax.xml.datatype.XMLGregorianCalendar userDate3)
          Sets a new value for the attribute userDate3.
 void setUserDate4(javax.xml.datatype.XMLGregorianCalendar... userDate4)
           This method is equivalent to
 void setUserDateTime0(Date userDateTime0)
          Sets a new value for the attribute userDateTime0.
 void setUserDateTime1(Date userDateTime1)
          Sets a new value for the attribute userDateTime1.
 void setUserDateTime2(Date userDateTime2)
          Sets a new value for the attribute userDateTime2.
 void setUserDateTime3(Date userDateTime3)
          Sets a new value for the attribute userDateTime3.
 void setUserDateTime4(Date... userDateTime4)
           This method is equivalent to
 void setUserNumber0(BigDecimal userNumber0)
          Sets a new value for the attribute userNumber0.
 void setUserNumber1(BigDecimal userNumber1)
          Sets a new value for the attribute userNumber1.
 void setUserNumber2(BigDecimal userNumber2)
          Sets a new value for the attribute userNumber2.
 void setUserNumber3(BigDecimal userNumber3)
          Sets a new value for the attribute userNumber3.
 void setUserNumber4(BigDecimal... userNumber4)
           This method is equivalent to
 void setUserString0(String userString0)
          Sets a new value for the attribute userString0.
 void setUserString1(String userString1)
          Sets a new value for the attribute userString1.
 void setUserString2(String userString2)
          Sets a new value for the attribute userString2.
 void setUserString3(String userString3)
          Sets a new value for the attribute userString3.
 void setUserString4(String... userString4)
           This method is equivalent to
<T extends org.openmdx.base.cci2.Void>
T
updateIndex()
           
 
Methods inherited from class org.w3c.jdo2.AbstractObject
openmdxjdoClassName, openmdxjdoGetIdentityBuilder, openmdxjdoGetList, openmdxjdoGetObjectsByParent, openmdxjdoGetSet, openmdxjdoGetSparseArray, openmdxjdoNewSlice, openmdxjdoSetArray, openmdxjdoSetCollection, openmdxjdoToArray, openmdxjdoToArray, openmdxjdoValidateElement
 
Methods inherited from class org.oasisopen.jdo2.Identifiable
openmdxjdoGetIdentity, openmdxjdoGetIdentity, openmdxjdoGetObject, openmdxjdoGetObjectById, openmdxjdoGetObjectId, openmdxjdoGetObjectSet, openmdxjdoNewObjectId, openmdxjdoNewObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS

public static final List<String> CLASS
Define the model class org::opencrx::kernel::building1::BuildingUnit


BASE_CLASS

public static final List<String> BASE_CLASS
Define this class as base class

See Also:
BuildingUnit.CLASS
Constructor Detail

BuildingUnit

public BuildingUnit()
Method Detail

openmdxjdoGetObjectId

protected String openmdxjdoGetObjectId()
Retrieve the object's JDO identity key

Specified by:
openmdxjdoGetObjectId in class org.oasisopen.jdo2.Identifiable
Returns:
the value of the object's JDO identity key

openmdxjdoGetSlices

protected final <E extends org.w3c.jdo2.AbstractObject.Slice> SortedMap<Integer,E> openmdxjdoGetSlices()
Overrides:
openmdxjdoGetSlices in class org.w3c.jdo2.AbstractObject

getAccessLevelDelete

public short getAccessLevelDelete()
Retrieves the value for the attribute accessLevelDelete.

Specified by:
getAccessLevelDelete in interface SecureObject
Returns:
The non-null value for attribute accessLevelDelete.

setAccessLevelDelete

public void setAccessLevelDelete(short accessLevelDelete)
Sets a new value for the attribute accessLevelDelete.

Specified by:
setAccessLevelDelete in interface SecureObject
Parameters:
accessLevelDelete - The non-null new value for attribute accessLevelDelete.

getPictureContentMimeType

public final String getPictureContentMimeType()
Specified by:
getPictureContentMimeType in interface Pictured
Returns:
The possibly null value for attribute pictureContentMimeType.

exportXml

public <T extends ExportResult> T exportXml(String attributeFilter,
                                            String referenceFilter)
                                 throws RefException
Specified by:
exportXml in interface XmlExporter
Throws:
RefException

getUserString4

public final List<String> getUserString4()
Specified by:
getUserString4 in interface CrxObject
Returns:
A list containing all elements for this attribute.

setUserString4

public void setUserString4(String... userString4)

This method is equivalent to

   list.clear();
   for(java.lang.String e : attributeName){
     list.add(e);
   }
 

Specified by:
setUserString4 in interface CrxObject
Parameters:
userString4 - value(s) to be added to userString4

getModifiedBy

public final Set<String> getModifiedBy()
Specified by:
getModifiedBy in interface org.openmdx.base.cci2.BasicObject
Returns:
A set containing all elements for this attribute.

getUserString0

public final String getUserString0()
Specified by:
getUserString0 in interface CrxObject
Returns:
The possibly null value for attribute userString0.

setUserString0

public void setUserString0(String userString0)
Sets a new value for the attribute userString0.

Specified by:
setUserString0 in interface CrxObject
Parameters:
userString0 - The possibly null new value for attribute userString0.

getUserString1

public final String getUserString1()
Specified by:
getUserString1 in interface CrxObject
Returns:
The possibly null value for attribute userString1.

setUserString1

public void setUserString1(String userString1)
Sets a new value for the attribute userString1.

Specified by:
setUserString1 in interface CrxObject
Parameters:
userString1 - The possibly null new value for attribute userString1.

getUserString2

public final String getUserString2()
Specified by:
getUserString2 in interface CrxObject
Returns:
The possibly null value for attribute userString2.

setUserString2

public void setUserString2(String userString2)
Sets a new value for the attribute userString2.

Specified by:
setUserString2 in interface CrxObject
Parameters:
userString2 - The possibly null new value for attribute userString2.

getUserString3

public final String getUserString3()
Specified by:
getUserString3 in interface CrxObject
Returns:
The possibly null value for attribute userString3.

setUserString3

public void setUserString3(String userString3)
Sets a new value for the attribute userString3.

Specified by:
setUserString3 in interface CrxObject
Parameters:
userString3 - The possibly null new value for attribute userString3.

getPropertySetEntry

public <T extends PropertySetEntry> Collection<T> getPropertySetEntry()
Retrieves a set containing all the elements for the reference propertySetEntry.

Specified by:
getPropertySetEntry in interface CrxObject
Returns:
A set containing all the elements for this reference.

getAccessLevelBrowse

public short getAccessLevelBrowse()
Retrieves the value for the attribute accessLevelBrowse.

Specified by:
getAccessLevelBrowse in interface SecureObject
Returns:
The non-null value for attribute accessLevelBrowse.

setAccessLevelBrowse

public void setAccessLevelBrowse(short accessLevelBrowse)
Sets a new value for the attribute accessLevelBrowse.

Specified by:
setAccessLevelBrowse in interface SecureObject
Parameters:
accessLevelBrowse - The non-null new value for attribute accessLevelBrowse.

addSubscriptionForParent

public <T extends org.openmdx.base.cci2.Void> T addSubscriptionForParent()
                                                              throws RefException
Specified by:
addSubscriptionForParent in interface SubscriptionTarget
Throws:
RefException

getPictureContent

public final byte[] getPictureContent()
Specified by:
getPictureContent in interface Pictured
Returns:
The possibly null value for attribute pictureContent.

getAdditionalExternalLink

public <T extends AdditionalExternalLink> Collection<T> getAdditionalExternalLink()
Retrieves a set containing all the elements for the reference additionalExternalLink.

Specified by:
getAdditionalExternalLink in interface CrxObject
Returns:
A set containing all the elements for this reference.

getDescription

public final String getDescription()
Specified by:
getDescription in interface AbstractBuildingUnit
Returns:
The possibly null value for attribute description.

setDescription

public void setDescription(String description)
Sets a new value for the attribute description.

Specified by:
setDescription in interface AbstractBuildingUnit
Parameters:
description - The possibly null new value for attribute description.

removeAllOwningGroup

public <T extends ModifySecureObjectResult> T removeAllOwningGroup(short mode)
                                                        throws RefException
Specified by:
removeAllOwningGroup in interface SecureObject
Throws:
RefException

addSubscription

public <T extends org.openmdx.base.cci2.Void> T addSubscription()
                                                     throws RefException
Specified by:
addSubscription in interface SubscriptionTarget
Throws:
RefException

isUserBoolean0

public final Boolean isUserBoolean0()
Specified by:
isUserBoolean0 in interface CrxObject
Returns:
The possibly null value for attribute userBoolean0.

setUserBoolean0

public void setUserBoolean0(Boolean userBoolean0)
Sets a new value for the attribute userBoolean0.

Specified by:
setUserBoolean0 in interface CrxObject
Parameters:
userBoolean0 - The possibly null new value for attribute userBoolean0.

getUserDateTime4

public final List<Date> getUserDateTime4()
Specified by:
getUserDateTime4 in interface CrxObject
Returns:
A list containing all elements for this attribute.

setUserDateTime4

public void setUserDateTime4(Date... userDateTime4)

This method is equivalent to

   list.clear();
   for(java.util.Date e : attributeName){
     list.add(e);
   }
 

Specified by: