org.opencrx.kernel.base.jdo2
Class ReferenceProperty

java.lang.Object
  extended by org.oasisopen.jdo2.Identifiable
      extended by org.w3c.jdo2.AbstractObject
          extended by org.opencrx.kernel.base.jdo2.Property
              extended by org.opencrx.kernel.base.jdo2.ReferenceProperty
All Implemented Interfaces:
Serializable, Property, ReferenceProperty, SecureObject, BasicObject, ContextCapable, ExtentCapable, ViewCapable

public class ReferenceProperty
extends Property
implements ReferenceProperty

Class ReferenceProperty

See Also:
Serialized Form

Nested Class Summary
static class ReferenceProperty.Slice
          Slice object hold the ReferenceProperty's multivalued attributes
 
Nested classes/interfaces inherited from class org.opencrx.kernel.base.jdo2.Property
Property.Identity
 
Nested classes/interfaces inherited from class org.w3c.jdo2.AbstractObject
org.w3c.jdo2.AbstractObject.EmbeddedList<E>, org.w3c.jdo2.AbstractObject.EmbeddedSet<E>
 
Nested classes/interfaces inherited from interface org.opencrx.kernel.base.cci2.Property
Property.Identity
 
Field Summary
static List<String> CLASS
          Define the model class org::opencrx::kernel::base::ReferenceProperty
 
Fields inherited from class org.opencrx.kernel.base.jdo2.Property
BASE_CLASS
 
Constructor Summary
ReferenceProperty()
           
 
Method Summary
 BasicObject getReferenceValue()
          Retrieves the value for the reference referenceValue.
static Property.Identity newIdentity(Identity propertySet, QualifierType idType, String id)
           
protected  org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
           
protected  List<String> openmdxjdoGetClass()
          Retrieve the model class
protected  int openmdxjdoGetSize(int field)
           
protected  void openmdxjdoSetSize(int field, int size)
           
static Property.Identity openmdxjdoToIdentity(ObjectId objectId)
           
 void setReferenceValue(BasicObject referenceValue)
          Sets a new value for the reference referenceValue.
 
Methods inherited from class org.opencrx.kernel.base.jdo2.Property
addOwningGroup, addToPropertySet, addToPropertySet, checkPermissions, getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getContext, getCreatedAt, getCreatedBy, getDescription, getDomain, getIdentity, getModifiedAt, getModifiedBy, getName, getOwner, getOwningGroup, getOwningUser, getView, openmdxjdoGetObjectId, openmdxjdoGetSlices, removeAllOwningGroup, removeOwningGroup, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setDescription, setDomain, setName, setOwningUser, setOwningUser
 
Methods inherited from class org.w3c.jdo2.AbstractObject
openmdxjdoClassName, openmdxjdoGetIdentityBuilder, openmdxjdoGetList, openmdxjdoGetObjectsByParent, openmdxjdoGetSet, openmdxjdoGetSparseArray, openmdxjdoNewMap, openmdxjdoNewSlice, openmdxjdoSetArray, openmdxjdoSetCollection, openmdxjdoToArray, openmdxjdoToArray, openmdxjdoValidateElement
 
Methods inherited from class org.oasisopen.jdo2.Identifiable
jdoClass, modelClasses, openmdxjdoGetObject, openmdxjdoGetObjectById, openmdxjdoGetObjectId, openmdxjdoGetObjectSet, openmdxjdoNewObjectId, openmdxjdoNewObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Property
getDescription, getDomain, getName, setDescription, setDomain, setName
 
Methods inherited from interface org.opencrx.kernel.base.cci2.SecureObject
addOwningGroup, checkPermissions, getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getOwner, getOwningGroup, getOwningUser, removeAllOwningGroup, removeOwningGroup, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setOwningUser, setOwningUser
 
Methods inherited from interface org.openmdx.base.cci2.BasicObject
getCreatedAt, getCreatedBy, getModifiedAt, getModifiedBy
 
Methods inherited from interface org.openmdx.base.cci2.ContextCapable
getContext
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.compatibility.view1.cci2.ViewCapable
getView
 

Field Detail

CLASS

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

Constructor Detail

ReferenceProperty

public ReferenceProperty()
Method Detail

getReferenceValue

public BasicObject getReferenceValue()
Retrieves the value for the reference referenceValue.

Specified by:
getReferenceValue in interface ReferenceProperty
Returns:
The – possibly null – value for this reference.

setReferenceValue

public void setReferenceValue(BasicObject referenceValue)
Sets a new value for the reference referenceValue.

Specified by:
setReferenceValue in interface ReferenceProperty
Parameters:
referenceValue - The non-null new value for this reference.

openmdxjdoGetSize

protected int openmdxjdoGetSize(int field)
Overrides:
openmdxjdoGetSize in class Property

openmdxjdoSetSize

protected void openmdxjdoSetSize(int field,
                                 int size)
Overrides:
openmdxjdoSetSize in class Property

newSlice

protected org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
Overrides:
newSlice in class Property

openmdxjdoGetClass

protected List<String> openmdxjdoGetClass()
Retrieve the model class

Overrides:
openmdxjdoGetClass in class Property
Returns:
the model class
See Also:
ReferenceProperty.CLASS

newIdentity

public static Property.Identity newIdentity(Identity propertySet,
                                            QualifierType idType,
                                            String id)

openmdxjdoToIdentity

public static Property.Identity openmdxjdoToIdentity(ObjectId objectId)


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