SDO API

commonj.sdo
Interface Property


public interface Property

A representation of a Property in the type of a data object.


Method Summary
 java.util.List getAliasNames()
          Return a list of alias names for this Property.
 Type getContainingType()
          Returns the containing type of this Property.
 java.lang.Object getDefault()
          Returns the default value this Property will have in a data object where the Property hasn't been set.
 java.lang.String getName()
          Returns the name of the Property.
 Property getOpposite()
          Returns the opposite Property if the Property is bi-directional or null otherwise.
 Type getType()
          Returns the type of the Property.
 boolean isContainment()
          Returns whether the Property is containment, i.e., whether it represents by-value composition.
 boolean isMany()
          Returns whether the Property is many-valued.
 boolean isReadOnly()
          Returns true if values for this Property cannot be modified using the SDO APIs.
 

Method Detail

getName

java.lang.String getName()
Returns the name of the Property.

Returns:
the Property name.

getType

Type getType()
Returns the type of the Property.

Returns:
the Property type.

isMany

boolean isMany()
Returns whether the Property is many-valued.

Returns:
true if the Property is many-valued.

isContainment

boolean isContainment()
Returns whether the Property is containment, i.e., whether it represents by-value composition.

Returns:
true if the Property is containment.

getContainingType

Type getContainingType()
Returns the containing type of this Property.

Returns:
the Property's containing type.
See Also:
Type.getProperties()

getDefault

java.lang.Object getDefault()
Returns the default value this Property will have in a data object where the Property hasn't been set.

Returns:
the default value.

isReadOnly

boolean isReadOnly()
Returns true if values for this Property cannot be modified using the SDO APIs. When true, DataObject.set(Property property, Object value) throws an exception. Values may change due to other factors, such as services operating on DataObjects.

Returns:
true if values for this Property cannot be modified.

getOpposite

Property getOpposite()
Returns the opposite Property if the Property is bi-directional or null otherwise.

Returns:
the opposite Property if the Property is bi-directional or null

getAliasNames

java.util.List getAliasNames()
Return a list of alias names for this Property.

Returns:
a list of alias names for this Property.

SDO API

-