|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.plasma.sdo.core.CoreProperty
public class CoreProperty
A representation of a Property in the type of a
data object.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
CoreProperty(CoreType type,
Property property,
CoreType containingType)
|
|
| Method Summary | |
|---|---|
static PlasmaProperty |
createInstanceProperty(java.lang.String name,
DataType dataType)
|
boolean |
equals(java.lang.Object other)
|
java.lang.Object |
get(Property property)
Returns the value of the specified instance property of this Property. |
Alias |
getAlias()
Returns the alias for this property if exists, or null if not exists |
java.util.List<java.lang.String> |
getAliasNames()
Returns a list of alias names for this Property. |
Concurrent |
getConcurrent()
Returns the concurrent information for this property if exists, or null if not exists |
Type |
getContainingType()
Returns the containing type of this Property. |
DataFlavor |
getDataFlavor()
For data type properties, returns the data flavor associated with the property data type. |
java.lang.Object |
getDefault()
Returns the default value this Property will have in a data object where the Property hasn't been set. |
java.util.List<Comment> |
getDescription()
|
java.lang.String |
getDescriptionText()
|
EnumerationConstraint |
getEnumerationConstraint()
Returns the enumeration constraint information for this property if exists, or null if not exists |
java.util.List |
getInstanceProperties()
Returns a read-only List of instance Properties available on this Property. |
Key |
getKey()
Returns the key information for this property if exists, or null if not exists |
java.lang.String |
getLocalName()
Returns the local name alias for this Property if exists, or otherwise the property name |
byte[] |
getLocalNameBytes()
Returns the local name of this Property as a byte array which may be cached or lazily cached on demand. |
long |
getMaxLength()
Returns the maximum length allowed this property, or -1 if no maximum length is defined. |
java.lang.String |
getName()
Returns the name of the Property. |
byte[] |
getNameBytes()
Returns the logical name of this Property as a byte array which may be cached or lazily cached on demand. |
Property |
getOpposite()
Returns the opposite Property if the Property is bi-directional or null otherwise. |
java.lang.String |
getPhysicalName()
Returns the physical name alias for this property if exists, or null if not exists |
byte[] |
getPhysicalNameBytes()
Returns the physical name alias of this Property as a byte array which may be cached or lazily cached on demand, or null if no physical alias name exists. |
Enumeration |
getRestriction()
|
Sort |
getSort()
Returns the sorting information for this property if exists, or null if not exists |
Temporal |
getTemporal()
Returns the temporal information for this property if exists, or null if not exists |
Type |
getType()
Returns the type of the Property. |
UniqueConstraint |
getUniqueConstraint()
Returns the unique constraint information for this property if exists, or null if not exists |
ValueConstraint |
getValueConstraint()
Returns the value constraint information for this property if exists, or null if not exists |
ValueSetConstraint |
getValueSetConstraint()
Returns the value-set constraint information for this property if exists, or null if not exists |
XmlProperty |
getXmlProperty()
Returns the XML property information for this property if exists, or null if not exists |
int |
hashCode()
|
boolean |
isConcurrent()
Returns true if this property is tagged as concurrent. |
boolean |
isConcurrent(ConcurrencyType type,
ConcurrentDataFlavor dataFlavor)
Returns true if this property is tagged as concurrent for the given concurrency type and data flavor. |
boolean |
isContainment()
Returns whether the Property is containment, i.e., whether it represents by-value composition. |
boolean |
isKey()
Returns true if the key information for this property if exists. |
boolean |
isKey(KeyType keyType)
Returns true if the key information for this property if exists and the key type is set to the given type. |
boolean |
isMany()
Returns whether the Property is many-valued. |
boolean |
isNullable()
Returns whether or not instances of this property can be set to null. |
boolean |
isOpenContent()
Returns whether or not this is an open content Property. |
boolean |
isReadOnly()
Returns true if values for this Property cannot be modified using the SDO APIs. |
boolean |
isXMLAttribute()
Returns true if this property is rendered within an XML document as an XML attribute. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CoreProperty(CoreType type,
Property property,
CoreType containingType)
| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object
public static PlasmaProperty createInstanceProperty(java.lang.String name,
DataType dataType)
public java.lang.String getName()
getName in interface Propertypublic DataFlavor getDataFlavor()
PlasmaProperty
getDataFlavor in interface PlasmaPropertypublic java.util.List<Comment> getDescription()
getDescription in interface PlasmaPropertypublic java.lang.String getDescriptionText()
getDescriptionText in interface PlasmaPropertypublic java.lang.String getPhysicalName()
PlasmaProperty
getPhysicalName in interface PlasmaPropertyAliaspublic byte[] getNameBytes()
Helps support Data Access Services for sparse,
distributed "cloud" data stores typically storing lexicographically
ordered row and column keys as uninterpreted arrays of bytes. Fast dynamic
construction of such keys is important as such services may necessarily construct
unique composite keys based in part on qualified or unqualified logical or physical
type names.
getNameBytes in interface PlasmaPropertypublic byte[] getPhysicalNameBytes()
Helps support Data Access Services for sparse,
distributed "cloud" data stores typically storing lexicographically
ordered row and column keys as uninterpreted arrays of bytes. Fast dynamic
construction of such keys is important as such services may necessarily construct
unique composite keys based in part on qualified or unqualified logical or physical
type names.
getPhysicalNameBytes in interface PlasmaPropertypublic java.lang.String getLocalName()
PlasmaProperty
getLocalName in interface PlasmaPropertyAliaspublic byte[] getLocalNameBytes()
Helps support Data Access Services for sparse,
distributed "cloud" data stores typically storing lexicographically
ordered row and column keys as uninterpreted arrays of bytes. Fast dynamic
construction of such keys is important as such services may necessarily construct
unique composite keys based in part on qualified or unqualified logical or physical
type names.
getLocalNameBytes in interface PlasmaPropertypublic Alias getAlias()
PlasmaProperty
getAlias in interface PlasmaPropertyAliaspublic Key getKey()
PlasmaProperty
getKey in interface PlasmaPropertyKeypublic boolean isKey()
PlasmaProperty
isKey in interface PlasmaPropertyKeypublic boolean isKey(KeyType keyType)
PlasmaProperty
isKey in interface PlasmaPropertykeyType - the key type
KeyTypepublic Concurrent getConcurrent()
PlasmaProperty
getConcurrent in interface PlasmaPropertyConcurrentpublic boolean isConcurrent()
PlasmaProperty
isConcurrent in interface PlasmaProperty
public boolean isConcurrent(ConcurrencyType type,
ConcurrentDataFlavor dataFlavor)
PlasmaProperty
isConcurrent in interface PlasmaPropertytype - the concurrency typedataFlavor - concurrency data flavor
public Temporal getTemporal()
PlasmaProperty
getTemporal in interface PlasmaPropertyTemporalpublic EnumerationConstraint getEnumerationConstraint()
PlasmaProperty
getEnumerationConstraint in interface PlasmaPropertyTemporalpublic ValueSetConstraint getValueSetConstraint()
PlasmaProperty
getValueSetConstraint in interface PlasmaPropertyValueSetConstraintpublic ValueConstraint getValueConstraint()
PlasmaProperty
getValueConstraint in interface PlasmaPropertyValueConstraintpublic Sort getSort()
PlasmaProperty
getSort in interface PlasmaPropertySequencepublic UniqueConstraint getUniqueConstraint()
PlasmaProperty
getUniqueConstraint in interface PlasmaPropertyValueConstraintpublic XmlProperty getXmlProperty()
PlasmaProperty
getXmlProperty in interface PlasmaPropertyXmlPropertypublic Enumeration getRestriction()
getRestriction in interface PlasmaPropertypublic long getMaxLength()
getMaxLength in interface PlasmaPropertypublic boolean isXMLAttribute()
PlasmaPropertynodeType is 'attribute'
and then 2.) on a simple algorithm based on the data type
and data flavor.
isXMLAttribute in interface PlasmaPropertyXmlProperty,
XmlNodeTypepublic java.lang.Object get(Property property)
get in interface Propertyproperty - one of the properties returned by getInstanceProperties().
3.6.7 Property Instance Properties
Property instances can themselves include open content, that is, extended metadata in the
form of instance properties. The list of such extensions is available by calling
Property.getInstanceProperties(). The values of these properties are available by calling
Property.get(Property). For more details, see Section 3.5.6.public java.util.List getInstanceProperties()
Property
This list includes, at a minimum, any open content properties (extensions) added to
the object before defining
the Property's Type. Implementations may, but are not required to in the 2.1 version
of SDO, provide additional instance properties.
getInstanceProperties in interface Propertypublic java.util.List<java.lang.String> getAliasNames()
getAliasNames in interface Propertypublic java.lang.Object getDefault()
data object where the Property hasn't been set.
getDefault in interface Propertypublic Property getOpposite()
Property
getOpposite in interface Propertypublic Type getType()
getType in interface Propertypublic boolean isContainment()
isContainment in interface Propertytrue if the Property is containment.public Type getContainingType()
getContainingType in interface PropertyType.getProperties()public boolean isMany()
isMany in interface Propertytrue if the Property is many-valued.public boolean isNullable()
isNullable in interface Propertypublic boolean isOpenContent()
isOpenContent in interface Propertypublic boolean isReadOnly()
isReadOnly in interface Propertypublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||