|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KeysIndexesPackage
KeysIndexes package interface. The KeysIndexes package depends on the following package: org.omg::CWM::ObjectModel::Core Keys and indexes as means for specifying instances and for identifying alternate sortings of instances are epresented in the CWMFoundation so that they can be shared among the various data models that employ hem. The CWM Foundation defines the base concepts (uniqueness and relationships implemented as keys) pon which more specific key structures can be built by other CWM and tool-specific packages. The concepts of key and index have been placed in the CWM Foundation because they are available in many types of data resources. In the CWM Foundation class and association descriptions that follow, relational model examples are frequently used when discussing the definition and usage of key and index types. This is done because of the wide-spread availability of relational systems and is thought to promote an understanding of the underlying concepts. These concepts, however, are no less applicable to other data models as well. The two central classes for representing the concept of keys are UniqueKey and KeyRelationship. UniqueKey instances correspond to the notion that keys represent the identity of instances -- similar to the relational model?s concept of a primary key or an object model?s concept of an object identity. In contrast, KeyRelationship instancescorrespond to the notion that keys embedded in an instance can be used to determine the identity of other related instances -- similar to the relational model concept of foreign key and the object model concept of a reference. Consequently, UniqueKey and KeyRelationship are best thought of as representing roles that collections of Features of Classifiers play rather than Classifiers describing the internal structure of keys. Representing keys as roles rather than structural entities provides greater flexibility and allows the reuse of Features in multiple keys and in differing relationships to each other. Associations within the KeysIndexes package describe how UniqueKey and KeyRelationship instances describe the roles they play for various Class instances and the StructuralFeature instances they contain. OCL Representation of KeysIndexes Constraints [C-6-1]The isAscending attribute is valid only if the isSorted attribute is True. context IndexedFeature inv: self.isAscending->notEmpty implies self.index.isSorted [C-6-2] A KeyRelationship instance must be owned by one and only one Class instance. context KeyRelationship inv: (self.namespace->size = 1) and self.namespace.oclIsKindOf(Class) [C-6-3] An UniqueKey instance must be owned by one and only one Class instance. context UniqueKey inv: (self.namespace->size = 1) and self.namespace.oclIsKindOf(Class)
Note: This type should not be subclassed, implemented or directly instantiated by clients. It is generated from a MOF metamodel and implemented by Enki or MDR.
Method Summary | |
---|---|
CwmIndexClass |
getCwmIndex()
Returns CwmIndex class proxy object. |
CwmIndexedFeatureClass |
getCwmIndexedFeature()
Returns CwmIndexedFeature class proxy object. |
CwmKeyRelationshipClass |
getCwmKeyRelationship()
Returns CwmKeyRelationship class proxy object. |
CwmUniqueKeyClass |
getCwmUniqueKey()
Returns CwmUniqueKey class proxy object. |
IndexedFeatureInfo |
getIndexedFeatureInfo()
Returns IndexedFeatureInfo association proxy object. |
IndexedFeatures |
getIndexedFeatures()
Returns IndexedFeatures association proxy object. |
IndexSpansClass |
getIndexSpansClass()
Returns IndexSpansClass association proxy object. |
KeyRelationshipFeatures |
getKeyRelationshipFeatures()
Returns KeyRelationshipFeatures association proxy object. |
UniqueFeature |
getUniqueFeature()
Returns UniqueFeature association proxy object. |
UniqueKeyRelationship |
getUniqueKeyRelationship()
Returns UniqueKeyRelationship association proxy object. |
Methods inherited from interface javax.jmi.reflect.RefPackage |
---|
refAllAssociations, refAllClasses, refAllPackages, refAssociation, refAssociation, refClass, refClass, refCreateStruct, refCreateStruct, refDelete, refGetEnum, refGetEnum, refPackage, refPackage |
Methods inherited from interface javax.jmi.reflect.RefBaseObject |
---|
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints |
Method Detail |
---|
CwmUniqueKeyClass getCwmUniqueKey()
CwmIndexClass getCwmIndex()
CwmKeyRelationshipClass getCwmKeyRelationship()
CwmIndexedFeatureClass getCwmIndexedFeature()
IndexedFeatures getIndexedFeatures()
IndexedFeatureInfo getIndexedFeatureInfo()
KeyRelationshipFeatures getKeyRelationshipFeatures()
UniqueFeature getUniqueFeature()
UniqueKeyRelationship getUniqueKeyRelationship()
IndexSpansClass getIndexSpansClass()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |