net.sf.farrago.cwm.relational
Class CwmForeignKey$Hib

java.lang.Object
  extended by org.eigenbase.enki.jmi.impl.RefBaseObjectBase
      extended by org.eigenbase.enki.jmi.impl.RefFeaturedBase
          extended by org.eigenbase.enki.jmi.impl.RefObjectBase
              extended by org.eigenbase.enki.hibernate.storage.HibernateObject
                  extended by org.eigenbase.enki.hibernate.jmi.HibernateRefObject
                      extended by net.sf.farrago.cwm.relational.CwmForeignKey$Hib
All Implemented Interfaces:
RefBaseObject, RefFeatured, RefObject, CwmElement, CwmModelElement, CwmKeyRelationship, CwmForeignKey, HibernateAssociable, HibernateIdentifiable

public class CwmForeignKey$Hib
extends HibernateRefObject
implements CwmForeignKey, HibernateAssociable

ForeignKey object instance interface. A Foreign Key associates columns from one table with columns of another table.

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 static String _id
           
protected  HibernateManyToManyLazyAssociation clientDependency$Hib
           
protected  HibernateManyToManyLazyAssociation constraint$Hib
           
protected  String deferrability$Hib
           
protected  String deleteRule$Hib
           
protected  HibernateManyToManyLazyAssociation dependencySupplier_SupplierDependency$Hib
           
protected  HibernateManyToManyLazyOrderedAssociation feature$Hib
           
protected  HibernateManyToManyLazyAssociation importer$Hib
           
protected  String name$Hib
           
protected  HibernateOneToManyLazyHighCardinalityAssociation namespace$Hib
           
protected  HibernateOneToManyLazyHighCardinalityAssociation privilegeIsGrantedOnElement_Privilege$Hib
           
protected  HibernateOneToManyLazyAssociation stereotypedElement_Stereotype$Hib
           
protected  HibernateOneToManyLazyAssociation taggedElement_TaggedValue$Hib
           
protected  HibernateOneToManyLazyAssociation uniqueKey$Hib
           
protected  String updateRule$Hib
           
protected  String visibility$Hib
           
 
Constructor Summary
CwmForeignKey$Hib()
           
CwmForeignKey$Hib(String name, VisibilityKind visibility, ReferentialRuleType deleteRule, ReferentialRuleType updateRule, DeferrabilityType deferrability)
           
 
Method Summary
protected  void checkConstraints(List<JmiException> errors, boolean deepVerify)
           
 HibernateAssociation getAssociation(String type, boolean firstEnd)
           
 String getClassIdentifier()
           
 Collection<CwmDependency> getClientDependency()
          Returns the value of reference clientDependency.
 HibernateManyToManyLazyAssociation getClientDependency$Hib()
           
 Collection<HibernateAssociation> getComposingAssociations()
           
 Collection<CwmConstraint> getConstraint()
          Returns the value of reference constraint.
 HibernateManyToManyLazyAssociation getConstraint$Hib()
           
 DeferrabilityType getDeferrability()
          Returns the value of attribute deferrability.
 String getDeferrability$Hib()
           
 ReferentialRuleType getDeleteRule()
          Returns the value of attribute deleteRule.
 String getDeleteRule$Hib()
           
 HibernateManyToManyLazyAssociation getDependencySupplier_SupplierDependency$Hib()
           
 List<CwmStructuralFeature> getFeature()
          Returns the value of reference feature.
 HibernateManyToManyLazyOrderedAssociation getFeature$Hib()
           
 Collection<CwmPackage> getImporter()
          Returns the value of reference importer.
 HibernateManyToManyLazyAssociation getImporter$Hib()
           
 String getName()
          Returns the value of attribute name.
 String getName$Hib()
           
 CwmNamespace getNamespace()
          Returns the value of reference namespace.
 HibernateOneToManyLazyHighCardinalityAssociation getNamespace$Hib()
           
 Collection<HibernateAssociation> getNonComposingAssociations()
           
 HibernateAssociation getOrCreateAssociation(String type, boolean firstEnd)
           
 HibernateOneToManyLazyHighCardinalityAssociation getPrivilegeIsGrantedOnElement_Privilege$Hib()
           
 HibernateOneToManyLazyAssociation getStereotypedElement_Stereotype$Hib()
           
 HibernateOneToManyLazyAssociation getTaggedElement_TaggedValue$Hib()
           
 CwmUniqueKey getUniqueKey()
          Returns the value of reference uniqueKey.
 HibernateOneToManyLazyAssociation getUniqueKey$Hib()
           
 ReferentialRuleType getUpdateRule()
          Returns the value of attribute updateRule.
 String getUpdateRule$Hib()
           
 VisibilityKind getVisibility()
          Returns the value of attribute visibility.
 String getVisibility$Hib()
           
 RefObject refImmediateComposite()
           
