|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.plasma.sdo.core.CoreType
public class CoreType
A representation of the type of a property or
a data object.
| Constructor Summary | |
|---|---|
CoreType(String uri,
String typeName)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
List<Property> |
findProperties(KeyType keyType)
Returns the declared property from this type and its base types tagged with the given key type. |
Property |
findProperty(ConcurrencyType concurrencyType,
ConcurrentDataFlavor dataFlavor)
Returns the declared property from this type and its base types tagged with the given concurrency type and data flavor. |
Property |
findProperty(KeyType keyType)
Returns the declared property from this type and its base types tagged with the given key type. |
Property |
findProperty(String propertyName)
Returns the declared property from this type and its base types with the given property name, or null if not exists |
Object |
get(Property property)
Returns the value of the specified instance property of this Type. |
Alias |
getAlias()
Returns the alias for this type |
List<String> |
getAliasNames()
Return a list of alias names for this Type. |
List<Type> |
getBaseTypes()
Returns the List of immediate base Types for this Type, or an empty list if there are no base Types. |
Classifier |
getClassifier()
|
List<Property> |
getDeclaredProperties()
Returns the Properties declared in this Type as opposed to those declared in base Types. |
List<Property> |
getDeclaredPropertiesSorted()
Returns an alphabetically sorted list of the Properties declared in this Type as opposed to those declared in base Types. |
List<Comment> |
getDescription()
|
String |
getDescriptionText()
|
Class<?> |
getInstanceClass()
Returns the Java class that this type represents or the generic data object implementation class if no provisioned implementation class is found. |
List<Property> |
getInstanceProperties()
Returns a read-only List of instance Properties available on this Type. |
String |
getLocalName()
Returns the local name alias of this Type as a string. |
byte[] |
getLocalNameBytes()
Returns the local name of this Type as a byte array which may be cached or lazily cached on demand. |
String |
getName()
Returns the name of the type. |
byte[] |
getNameBytes()
Returns the name of this Type as a byte array which may be cached or lazily cached on demand. |
String |
getPackageName()
Returns the logical name of the model package (if any) associated with this Type as a string, or null if no package exists. |
String |
getPackagePhysicalName()
Returns the physical name alias of the model package (if any) associated with this Type as a string, or null if no physical name alias exists. |
String |
getPhysicalName()
Return the physical name for this type or null if no physical alias name exists. |
byte[] |
getPhysicalNameBytes()
Returns the physical name alias of this Type as a byte array which may be cached or lazily cached on demand, or null if no physical alias name exists. |
List<Property> |
getProperties()
Returns the List of the Properties of this type and
all base types. |
Property |
getProperty(String propertyName)
Returns from all the Properties of this type, the
property with the specified name. |
QName |
getQualifiedName()
Return the namespace URI qualified name for this type. |
byte[] |
getQualifiedNameBytes()
Returns the namespace qualified logical name of this Type as a byte array which may be cached or lazily cached on demand. |
int |
getQualifiedNameHashCode()
Returns a qualified logical-name hash code for this type based on the |
QName |
getQualifiedPhysicalName()
Return the namespace qualified physical name for this type or null if no physical alias name exists. |
byte[] |
getQualifiedPhysicalNameBytes()
Returns the namespace qualified physical name of this Type as a byte array which may be cached or lazily cached on demand, or null if no physical alias name exists. |
List<Type> |
getSubTypes()
Returns a list of types which specialize or inherit from this type. |
String |
getURI()
Returns the namespace URI of the type. |
byte[] |
getURIBytes()
Returns the URI of this Type as a byte array which may be cached or lazily cached on demand. |
int |
hashCode()
|
boolean |
isAbstract()
Indicates if this Type is abstract. |
boolean |
isBaseType(PlasmaType other)
Returns true if the given type is part of the (base type) ancestry for this type. |
boolean |
isDataType()
Indicates if this Type specifies DataTypes (true) or DataObjects (false). |
boolean |
isInstance(Object object)
Returns whether the specified object is an instance of this type. |
boolean |
isOpen()
Indicates if this Type allows any form of open content. |
boolean |
isRelation(PlasmaType other,
AssociationPath relationPath)
Returns true if the given type is linked or related to this type across any number of traversals or hops as qualified by the given relation path type. |
boolean |
isSequenced()
Indicates if this Type specifies Sequenced DataObjects. |
boolean |
isSubType(PlasmaType other)
Returns true if the given type is a specialization or inherits from this type. |
List<Object> |
search(Property property)
Collects and returns all values from this type and its base types mapped to the given instance property. |
Class<?> |
toDataTypeInstanceClass(DataType dataType)
Returns a Java primitive wrapper class for the given SDO data-type (as per the SDO Specification 2.10 Section 8.1). |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CoreType(String uri,
String typeName)
| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectpublic String toString()
toString in class Objectpublic String getName()
getName in interface Typepublic 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 PlasmaTypepublic QName getQualifiedName()
getQualifiedName in interface PlasmaTypepublic byte[] getQualifiedNameBytes()
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.
getQualifiedNameBytes in interface PlasmaTypepublic QName getQualifiedPhysicalName()
getQualifiedPhysicalName in interface PlasmaTypepublic int getQualifiedNameHashCode()
getQualifiedNameHashCode in interface PlasmaTypepublic byte[] getQualifiedPhysicalNameBytes()
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.
getQualifiedPhysicalNameBytes in interface PlasmaTypepublic String getURI()
getURI in interface Typepublic byte[] getURIBytes()
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.
getURIBytes in interface PlasmaTypepublic String getPhysicalName()
getPhysicalName in interface PlasmaTypepublic 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 PlasmaTypepublic String getLocalName()
PlasmaType
getLocalName in interface PlasmaTypepublic 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 PlasmaTypepublic String getPackageName()
getPackageName in interface PlasmaTypepublic String getPackagePhysicalName()
getPackagePhysicalName in interface PlasmaTypepublic List<Comment> getDescription()
getDescription in interface PlasmaTypepublic String getDescriptionText()
getDescriptionText in interface PlasmaTypepublic Alias getAlias()
PlasmaType
getAlias in interface PlasmaTypepublic Classifier getClassifier()
getClassifier in interface PlasmaTypepublic boolean isAbstract()
isAbstract in interface Typepublic boolean isDataType()
isInstance(object) && !isDataType() implies DataObject.class.isInstance(object) returns true.
isDataType in interface Typepublic List<String> getAliasNames()
getAliasNames in interface Typepublic List<Type> getBaseTypes()
getBaseTypes in interface Typepublic boolean isBaseType(PlasmaType other)
isBaseType in interface PlasmaTypeother - the base type candidate
public List<Type> getSubTypes()
getSubTypes in interface PlasmaTypepublic boolean isSubType(PlasmaType other)
isSubType in interface PlasmaTypeother - the sub type candidate
public List<Property> getDeclaredProperties()
getDeclaredProperties in interface Typepublic List<Property> getDeclaredPropertiesSorted()
getDeclaredPropertiesSorted in interface PlasmaTypepublic List<Property> getInstanceProperties()
Type
This list includes, at a minimum, any open content properties (extensions) added to
the object before defining
the Type's Type. Implementations may, but are not required to in the 2.1 version
of SDO, provide additional instance properties.
getInstanceProperties in interface Typepublic List<Property> getProperties()
Properties of this type and
all base types.
The expression
type.getProperties().indexOf(property)yields the property's index relative to this type. As such, these expressions are equivalent:
dataObject.get(i)
dataObject.get((Property)dataObject.getType().getProperties().get(i));
getProperties in interface TypeProperty.getContainingType()public Object get(Property property)
get in interface Typeproperty - one of the properties returned by
getInstanceProperties().
DataObject.get(Property)public List<Object> search(Property property)
PlasmaType
search in interface PlasmaTypeproperty - one of the properties returned by
Type.getInstanceProperties().
public Property getProperty(String propertyName)
all the Properties of this type, the
property with the specified name.
As such, these expressions are equivalent:
dataObject.get("name")
dataObject.get(dataObject.getType().getProperty("name"))
getProperty in interface TypegetProperties()public Property findProperty(String propertyName)
findProperty in interface PlasmaTypename - the property name
public Property findProperty(ConcurrencyType concurrencyType,
ConcurrentDataFlavor dataFlavor)
PlasmaType
findProperty in interface PlasmaTypeconcurrencyType - the concurrency typedataFlavor - the concurrency data flavor
public Property findProperty(KeyType keyType)
PlasmaType
findProperty in interface PlasmaTypekeyType - the key type
public List<Property> findProperties(KeyType keyType)
PlasmaType
findProperties in interface PlasmaTypekeyType - the key type
public Class<?> getInstanceClass()
getInstanceClass in interface Typepublic boolean isInstance(Object object)
isInstance in interface Typeobject - the object in question.
true if the object is an instance.Class.isInstance(java.lang.Object)public boolean isOpen()
isOpen in interface Typepublic boolean isSequenced()
Sequence elements = dataObject.getSequence();
isSequenced in interface Typepublic Class<?> toDataTypeInstanceClass(DataType dataType)
toDataTypeInstanceClass in interface PlasmaTypedataType -
public boolean isRelation(PlasmaType other,
AssociationPath relationPath)
PlasmaType
isRelation in interface PlasmaTypeother - the other typerelationPath - the relation path type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||