net.sf.farrago.cwm.core
Class CwmConstraintClass$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.core.CwmConstraintClass$Hib
- All Implemented Interfaces:
- RefBaseObject, RefClass, RefFeatured, CwmConstraintClass
public class CwmConstraintClass$Hib
- extends HibernateRefClass
- implements CwmConstraintClass
Constraint class proxy implementation.
A constraint is a semantic condition or restriction expressed in text.
In the metamodel, a Constraint is a BooleanExpression on an associated
ModelElement(s) which must be true for the model to be well formed. This
restriction can be stated in natural language, or in different kinds of
languages with well-defined semantics. Certain Constraints are predefined,
others may be user defined. Note that a Constraint is an assertion, not an
executable mechanism.
The specification is written as an expression in a designated constraint
language. The language can be specially designed for writing constraints
(such as OCL), a programming language, mathematical notation, or natural
language. If constraints are to be enforced by a model editor tool, then
the tool must understand the syntax and semantics of the constraint
language. Because the choice of language is arbitrary, constraints can be
used as an extension mechanism.
The constraint concept allows new semantics to be specified linguistically
for a model element. In the metamodel a Constraint directly attached to a
ModelElement describes semantic restrictions that this ModelElement must
obey.
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
CwmConstraintClass$Hib
public CwmConstraintClass$Hib(RefPackage container)
createCwmConstraint
public CwmConstraint createCwmConstraint()
- Description copied from interface:
CwmConstraintClass
- The default factory operation used to create an instance object.
- Specified by:
createCwmConstraint
in interface CwmConstraintClass
- Returns:
- The created instance object.
createCwmConstraint
public CwmConstraint createCwmConstraint(String name,
VisibilityKind visibility,
CwmBooleanExpression body)
- Description copied from interface:
CwmConstraintClass
- Creates an instance object having attributes initialized by the passed
values.
- Specified by:
createCwmConstraint
in interface CwmConstraintClass
- Parameters:
name
- An identifier for the ModelElement within its containing
Namespace.visibility
- Specifies extent of the visibility of the
ModelElement within its owning Namespace.body
- A BooleanExpression that must be true when evaluated for
an instance of a system to be well-formed. A boolean expression
defining the constraint. Expressions are written as strings in a
designated language. For the model to be well formed, the expression
must always yield a true value when evaluated for instances of the
constrained elements at any time when the system is stable (i.e., not
during the execution of an atomic operation).
- 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