protected  void removeAssociations()
           
 void setAssociation(String type, boolean firstEnd, HibernateAssociation assoc)
           
 void setClientDependency$Hib(HibernateManyToManyLazyAssociation newValue)
           
 void setConstraint$Hib(HibernateManyToManyLazyAssociation newValue)
           
 void setDeferrability(DeferrabilityType newValue)
          Sets the value of deferrability attribute.
 void setDeferrability$Hib(String newValue)
           
 void setDeleteRule(ReferentialRuleType newValue)
          Sets the value of deleteRule attribute.
 void setDeleteRule$Hib(String newValue)
           
 void setDependencySupplier_SupplierDependency$Hib(HibernateManyToManyLazyAssociation newValue)
           
 void setFeature$Hib(HibernateManyToManyLazyOrderedAssociation newValue)
           
 void setImporter$Hib(HibernateManyToManyLazyAssociation newValue)
           
 void setName(String newValue)
          Sets the value of name attribute.
 void setName$Hib(String newValue)
           
 void setNamespace(CwmNamespace newValue)
          Sets the value of namespace reference.
 void setNamespace$Hib(HibernateOneToManyLazyHighCardinalityAssociation newValue)
           
 void setPrivilegeIsGrantedOnElement_Privilege$Hib(HibernateOneToManyLazyHighCardinalityAssociation newValue)
           
 void setStereotypedElement_Stereotype$Hib(HibernateOneToManyLazyAssociation newValue)
           
 void setTaggedElement_TaggedValue$Hib(HibernateOneToManyLazyAssociation newValue)
           
 void setUniqueKey(CwmUniqueKey newValue)
          Sets the value of uniqueKey reference.
 void setUniqueKey$Hib(HibernateOneToManyLazyAssociation newValue)
           
 void setUpdateRule(ReferentialRuleType newValue)
          Sets the value of updateRule attribute.
 void setUpdateRule$Hib(String newValue)
           
 void setVisibility(VisibilityKind newValue)
          Sets the value of visibility attribute.
 void setVisibility$Hib(String newValue)
           
 
Methods inherited from class org.eigenbase.enki.hibernate.jmi.HibernateRefObject
associationSetSingle, attributeSetSingle, findAssociationEnd, fireAssociationRemoveAllEvents, fireAttributeSetEvent, getHibernateRepository, getRepository, refClass, refDelete
 
Methods inherited from class org.eigenbase.enki.hibernate.storage.HibernateObject
delete, delete, save, save
 
Methods inherited from class org.eigenbase.enki.jmi.impl.RefObjectBase
findAttribute, refImmediatePackage, refIsInstanceOf, refMetaObject, refOutermostComposite, setRefMetaObject, unregister
 
Methods inherited from class org.eigenbase.enki.jmi.impl.RefFeaturedBase
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from class org.eigenbase.enki.jmi.impl.RefBaseObjectBase
createInstance, equals, getCurrentInitializer, getEnum, getInitializer, getMofId, getTag, hashCode, invokeMethod, invokeMethod, logJmi, refMofId, refOutermostPackage, refVerifyConstraints, setMofId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 
Methods inherited from interface org.eigenbase.enki.hibernate.storage.HibernateIdentifiable
getMofId
 

