net.sf.farrago.cwm.core
Class CwmMultiplicityRange$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.core.CwmMultiplicityRange$Hib
All Implemented Interfaces:
RefBaseObject, RefFeatured, RefObject, CwmElement, CwmMultiplicityRange, HibernateAssociable, HibernateIdentifiable

public class CwmMultiplicityRange$Hib
extends HibernateRefObject
implements CwmMultiplicityRange, HibernateAssociable

MultiplicityRange object instance interface. In the metamodel a MultiplicityRange defines a range of integers. The upper bound of the range cannot be below the lower bound. The lower bound must be a nonnegative integer. The upper bound must be a nonnegative integer or the special value unlimited, which indicates there is no upper bound on the range.

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  Integer lower$Hib
           
protected  HibernateOneToManyLazyAssociation multiplicity$Hib
           
protected  Integer upper$Hib
           
 
Constructor Summary
CwmMultiplicityRange$Hib()
           
CwmMultiplicityRange$Hib(int lower, int upper)
           
 
Method Summary
protected  void checkConstraints(List<JmiException> errors, boolean deepVerify)
           
 HibernateAssociation getAssociation(String type, boolean firstEnd)
           
 String getClassIdentifier()
           
 Collection<HibernateAssociation> getComposingAssociations()
           
 int getLower()
          Returns the value of attribute lower.
 Integer getLower$Hib()
           
 CwmMultiplicity getMultiplicity()
          Returns the value of reference multiplicity.
 HibernateOneToManyLazyAssociation getMultiplicity$Hib()
           
 Collection<HibernateAssociation> getNonComposingAssociations()
           
 HibernateAssociation getOrCreateAssociation(String type, boolean firstEnd)
           
 int getUpper()
          Returns the value of attribute upper.
 Integer getUpper$Hib()
           
 RefObject refImmediateComposite()
           
protected  void removeAssociations()
           
 void setAssociation(String type, boolean firstEnd, HibernateAssociation assoc)
           
 void setLower(int newValue)
          Sets the value of lower attribute.
 void setLower$Hib(Integer newValue)
           
 void setMultiplicity(CwmMultiplicity newValue)
          Sets the value of multiplicity reference.
 void setMultiplicity$Hib(HibernateOneToManyLazyAssociation newValue)
           
 void setUpper(int newValue)
          Sets the value of upper attribute.
 void setUpper$Hib(Integer 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

lower$Hib

protected Integer lower$Hib

upper$Hib

protected Integer upper$Hib

multiplicity$Hib

protected HibernateOneToManyLazyAssociation multiplicity$Hib
Constructor Detail

CwmMultiplicityRange$Hib

CwmMultiplicityRange$Hib()

CwmMultiplicityRange$Hib

CwmMultiplicityRange$Hib(int lower,
                         int upper)
Method Detail

getLower$Hib

public Integer getLower$Hib()

setLower$Hib

public void setLower$Hib(Integer newValue)

getLower

public int getLower()
Description copied from interface: CwmMultiplicityRange
Returns the value of attribute lower. Specifies the positive integer lower bound of the range.

Specified by:
getLower in interface CwmMultiplicityRange
Returns:
Value of attribute lower.

setLower

public void setLower(int newValue)
Description copied from interface: CwmMultiplicityRange
Sets the value of lower attribute. See CwmMultiplicityRange.getLower() for description on the attribute.

Specified by:
setLower in interface CwmMultiplicityRange
Parameters:
newValue - New value to be set.

getUpper$Hib

public Integer getUpper$Hib()

setUpper$Hib

public void setUpper$Hib(Integer newValue)

getUpper

public int getUpper()
Description copied from interface: CwmMultiplicityRange
Returns the value of attribute upper. Specifies the upper bound of the range, which is a positive integer or the special value ?unlimited? indicating no upper bound is defined.

Specified by:
getUpper in interface CwmMultiplicityRange
Returns:
Value of attribute upper.

setUpper

public void setUpper(int newValue)
Description copied from interface: CwmMultiplicityRange
Sets the value of upper attribute. See CwmMultiplicityRange.getUpper() for description on the attribute.

Specified by:
setUpper in interface CwmMultiplicityRange
Parameters:
newValue - New value to be set.

getMultiplicity

public CwmMultiplicity getMultiplicity()
Description copied from interface: CwmMultiplicityRange
Returns the value of reference multiplicity.

Specified by:
getMultiplicity in interface CwmMultiplicityRange
Returns:
Value of reference multiplicity.

setMultiplicity

public void setMultiplicity(CwmMultiplicity newValue)
Description copied from interface: CwmMultiplicityRange
Sets the value of multiplicity reference. See CwmMultiplicityRange.getMultiplicity() for description on the attribute.

Specified by:
setMultiplicity in interface CwmMultiplicityRange
Parameters:
newValue - New value to be set.

getMultiplicity$Hib

public HibernateOneToManyLazyAssociation getMultiplicity$Hib()

setMultiplicity$Hib

public void setMultiplicity$Hib(HibernateOneToManyLazyAssociation 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