net.sf.farrago.cwm.datatypes
Class CwmUnionClass$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.CwmUnionClass$Hib
- All Implemented Interfaces:
- RefBaseObject, RefClass, RefFeatured, CwmUnionClass
public class CwmUnionClass$Hib
- extends HibernateRefClass
- implements CwmUnionClass
Union class proxy implementation.
The Union class represents programming language unions and similarly
structured data types. Because of the diversity of union semantics found
across software systems, the Union and UnionMember classes are likely
candidates for specialization to better capture union semantics in
specific language extension packages.
A discriminated Union has a collection of UnionMembers that determine the
sets of contents that the Union may contain. Such Unions have an attribute
called the discriminator that identifies the memberCase value of the
UnionMember that the Union currently contains. The discriminator is found
via the UnionDiscriminator association to StructuralFeature. The
discriminator may be embedded within UnionMembers or may be located
outside the discriminator. If it is located within UnionMembers, the
discriminator should occur in every UnionMember at the same location
(often, the first).
Undiscriminated unions (for example, a C language union) are also
supported, but have an empty discriminator reference, and the memberCase
attribute of the UnionMembers it contains is ignored.
Undiscriminated Unions are often used to represent alternate views of a
single physical
storage area. A fine degree of control over this aspect of Unions may be
obtained by
creating a class that derives from both UnionMember and FixedOffsetField
(in the
CWM Record package) and setting the offset attribute instances of that
class
accordingly.
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
CwmUnionClass$Hib
public CwmUnionClass$Hib(RefPackage container)
createCwmUnion
public CwmUnion createCwmUnion()
- Description copied from interface:
CwmUnionClass
- The default factory operation used to create an instance object.
- Specified by:
createCwmUnion
in interface CwmUnionClass
- Returns:
- The created instance object.
createCwmUnion
public CwmUnion createCwmUnion(String name,
VisibilityKind visibility,
boolean isAbstract)
- Description copied from interface:
CwmUnionClass
- Creates an instance object having attributes initialized by the passed
values.
- Specified by:
createCwmUnion
in interface CwmUnionClass
- Parameters:
name
- An identifier for the ModelElement within its containing
Namespace.visibility
- Specifies extent of the visibility of the
ModelElement within its owning Namespace.isAbstract
- An abstract Classifier is not instantiable.
- 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