|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.enki.jmi.impl.RefBaseObjectBase org.eigenbase.enki.jmi.impl.RefPackageBase org.eigenbase.enki.hibernate.jmi.HibernateRefPackage net.sf.farrago.cwm.keysindexes.KeysIndexesPackage$Hib
public class KeysIndexesPackage$Hib
KeysIndexes package implementation. 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.
Field Summary | |
---|---|
private CwmIndexClass |
cwmIndexClass
|
private CwmIndexedFeatureClass |
cwmIndexedFeatureClass
|
private CwmKeyRelationshipClass |
cwmKeyRelationshipClass
|
private CwmUniqueKeyClass |
cwmUniqueKeyClass
|
private IndexedFeatureInfo |
indexedFeatureInfo
|
private IndexedFeatures |
indexedFeatures
|
private IndexSpansClass |
indexSpansClass
|
private KeyRelationshipFeatures |
keyRelationshipFeatures
|
private UniqueFeature |
uniqueFeature
|
private UniqueKeyRelationship |
uniqueKeyRelationship
|
Constructor Summary | |
---|---|
KeysIndexesPackage$Hib(RefPackage container)
|
Method Summary | |
---|---|
void |
addAliasPackages()
|
protected void |
checkConstraints(List<JmiException> errors,
boolean deepVerify)
|
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 class org.eigenbase.enki.hibernate.jmi.HibernateRefPackage |
---|
getHibernateRepository, refDelete |
Methods inherited from class org.eigenbase.enki.jmi.impl.RefPackageBase |
---|
addAssociation, addClass, addPackage, getRepository, refAllAssociations, refAllClasses, refAllPackages, refAssociation, refAssociation, refClass, refClass, refCreateStruct, refCreateStruct, refGetEnum, refGetEnum, refImmediatePackage, refPackage, refPackage |
Methods inherited from class org.eigenbase.enki.jmi.impl.RefBaseObjectBase |
---|
createInstance, equals, getCurrentInitializer, getEnum, getInitializer, getMofId, getTag, hashCode, invokeMethod, invokeMethod, logJmi, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints, setMofId, setRefMetaObject |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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 |
Field Detail |
---|
private final CwmUniqueKeyClass cwmUniqueKeyClass
private final CwmIndexClass cwmIndexClass
private final CwmKeyRelationshipClass cwmKeyRelationshipClass
private final CwmIndexedFeatureClass cwmIndexedFeatureClass
private final IndexedFeatures indexedFeatures
private final IndexedFeatureInfo indexedFeatureInfo
private final KeyRelationshipFeatures keyRelationshipFeatures
private final UniqueFeature uniqueFeature
private final UniqueKeyRelationship uniqueKeyRelationship
private final IndexSpansClass indexSpansClass
Constructor Detail |
---|
public KeysIndexesPackage$Hib(RefPackage container)
Method Detail |
---|
public void addAliasPackages()
addAliasPackages
in class RefPackageBase
public CwmUniqueKeyClass getCwmUniqueKey()
KeysIndexesPackage
getCwmUniqueKey
in interface KeysIndexesPackage
public CwmIndexClass getCwmIndex()
KeysIndexesPackage
getCwmIndex
in interface KeysIndexesPackage
public CwmKeyRelationshipClass getCwmKeyRelationship()
KeysIndexesPackage
getCwmKeyRelationship
in interface KeysIndexesPackage
public CwmIndexedFeatureClass getCwmIndexedFeature()
KeysIndexesPackage
getCwmIndexedFeature
in interface KeysIndexesPackage
public IndexedFeatures getIndexedFeatures()
KeysIndexesPackage
getIndexedFeatures
in interface KeysIndexesPackage
public IndexedFeatureInfo getIndexedFeatureInfo()
KeysIndexesPackage
getIndexedFeatureInfo
in interface KeysIndexesPackage
public KeyRelationshipFeatures getKeyRelationshipFeatures()
KeysIndexesPackage
getKeyRelationshipFeatures
in interface KeysIndexesPackage
public UniqueFeature getUniqueFeature()
KeysIndexesPackage
getUniqueFeature
in interface KeysIndexesPackage
public UniqueKeyRelationship getUniqueKeyRelationship()
KeysIndexesPackage
getUniqueKeyRelationship
in interface KeysIndexesPackage
public IndexSpansClass getIndexSpansClass()
KeysIndexesPackage
getIndexSpansClass
in interface KeysIndexesPackage
protected void checkConstraints(List<JmiException> errors, boolean deepVerify)
checkConstraints
in class RefBaseObjectBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |