net.sf.farrago.cwm.core
Class CwmPackageClass$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.RefClassBase
              extended by org.eigenbase.enki.hibernate.jmi.HibernateRefClass
                  extended by net.sf.farrago.cwm.core.CwmPackageClass$Hib
All Implemented Interfaces:
RefBaseObject, RefClass, RefFeatured, CwmPackageClass

public class CwmPackageClass$Hib
extends HibernateRefClass
implements CwmPackageClass

Package class proxy implementation. A package is a grouping of model elements. In the metamodel, Package is a subclass of Namespace. A Package contains ModelElements such as Packages and Classifiers. A Package may also contain Constraints and Dependencies between ModelElements of the Package. The purpose of the package construct is to provide a general grouping mechanism. In fact, its only semantics is to define a namespace for its contents. The package construct can be used for organizing elements for any purpose; the criteria to use for grouping elements together into one package are not defined. A package owns a set of model elements, with the implication that if the package is removed from the model, so are the elements owned by the package. Elements with names, such as classifiers, that are owned by the same package must have unique names within the package, although elements in different packages may have the same name. There may be relationships between elements contained in the same package, and between an element in one package and an element in a surrounding package at any level. In other words, elements ?see? all the way out through nested levels of packages. Elements in peer packages, however, are encapsulated and are not a priori visible to each other. The same goes for elements in contained packages, i.e. packages do not see "inwards". Elements owned by a Package can be made available to other Packages by importing them. Although any ModelElement may be imported by a Package, imported ModelElements are typically other Packages. When an element is imported by a package it extends the namespace of that package. Thus the elements available in a Package consists of its owned and imported ModelElements.

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
           
private static String _queryCacheRegion
           
private static String _table
           
 
Constructor Summary
CwmPackageClass$Hib(RefPackage container)
           
 
Method Summary
protected  void checkConstraints(List<JmiException> errors, boolean deepVerify)
           
 CwmPackage createCwmPackage()
          The default factory operation used to create an instance object.
 CwmPackage createCwmPackage(String name, VisibilityKind visibility)
          Creates an instance object having attributes initialized by the passed values.
 String getAssociationColumnName(String type, boolean firstEnd)
           
 Collection<String> getAssociationColumnNames()
           
 String getClassIdentifier()
           
 String getQueryCacheRegion()
           
 String getTable()
           
 
Methods inherited from class org.eigenbase.enki.hibernate.jmi.HibernateRefClass
getHibernateRepository, getInstanceClass, getInterfaceClass, refAllOfClass, refAllOfType
 
Methods inherited from class org.eigenbase.enki.jmi.impl.RefClassBase
getRepository, refCreateInstance, refCreateStruct, refCreateStruct, refGetEnum, refGetEnum, refImmediatePackage, register, 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, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints, setMofId, setRefMetaObject
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jmi.reflect.RefClass
refAllOfClass, refAllOfType, refCreateInstance, refCreateStruct, refCreateStruct, refGetEnum, refGetEnum
 
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
 

Field Detail

_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
Constructor Detail

CwmPackageClass$Hib

public CwmPackageClass$Hib(RefPackage container)
Method Detail

createCwmPackage

public CwmPackage createCwmPackage()
Description copied from interface: CwmPackageClass
The default factory operation used to create an instance object.

Specified by:
createCwmPackage in interface CwmPackageClass
Returns:
The created instance object.

createCwmPackage

public CwmPackage createCwmPackage(String name,
                                   VisibilityKind visibility)
Description copied from interface: CwmPackageClass
Creates an instance object having attributes initialized by the passed values.

Specified by:
createCwmPackage in interface CwmPackageClass
Parameters:
name - An identifier for the ModelElement within its containing Namespace.
visibility - Specifies extent of the visibility of the ModelElement within its owning Namespace.
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