public class CoreProperty extends Object implements PlasmaProperty
type of a
data object.INSTANCE_PROPERTY_BOOLEAN_ISOPERATIONAL, INSTANCE_PROPERTY_BOOLEAN_ISUNIQUE, INSTANCE_PROPERTY_BYTES_LOCAL_NAME_BYTES, INSTANCE_PROPERTY_BYTES_NAME_BYTES, INSTANCE_PROPERTY_BYTES_PACKAGE_PHYSICAL_NAME_BYTES, INSTANCE_PROPERTY_BYTES_PHYSICAL_NAME_BYTES, INSTANCE_PROPERTY_BYTES_QUALIFIED_NAME_BYTES, INSTANCE_PROPERTY_BYTES_QUALIFIED_PHYSICAL_NAME_BYTES, INSTANCE_PROPERTY_BYTES_URI_BYTES, INSTANCE_PROPERTY_INT_MAXLENGTH, INSTANCE_PROPERTY_LONG_SNAPSHOT_TIMESTAMP, INSTANCE_PROPERTY_OBJECT_CONCURRENCY_USER, INSTANCE_PROPERTY_OBJECT_CONCURRENCY_VERSION, INSTANCE_PROPERTY_OBJECT_DESCRIPTION, INSTANCE_PROPERTY_OBJECT_IS_LOCKED_PROPERTY, INSTANCE_PROPERTY_OBJECT_LOCKING_TIMESTAMP, INSTANCE_PROPERTY_OBJECT_LOCKING_USER, INSTANCE_PROPERTY_OBJECT_ORIGINATION_TIMESTAMP, INSTANCE_PROPERTY_OBJECT_ORIGINATION_USER, INSTANCE_PROPERTY_OBJECT_PRIKEY_PROPERTIES, INSTANCE_PROPERTY_OBJECT_QUALIFIED_NAME, INSTANCE_PROPERTY_OBJECT_SNAPSHOT_DATE_PROPERTY, INSTANCE_PROPERTY_OBJECT_VISIBILITY, INSTANCE_PROPERTY_STRING_BUSINESS_NAME, INSTANCE_PROPERTY_STRING_LOCAL_NAME, INSTANCE_PROPERTY_STRING_NAMESPACE_PHYSICAL_NAME, INSTANCE_PROPERTY_STRING_NAMESPACE_URI, INSTANCE_PROPERTY_STRING_PHYSICAL_NAME, INSTANCE_PROPERTY_STRING_UUID| Constructor and Description |
|---|
CoreProperty(CoreType type,
Property property,
CoreType containingType) |
| Modifier and Type | Method and Description |
|---|---|
static PlasmaProperty |
createInstanceProperty(String name,
DataType dataType) |
boolean |
equals(Object other) |
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
|
List<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.
|
Object |
getDefault()
Returns the default value this Property will have in a
data object where the Property hasn't been set. |
Derivation |
getDerivation()
Returns the derivation information for this property if exists, or null
if not exists
|
PlasmaProperty |
getDerivationSupplier()
Returns the derivation supplier property for this property or null if not exists.
|
List<Comment> |
getDescription() |
String |
getDescriptionText() |
EnumerationConstraint |
getEnumerationConstraint()
Returns the enumeration constraint information for this property if exists, or null
if not exists
|
String |
getId()
Returns the unique id for the element within its meta data repository.
|
List |
getInstanceProperties() |
Key |
getKey()
Returns the key information for this property if exists, or null
if not exists
|
PlasmaProperty |
getKeySupplier()
Returns the key supplier property for this property or null if not exists.
|
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.
|
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() |
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.
|
String |
toString() |
public static PlasmaProperty createInstanceProperty(String name, DataType dataType)
public String getName()
public DataFlavor getDataFlavor()
PlasmaPropertygetDataFlavor in interface PlasmaPropertypublic List<Comment> getDescription()
getDescription in interface PlasmaPropertypublic String getDescriptionText()
getDescriptionText in interface PlasmaPropertypublic String getPhysicalName()
PlasmaPropertygetPhysicalName 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 String getLocalName()
PlasmaPropertygetLocalName 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()
PlasmaPropertygetAlias in interface PlasmaPropertyAliaspublic Key getKey()
PlasmaPropertygetKey in interface PlasmaPropertyKeypublic boolean isKey()
PlasmaPropertyisKey in interface PlasmaPropertyKeypublic boolean isKey(KeyType keyType)
PlasmaPropertyisKey in interface PlasmaPropertykeyType - the key typeKeyTypepublic PlasmaProperty getKeySupplier()
PlasmaPropertygetKeySupplier in interface PlasmaPropertypublic Concurrent getConcurrent()
PlasmaPropertygetConcurrent in interface PlasmaPropertyConcurrentpublic boolean isConcurrent()
PlasmaPropertyisConcurrent in interface PlasmaPropertypublic boolean isConcurrent(ConcurrencyType type, ConcurrentDataFlavor dataFlavor)
PlasmaPropertyisConcurrent in interface PlasmaPropertytype - the concurrency typedataFlavor - concurrency data flavorpublic Temporal getTemporal()
PlasmaPropertygetTemporal in interface PlasmaPropertyTemporalpublic EnumerationConstraint getEnumerationConstraint()
PlasmaPropertygetEnumerationConstraint in interface PlasmaPropertyTemporalpublic ValueSetConstraint getValueSetConstraint()
PlasmaPropertygetValueSetConstraint in interface PlasmaPropertyValueSetConstraintpublic ValueConstraint getValueConstraint()
PlasmaPropertygetValueConstraint in interface PlasmaPropertyValueConstraintpublic Sort getSort()
PlasmaPropertygetSort in interface PlasmaPropertySequencepublic UniqueConstraint getUniqueConstraint()
PlasmaPropertygetUniqueConstraint in interface PlasmaPropertyValueConstraintpublic XmlProperty getXmlProperty()
PlasmaPropertygetXmlProperty 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 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 List getInstanceProperties()
getInstanceProperties in interface Propertypublic List<String> getAliasNames()
getAliasNames in interface Propertypublic Object getDefault()
data object where the Property hasn't been set.getDefault in interface Propertypublic Property getOpposite()
getOpposite in interface Propertypublic Type getType()
public boolean isContainment()
isContainment in interface Propertytrue if the Property is containment.public Type getContainingType()
getContainingType in interface PropertyType.getProperties()public boolean isMany()
public boolean isNullable()
isNullable in interface Propertypublic boolean isOpenContent()
isOpenContent in interface Propertypublic boolean isReadOnly()
isReadOnly in interface Propertypublic Derivation getDerivation()
PlasmaPropertygetDerivation in interface PlasmaPropertypublic PlasmaProperty getDerivationSupplier()
PlasmaPropertygetDerivationSupplier in interface PlasmaPropertypublic String getId()
PlasmaPropertygetId in interface PlasmaPropertyCopyright © 2017. All rights reserved.