Field Detail

_id

private static final String _id
See Also:
Constant Field Values

name$Hib

protected String name$Hib

visibility$Hib

protected String visibility$Hib

deleteRule$Hib

protected String deleteRule$Hib

updateRule$Hib

protected String updateRule$Hib

deferrability$Hib

protected String deferrability$Hib

clientDependency$Hib

protected HibernateManyToManyLazyAssociation clientDependency$Hib

constraint$Hib

protected HibernateManyToManyLazyAssociation constraint$Hib

importer$Hib

protected HibernateManyToManyLazyAssociation importer$Hib

namespace$Hib

protected HibernateOneToManyLazyHighCardinalityAssociation namespace$Hib

feature$Hib

protected HibernateManyToManyLazyOrderedAssociation feature$Hib

uniqueKey$Hib

protected HibernateOneToManyLazyAssociation uniqueKey$Hib

dependencySupplier_SupplierDependency$Hib

protected HibernateManyToManyLazyAssociation dependencySupplier_SupplierDependency$Hib

stereotypedElement_Stereotype$Hib

protected HibernateOneToManyLazyAssociation stereotypedElement_Stereotype$Hib

taggedElement_TaggedValue$Hib

protected HibernateOneToManyLazyAssociation taggedElement_TaggedValue$Hib

privilegeIsGrantedOnElement_Privilege$Hib

protected HibernateOneToManyLazyHighCardinalityAssociation privilegeIsGrantedOnElement_Privilege$Hib
Constructor Detail

CwmForeignKey$Hib

CwmForeignKey$Hib()

CwmForeignKey$Hib

CwmForeignKey$Hib(String name,
                  VisibilityKind visibility,
                  ReferentialRuleType deleteRule,
                  ReferentialRuleType updateRule,
                  DeferrabilityType deferrability)
Method Detail

getName$Hib

public String getName$Hib()

setName$Hib

public void setName$Hib(String newValue)

getName

public String getName()
Description copied from interface: CwmModelElement
Returns the value of attribute name. An identifier for the ModelElement within its containing Namespace.

Specified by:
getName in interface CwmModelElement
Returns:
Value of attribute name.

setName

public void setName(String newValue)
Description copied from interface: CwmModelElement
Sets the value of name attribute. See CwmModelElement.getName() for description on the attribute.

Specified by:
setName in interface CwmModelElement
Parameters:
newValue - New value to be set.

getVisibility$Hib

public String getVisibility$Hib()

setVisibility$Hib

public void setVisibility$Hib(String newValue)

getVisibility

public VisibilityKind getVisibility()
Description copied from interface: CwmModelElement
Returns the value of attribute visibility. Specifies extent of the visibility of the ModelElement within its owning Namespace.

Specified by:
getVisibility in interface CwmModelElement
Returns:
Value of attribute visibility.

setVisibility

public void setVisibility(VisibilityKind newValue)
Description copied from interface: CwmModelElement
Sets the value of visibility attribute. See CwmModelElement.getVisibility() for description on the attribute.

Specified by:
setVisibility in interface CwmModelElement
Parameters:
newValue - New value to be set.

getDeleteRule$Hib

public String getDeleteRule$Hib()

setDeleteRule$Hib

public void setDeleteRule$Hib(String newValue)

getDeleteRule

public ReferentialRuleType getDeleteRule()
Description copied from interface: CwmForeignKey
Returns the value of attribute deleteRule. An enumerated type. Indicates the disposition of the data records containing the foreign key value when the record of the matching primary key is deleted.

Specified by:
getDeleteRule in interface CwmForeignKey
Returns:
Value of attribute deleteRule.

setDeleteRule

public void setDeleteRule(ReferentialRuleType newValue)
Description copied from interface: CwmForeignKey
Sets the value of deleteRule attribute. See CwmForeignKey.getDeleteRule() for description on the attribute.

