net.sf.farrago.cwm.datatypes
Class CwmEnumerationLiteralClass$Hib
java.lang.Object
org.eigenbase.enki.jmi.impl.RefBaseObjectBase
org.eigenbase.enki.jmi.impl.RefFeaturedBase
org.eigenbase.enki.jmi.impl.RefClassBase
org.eigenbase.enki.hibernate.jmi.HibernateRefClass
net.sf.farrago.cwm.datatypes.CwmEnumerationLiteralClass$Hib
- All Implemented Interfaces:
- RefBaseObject, RefClass, RefFeatured, CwmEnumerationLiteralClass
public class CwmEnumerationLiteralClass$Hib
- extends HibernateRefClass
- implements CwmEnumerationLiteralClass
EnumerationLiteral class proxy implementation.
EnumerationLiteral instances describe the enumeration identifiers, and
possibly the
values, associated with an enumerated data type. Enumeration identifiers
are contained
in the name attribute derived from the EnumerationLiteral instance?s
ModelElement superclass.
EnumerationLiteral instances may also be used to define expression-based
values such as ranges. To do so, simply state the membership expression in
the instance?s value. For example, a range literal can be created by
setting the value attribute to "m..n", where m represents the lower bound
of the range, and n, the upper bound. In this way, ranges and other more
complicated expressions can be intermixed with simple
enumeration literals. For example, an enumeration might contain the
literals "1", "2", "4..7", and "> 10".
Consequently, a simple range data type can be created with an Enumeration
instance that owns a single EnumerationLiteral instance. For example, a
data type for positive integers could be created as shown in the following
instance diagram. A model attribute of this data type might then be
declared as "posInt : PositiveInteger".
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.
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 |
_id
private static final String _id
- See Also:
- Constant Field Values
_queryCacheRegion
private static final String _queryCacheRegion
- See Also:
- Constant Field Values
_table
private static final String _table
- See Also:
- Constant Field Values
CwmEnumerationLiteralClass$Hib
public CwmEnumerationLiteralClass$Hib(RefPackage container)
createCwmEnumerationLiteral
public CwmEnumerationLiteral createCwmEnumerationLiteral()
- Description copied from interface:
CwmEnumerationLiteralClass
- The default factory operation used to create an instance object.
- Specified by:
createCwmEnumerationLiteral
in interface CwmEnumerationLiteralClass
- Returns:
- The created instance object.
createCwmEnumerationLiteral
public CwmEnumerationLiteral createCwmEnumerationLiteral(String name,
VisibilityKind visibility,
CwmExpression value)
- Description copied from interface:
CwmEnumerationLiteralClass
- Creates an instance object having attributes initialized by the passed
values.
- Specified by:
createCwmEnumerationLiteral
in interface CwmEnumerationLiteralClass
- Parameters:
name
- An identifier for the ModelElement within its containing
Namespace.visibility
- Specifies extent of the visibility of the
ModelElement within its owning Namespace.value
- The value associated with an enumeration identifier can
be stored here. The attribute is optional because enumeration literals
are not required to have a specific, displayable value. This is
indicated by either an empty value attribute or a value attribute
value whose expression body attribute is a zero-length string.
- Returns:
- The created instance object.
checkConstraints
protected void checkConstraints(List<JmiException> errors,
boolean deepVerify)
- Specified by:
checkConstraints
in class RefBaseObjectBase
getClassIdentifier
public String getClassIdentifier()
- Specified by:
getClassIdentifier
in class HibernateRefClass
getTable
public String getTable()
- Specified by:
getTable
in class HibernateRefClass
getQueryCacheRegion
public String getQueryCacheRegion()
- Specified by:
getQueryCacheRegion
in class HibernateRefClass
getAssociationColumnName
public String getAssociationColumnName(String type,
boolean firstEnd)
- Specified by:
getAssociationColumnName
in class HibernateRefClass
getAssociationColumnNames
public Collection<String> getAssociationColumnNames()
- Specified by:
getAssociationColumnNames
in class HibernateRefClass