Specified by:
setDeleteRule in interface CwmForeignKey
Parameters:
newValue - New value to be set.

getUpdateRule$Hib

public String getUpdateRule$Hib()

setUpdateRule$Hib

public void setUpdateRule$Hib(String newValue)

getUpdateRule

public ReferentialRuleType getUpdateRule()
Description copied from interface: CwmForeignKey
Returns the value of attribute updateRule. Same as deleteRule for updates of the primary key data record

Specified by:
getUpdateRule in interface CwmForeignKey
Returns:
Value of attribute updateRule.

setUpdateRule

public void setUpdateRule(ReferentialRuleType newValue)
Description copied from interface: CwmForeignKey
Sets the value of updateRule attribute. See CwmForeignKey.getUpdateRule() for description on the attribute.

Specified by:
setUpdateRule in interface CwmForeignKey
Parameters:
newValue - New value to be set.

getDeferrability$Hib

public String getDeferrability$Hib()

setDeferrability$Hib

public void setDeferrability$Hib(String newValue)

getDeferrability

public DeferrabilityType getDeferrability()
Description copied from interface: CwmForeignKey
Returns the value of attribute deferrability. Indicates if the validity of the ForeignKey is to be tested at each statement or at the end of a transaction.

Specified by:
getDeferrability in interface CwmForeignKey
Returns:
Value of attribute deferrability.

setDeferrability

public void setDeferrability(DeferrabilityType newValue)
Description copied from interface: CwmForeignKey
Sets the value of deferrability attribute. See CwmForeignKey.getDeferrability() for description on the attribute.

Specified by:
setDeferrability in interface CwmForeignKey
Parameters:
newValue - New value to be set.

getClientDependency

public Collection<CwmDependency> getClientDependency()
Description copied from interface: CwmModelElement
Returns the value of reference clientDependency.

Specified by:
getClientDependency in interface CwmModelElement
Returns:
Value of reference clientDependency. Element type: CwmDependency

getClientDependency$Hib

public HibernateManyToManyLazyAssociation getClientDependency$Hib()

setClientDependency$Hib

public void setClientDependency$Hib(HibernateManyToManyLazyAssociation newValue)

getConstraint

public Collection<CwmConstraint> getConstraint()
Description copied from interface: CwmModelElement
Returns the value of reference constraint.

Specified by:
getConstraint in interface CwmModelElement
Returns:
Value of reference constraint. Element type: CwmConstraint

getConstraint$Hib

public HibernateManyToManyLazyAssociation getConstraint$Hib()

setConstraint$Hib

public void setConstraint$Hib(HibernateManyToManyLazyAssociation newValue)

getImporter

public Collection<CwmPackage> getImporter()
Description copied from interface: CwmModelElement
Returns the value of reference importer.

Specified by:
getImporter in interface CwmModelElement
Returns:
Value of reference importer. Element type: CwmPackage

getImporter$Hib

public HibernateManyToManyLazyAssociation getImporter$Hib()

setImporter$Hib

public void setImporter$Hib(HibernateManyToManyLazyAssociation newValue)

getNamespace

public CwmNamespace getNamespace()
Description copied from interface: CwmModelElement
Returns the value of reference namespace.

Specified by:
getNamespace in interface CwmModelElement
Returns:
Value of reference namespace.

setNamespace

public void setNamespace(CwmNamespace newValue)
Description copied from interface: CwmModelElement
Sets the value of namespace reference. See CwmModelElement.getNamespace() for description on the attribute.

Specified by:
setNamespace in interface CwmModelElement
Parameters:
newValue - New value to be set.

getNamespace$Hib

public HibernateOneToManyLazyHighCardinalityAssociation getNamespace$Hib()

setNamespace$Hib

public void setNamespace$Hib(HibernateOneToManyLazyHighCardinalityAssociation newValue)

getFeature

public List<CwmStructuralFeature> getFeature()
Description copied from interface: CwmKeyRelationship
Returns the value of reference feature.

Specified by:
getFeature in interface CwmKeyRelationship
Returns:
Value of reference feature. Element type: CwmStructuralFeature

getFeature$Hib

public HibernateManyToManyLazyOrderedAssociation getFeature$Hib()

setFeature$Hib

public void setFeature$Hib(HibernateManyToManyLazyOrderedAssociation newValue)

getUniqueKey

public CwmUniqueKey getUniqueKey()
Description copied from interface: CwmKeyRelationship
Returns the value of reference uniqueKey.

Specified by:
getUniqueKey in interface CwmKeyRelationship
Returns:
Value of reference uniqueKey.

setUniqueKey

public void setUniqueKey(CwmUniqueKey newValue)
Description copied from interface: CwmKeyRelationship
Sets the value of uniqueKey reference. See CwmKeyRelationship.getUniqueKey() for description on the attribute.

Specified by:
setUniqueKey in interface CwmKeyRelationship
Parameters:
newValue - New value to be set.

getUniqueKey$Hib

public HibernateOneToManyLazyAssociation getUniqueKey$Hib()

setUniqueKey$Hib

public void setUniqueKey$Hib(HibernateOneToManyLazyAssociation newValue)

getDependencySupplier_SupplierDependency$Hib

public HibernateManyToManyLazyAssociation getDependencySupplier_SupplierDependency$Hib()

setDependencySupplier_SupplierDependency$Hib

public void setDependencySupplier_SupplierDependency$Hib(HibernateManyToManyLazyAssociation newValue)

getStereotypedElement_Stereotype$Hib

public HibernateOneToManyLazyAssociation getStereotypedElement_Stereotype$Hib()

setStereotypedElement_Stereotype$Hib

public void setStereotypedElement_Stereotype$Hib(HibernateOneToManyLazyAssociation newValue)

getTaggedElement_TaggedValue$Hib

public HibernateOneToManyLazyAssociation getTaggedElement_TaggedValue$Hib()

setTaggedElement_TaggedValue$Hib

public void setTaggedElement_TaggedValue$Hib(HibernateOneToManyLazyAssociation newValue)

getPrivilegeIsGrantedOnElement_Privilege$Hib

public HibernateOneToManyLazyHighCardinalityAssociation getPrivilegeIsGrantedOnElement_Privilege$Hib()

setPrivilegeIsGrantedOnElement_Privilege$Hib

public void setPrivilegeIsGrantedOnElement_Privilege$Hib(HibernateOneToManyLazyHighCardinalityAssociation newValue)

getAssociation

public HibernateAssociation getAssociation(String type,
                                           boolean firstEnd)
Specified by:
getAssociation in interface HibernateAssociable

setAssociation

public void setAssociation(String type,
                           boolean firstEnd,
                           HibernateAssociation assoc)
Specified by:
setAssociation in interface HibernateAssociable

getOrCreateAssociation

public HibernateAssociation getOrCreateAssociation(String type,
                                                   boolean firstEnd)
Specified by:
getOrCreateAssociation in interface HibernateAssociable

removeAssociations

protected void removeAssociations()
Specified by:
removeAssociations in class HibernateRefObject

getComposingAssociations

public Collection<HibernateAssociation> getComposingAssociations()
Specified by:
getComposingAssociations in class HibernateRefObject

getNonComposingAssociations

public Collection<HibernateAssociation> getNonComposingAssociations()
Specified by:
getNonComposingAssociations in class HibernateRefObject

refImmediateComposite

public RefObject refImmediateComposite()
Specified by:
refImmediateComposite in interface RefObject
Overrides:
refImmediateComposite in class RefObjectBase

checkConstraints

protected void checkConstraints(List<JmiException> errors,
                                boolean deepVerify)
Specified by:
checkConstraints in class RefBaseObjectBase

getClassIdentifier

public String getClassIdentifier()
Specified by:
getClassIdentifier in class HibernateRefObject