net.sf.farrago.cwm.relational
Class RelationalPackage$Hib

java.lang.Object
  extended by org.eigenbase.enki.jmi.impl.RefBaseObjectBase
      extended by org.eigenbase.enki.jmi.impl.RefPackageBase
          extended by org.eigenbase.enki.hibernate.jmi.HibernateRefPackage
              extended by net.sf.farrago.cwm.relational.RelationalPackage$Hib
All Implemented Interfaces:
RefBaseObject, RefPackage, RelationalPackage

public class RelationalPackage$Hib
extends HibernateRefPackage
implements RelationalPackage

Relational package implementation. The Relational package describes data accessible through a relational interface such as a native RDBMS, ODBC, or JDBC. The Relational package is based on the [SQL] standard section concerning RDBMS catalogs. The scope of the top level container, Catalog, is intended to cover all the tables a user can use in a single statement. A catalog is also the unit which is managed by a data resource. A catalog contains schemas which themselves contain tables. Tables are made of columns which have an associated data type. The Relational package uses constructs in the ObjectModel package to describe the object extensions added to SQL by the [SQL] standards. The Relational package also addresses the issues of indexing, primary keys and foreign keys by extending the corresponding concepts from the Foundation packages. The Relational package depends on the following packages: org.omg::CWM::ObjectModel::Behavioral org.omg::CWM::ObjectModel::Core org.omg::CWM::ObjectModel::Instance org.omg::CWM::Foundation::DataTypes org.omg::CWM::Foundation::KeysIndexes The Relational package references the ObjectModel and Foundation packages. OCL Representation of Relational Constraints [C-1] temporaryScope is valid only if the isTemporary is True. context Tabl e inv: self.temporaryScope.notEmpty implies self.isTemporary=True [C-2] checkOption is valid only if isReadOnly is False. context View inv: self.checkOption implies self.isReadOnly=False [C-3] scale is valid only if precision is specified. context Column inv: self.scale.nonEmpty implies self.precision.notEmpty

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  ColumnOptionsColumnSet columnOptionsColumnSet
           
private  ColumnRefStructuredType columnRefStructuredType
           
private  ColumnSetOfStructuredType columnSetOfStructuredType
           
private  CwmCatalogClass cwmCatalogClass
           
private  CwmCheckConstraintClass cwmCheckConstraintClass
           
private  CwmColumnClass cwmColumnClass
           
private  CwmColumnSetClass cwmColumnSetClass
           
private  CwmColumnValueClass cwmColumnValueClass
           
private  CwmForeignKeyClass cwmForeignKeyClass
           
private  CwmNamedColumnSetClass cwmNamedColumnSetClass
           
private  CwmPrimaryKeyClass cwmPrimaryKeyClass
           
private  CwmProcedureClass cwmProcedureClass
           
private  CwmQueryColumnSetClass cwmQueryColumnSetClass
           
private  CwmRowClass cwmRowClass
           
private  CwmRowSetClass cwmRowSetClass
           
private  CwmSchemaClass cwmSchemaClass
           
private  CwmSqldataTypeClass cwmSqldataTypeClass
           
private  CwmSqldistinctTypeClass cwmSqldistinctTypeClass
           
private  CwmSqlindexClass cwmSqlindexClass
           
private  CwmSqlindexColumnClass cwmSqlindexColumnClass
           
private  CwmSqlparameterClass cwmSqlparameterClass
           
private  CwmSqlsimpleTypeClass cwmSqlsimpleTypeClass
           
private  CwmSqlstructuredTypeClass cwmSqlstructuredTypeClass
           
private  CwmTableClass cwmTableClass
           
private  CwmTriggerClass cwmTriggerClass
           
private  CwmUniqueConstraintClass cwmUniqueConstraintClass
           
private  CwmViewClass cwmViewClass
           
private  DistinctTypeHasSimpleType distinctTypeHasSimpleType
           
private  EnumerationsPackage enumerationsPackage
           
private  TableOwningTrigger tableOwningTrigger
           
private  TriggerUsingColumnSet triggerUsingColumnSet
           
 
Constructor Summary
RelationalPackage$Hib(RefPackage container)
           
 
Method Summary
 void addAliasPackages()
           
protected  void checkConstraints(List<JmiException> errors, boolean deepVerify)
           
 ColumnOptionsColumnSet getColumnOptionsColumnSet()
          Returns ColumnOptionsColumnSet association proxy object.
 ColumnRefStructuredType getColumnRefStructuredType()
          Returns ColumnRefStructuredType association proxy object.
 ColumnSetOfStructuredType getColumnSetOfStructuredType()
          Returns ColumnSetOfStructuredType association proxy object.
 CwmCatalogClass getCwmCatalog()
          Returns CwmCatalog class proxy object.
 CwmCheckConstraintClass getCwmCheckConstraint()
          Returns CwmCheckConstraint class proxy object.
 CwmColumnClass getCwmColumn()
          Returns CwmColumn class proxy object.
 CwmColumnSetClass getCwmColumnSet()
          Returns CwmColumnSet class proxy object.
 CwmColumnValueClass getCwmColumnValue()
          Returns CwmColumnValue class proxy object.
 CwmForeignKeyClass getCwmForeignKey()
          Returns CwmForeignKey class proxy object.
 CwmNamedColumnSetClass getCwmNamedColumnSet()
          Returns CwmNamedColumnSet class proxy object.
 CwmPrimaryKeyClass getCwmPrimaryKey()
          Returns CwmPrimaryKey class proxy object.
 CwmProcedureClass getCwmProcedure()
          Returns CwmProcedure class proxy object.
 CwmQueryColumnSetClass getCwmQueryColumnSet()
          Returns CwmQueryColumnSet class proxy object.
 CwmRowClass getCwmRow()
          Returns CwmRow class proxy object.
 CwmRowSetClass getCwmRowSet()
          Returns CwmRowSet class proxy object.
 CwmSchemaClass getCwmSchema()
          Returns CwmSchema class proxy object.
 CwmSqldataTypeClass getCwmSqldataType()
          Returns CwmSqldataType class proxy object.
 CwmSqldistinctTypeClass getCwmSqldistinctType()
          Returns CwmSqldistinctType class proxy object.
 CwmSqlindexClass getCwmSqlindex()
          Returns CwmSqlindex class proxy object.
 CwmSqlindexColumnClass getCwmSqlindexColumn()
          Returns CwmSqlindexColumn class proxy object.
 CwmSqlparameterClass getCwmSqlparameter()
          Returns CwmSqlparameter class proxy object.
 CwmSqlsimpleTypeClass getCwmSqlsimpleType()
          Returns CwmSqlsimpleType class proxy object.
 CwmSqlstructuredTypeClass getCwmSqlstructuredType()
          Returns CwmSqlstructuredType class proxy object.
 CwmTableClass getCwmTable()
          Returns CwmTable class proxy object.
 CwmTriggerClass getCwmTrigger()
          Returns CwmTrigger class proxy object.
 CwmUniqueConstraintClass getCwmUniqueConstraint()
          Returns CwmUniqueConstraint class proxy object.
 CwmViewClass getCwmView()
          Returns CwmView class proxy object.
 DistinctTypeHasSimpleType getDistinctTypeHasSimpleType()
          Returns DistinctTypeHasSimpleType association proxy object.
 EnumerationsPackage getEnumerations()
          Returns nested package Enumerations.
 TableOwningTrigger getTableOwningTrigger()
          Returns TableOwningTrigger association proxy object.
 TriggerUsingColumnSet getTriggerUsingColumnSet()
          Returns TriggerUsingColumnSet association proxy object.
 
Methods inherited from class org.eigenbase.enki.hibernate.jmi.HibernateRefPackage
getHibernateRepository, refDelete
 
Methods inherited from class org.eigenbase.enki.jmi.impl.RefPackageBase
addAssociation, addClass, addPackage, getRepository, refAllAssociations, refAllClasses, refAllPackages, refAssociation, refAssociation, refClass, refClass, refCreateStruct, refCreateStruct, refGetEnum, refGetEnum, refImmediatePackage, refPackage, refPackage
 
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.RefPackage
refAllAssociations, refAllClasses, refAllPackages, refAssociation, refAssociation, refClass, refClass, refCreateStruct, refCreateStruct, refDelete, refGetEnum, refGetEnum, refPackage, refPackage
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Field Detail

enumerationsPackage

private final EnumerationsPackage enumerationsPackage

cwmCatalogClass

private final CwmCatalogClass cwmCatalogClass

cwmSchemaClass

private final CwmSchemaClass cwmSchemaClass

cwmColumnSetClass

private final CwmColumnSetClass cwmColumnSetClass

cwmNamedColumnSetClass

private final CwmNamedColumnSetClass cwmNamedColumnSetClass

cwmTableClass

private final CwmTableClass cwmTableClass

cwmViewClass

private final CwmViewClass cwmViewClass

cwmQueryColumnSetClass

private final CwmQueryColumnSetClass cwmQueryColumnSetClass

cwmSqldataTypeClass

private final CwmSqldataTypeClass cwmSqldataTypeClass

cwmSqldistinctTypeClass

private final CwmSqldistinctTypeClass cwmSqldistinctTypeClass

cwmSqlsimpleTypeClass

private final CwmSqlsimpleTypeClass cwmSqlsimpleTypeClass

cwmSqlstructuredTypeClass

private final CwmSqlstructuredTypeClass cwmSqlstructuredTypeClass

cwmColumnClass

private final CwmColumnClass cwmColumnClass

cwmProcedureClass

private final CwmProcedureClass cwmProcedureClass

cwmTriggerClass

private final CwmTriggerClass cwmTriggerClass

cwmSqlindexClass

private final CwmSqlindexClass cwmSqlindexClass

cwmUniqueConstraintClass

private final CwmUniqueConstraintClass cwmUniqueConstraintClass

cwmForeignKeyClass

private final CwmForeignKeyClass cwmForeignKeyClass

cwmSqlindexColumnClass

private final CwmSqlindexColumnClass cwmSqlindexColumnClass

cwmPrimaryKeyClass

private final CwmPrimaryKeyClass cwmPrimaryKeyClass

cwmRowClass

private final CwmRowClass cwmRowClass

cwmColumnValueClass

private final CwmColumnValueClass cwmColumnValueClass

cwmCheckConstraintClass

private final CwmCheckConstraintClass cwmCheckConstraintClass

cwmRowSetClass

private final CwmRowSetClass cwmRowSetClass

cwmSqlparameterClass

private final CwmSqlparameterClass cwmSqlparameterClass

triggerUsingColumnSet

private final TriggerUsingColumnSet triggerUsingColumnSet

tableOwningTrigger

private final TableOwningTrigger tableOwningTrigger

columnSetOfStructuredType

private final ColumnSetOfStructuredType columnSetOfStructuredType

columnRefStructuredType

private final ColumnRefStructuredType columnRefStructuredType

columnOptionsColumnSet

private final ColumnOptionsColumnSet columnOptionsColumnSet

distinctTypeHasSimpleType

private final DistinctTypeHasSimpleType distinctTypeHasSimpleType
Constructor Detail

RelationalPackage$Hib

public RelationalPackage$Hib(RefPackage container)
Method Detail

getEnumerations

public EnumerationsPackage getEnumerations()
Description copied from interface: RelationalPackage
Returns nested package Enumerations. The enumerations and datatypes used in the Relational model.

Specified by:
getEnumerations in interface RelationalPackage
Returns:
Proxy object related to nested package Enumerations.

addAliasPackages

public void addAliasPackages()
Overrides:
addAliasPackages in class RefPackageBase

getCwmCatalog

public CwmCatalogClass getCwmCatalog()
Description copied from interface: RelationalPackage
Returns CwmCatalog class proxy object. A Catalog is the unit of logon and identification. It also identifies the scope of SQL statements: the tables contained in a catalog can be used in a single SQL statement.

Specified by:
getCwmCatalog in interface RelationalPackage
Returns:
CwmCatalog class proxy object.

getCwmSchema

public CwmSchemaClass getCwmSchema()
Description copied from interface: RelationalPackage
Returns CwmSchema class proxy object. A schema is a named collection of tables

Specified by:
getCwmSchema in interface RelationalPackage
Returns:
CwmSchema class proxy object.

getCwmColumnSet

public CwmColumnSetClass getCwmColumnSet()
Description copied from interface: RelationalPackage
Returns CwmColumnSet class proxy object. A set of columns, representing either the result of a query, a view or a physical table.

Specified by:
getCwmColumnSet in interface RelationalPackage
Returns:
CwmColumnSet class proxy object.

getCwmNamedColumnSet

public CwmNamedColumnSetClass getCwmNamedColumnSet()
Description copied from interface: RelationalPackage
Returns CwmNamedColumnSet class proxy object. A catalogued set of columns, which may be Table or View. Note for typed tables: It is assumed that the typed table will own a set of columns conforming to the type they are OF. This set of columns allows the manipulation of the table by products which ignore this [SQL] extension. It also allows the columns of type REF, to be copied to a column with a SCOPE reference.

Specified by:
getCwmNamedColumnSet in interface RelationalPackage
Returns:
CwmNamedColumnSet class proxy object.

getCwmTable

public CwmTableClass getCwmTable()
Description copied from interface: RelationalPackage
Returns CwmTable class proxy object. A materialized NamedColumnSet.

Specified by:
getCwmTable in interface RelationalPackage
Returns:
CwmTable class proxy object.

getCwmView

public CwmViewClass getCwmView()
Description copied from interface: RelationalPackage
Returns CwmView class proxy object. A view is a non-materialized set of rows, defined by the associated query.

Specified by:
getCwmView in interface RelationalPackage
Returns:
CwmView class proxy object.

getCwmQueryColumnSet

public CwmQueryColumnSetClass getCwmQueryColumnSet()
Description copied from interface: RelationalPackage
Returns CwmQueryColumnSet class proxy object. The result set of a query.

Specified by:
getCwmQueryColumnSet in interface RelationalPackage
Returns:
CwmQueryColumnSet class proxy object.

getCwmSqldataType

public CwmSqldataTypeClass getCwmSqldataType()
Description copied from interface: RelationalPackage
Returns CwmSqldataType class proxy object. A SQLDataType is used to reference any datatype associated with a column

Specified by:
getCwmSqldataType in interface RelationalPackage
Returns:
CwmSqldataType class proxy object.

getCwmSqldistinctType

public CwmSqldistinctTypeClass getCwmSqldistinctType()
Description copied from interface: RelationalPackage
Returns CwmSqldistinctType class proxy object. A datatype defined as a Distinct Type, per [SQL] standard.

Specified by:
getCwmSqldistinctType in interface RelationalPackage
Returns:
CwmSqldistinctType class proxy object.

getCwmSqlsimpleType

public CwmSqlsimpleTypeClass getCwmSqlsimpleType()
Description copied from interface: RelationalPackage
Returns CwmSqlsimpleType class proxy object. A simple datatype used with an SQL column. Examples are Integer, Varchar, LOB, CLOB, etc...

Specified by:
getCwmSqlsimpleType in interface RelationalPackage
Returns:
CwmSqlsimpleType class proxy object.

getCwmSqlstructuredType

public CwmSqlstructuredTypeClass getCwmSqlstructuredType()
Description copied from interface: RelationalPackage
Returns CwmSqlstructuredType class proxy object. A Datatype defined as Structured Type, per [SQL] standard.

Specified by:
getCwmSqlstructuredType in interface RelationalPackage
Returns:
CwmSqlstructuredType class proxy object.

getCwmColumn

public CwmColumnClass getCwmColumn()
Description copied from interface: RelationalPackage
Returns CwmColumn class proxy object. A column in a result set, a view, a table, or an SQLStructuredType.

Specified by:
getCwmColumn in interface RelationalPackage
Returns:
CwmColumn class proxy object.

getCwmProcedure

public CwmProcedureClass getCwmProcedure()
Description copied from interface: RelationalPackage
Returns CwmProcedure class proxy object. This class describes Relational DBMS Stored procedures and functions.

Specified by:
getCwmProcedure in interface RelationalPackage
Returns:
CwmProcedure class proxy object.

getCwmTrigger

public CwmTriggerClass getCwmTrigger()
Description copied from interface: RelationalPackage
Returns CwmTrigger class proxy object. An action run by the DBMS when specified events occur on the table owning the Trigger

Specified by:
getCwmTrigger in interface RelationalPackage
Returns:
CwmTrigger class proxy object.

getCwmSqlindex

public CwmSqlindexClass getCwmSqlindex()
Description copied from interface: RelationalPackage
Returns CwmSqlindex class proxy object. An Index on a table.

Specified by:
getCwmSqlindex in interface RelationalPackage
Returns:
CwmSqlindex class proxy object.

getCwmUniqueConstraint

public CwmUniqueConstraintClass getCwmUniqueConstraint()
Description copied from interface: RelationalPackage
Returns CwmUniqueConstraint class proxy object. A condition to define uniqueness of rows in a table. An example of UniqueConstraint is a primary key

Specified by:
getCwmUniqueConstraint in interface RelationalPackage
Returns:
CwmUniqueConstraint class proxy object.

getCwmForeignKey

public CwmForeignKeyClass getCwmForeignKey()
Description copied from interface: RelationalPackage
Returns CwmForeignKey class proxy object. A Foreign Key associates columns from one table with columns of another table.

Specified by:
getCwmForeignKey in interface RelationalPackage
Returns:
CwmForeignKey class proxy object.

getCwmSqlindexColumn

public CwmSqlindexColumnClass getCwmSqlindexColumn()
Description copied from interface: RelationalPackage
Returns CwmSqlindexColumn class proxy object. Associates an index with its columns. This is really an association (link) class. It is associated with one index and one column.

Specified by:
getCwmSqlindexColumn in interface RelationalPackage
Returns:
CwmSqlindexColumn class proxy object.

getCwmPrimaryKey

public CwmPrimaryKeyClass getCwmPrimaryKey()
Description copied from interface: RelationalPackage
Returns CwmPrimaryKey class proxy object. There is only one UniqueConstraint of type PrimaryKey per Table. It is implemented specifically by each RDBMS.

Specified by:
getCwmPrimaryKey in interface RelationalPackage
Returns:
CwmPrimaryKey class proxy object.

getCwmRow

public CwmRowClass getCwmRow()
Description copied from interface: RelationalPackage
Returns CwmRow class proxy object. An instance of a ColumnSet.

Specified by:
getCwmRow in interface RelationalPackage
Returns:
CwmRow class proxy object.

getCwmColumnValue

public CwmColumnValueClass getCwmColumnValue()
Description copied from interface: RelationalPackage
Returns CwmColumnValue class proxy object. The value in a column instance.

Specified by:
getCwmColumnValue in interface RelationalPackage
Returns:
CwmColumnValue class proxy object.

getCwmCheckConstraint

public CwmCheckConstraintClass getCwmCheckConstraint()
Description copied from interface: RelationalPackage
Returns CwmCheckConstraint class proxy object. A rule that specifies the values allowed in one or more columns of every row of a table.

Specified by:
getCwmCheckConstraint in interface RelationalPackage
Returns:
CwmCheckConstraint class proxy object.

getCwmRowSet

public CwmRowSetClass getCwmRowSet()
Description copied from interface: RelationalPackage
Returns CwmRowSet class proxy object. Each instance of RowSet owns a collection of Row instances. The inherited association between Namespace (a superclass of Package) and ModelElement is used to contain Instances.

Specified by:
getCwmRowSet in interface RelationalPackage
Returns:
CwmRowSet class proxy object.

getCwmSqlparameter

public CwmSqlparameterClass getCwmSqlparameter()
Description copied from interface: RelationalPackage
Returns CwmSqlparameter class proxy object. Parameters of stored procedures.

Specified by:
getCwmSqlparameter in interface RelationalPackage
Returns:
CwmSqlparameter class proxy object.

getTriggerUsingColumnSet

public TriggerUsingColumnSet getTriggerUsingColumnSet()
Description copied from interface: RelationalPackage
Returns TriggerUsingColumnSet association proxy object. This associates a Trigger with the NamedColumnSets it uses in its expressions.

Specified by:
getTriggerUsingColumnSet in interface RelationalPackage
Returns:
TriggerUsingColumnSet association proxy object.

getTableOwningTrigger

public TableOwningTrigger getTableOwningTrigger()
Description copied from interface: RelationalPackage
Returns TableOwningTrigger association proxy object. Associates a Table with its Triggers. The Trigger will be activated when an action is performed on the Table.

Specified by:
getTableOwningTrigger in interface RelationalPackage
Returns:
TableOwningTrigger association proxy object.

getColumnSetOfStructuredType

public ColumnSetOfStructuredType getColumnSetOfStructuredType()
Description copied from interface: RelationalPackage
Returns ColumnSetOfStructuredType association proxy object. Associates structured types with NamedColumnSets defined of this type.

Specified by:
getColumnSetOfStructuredType in interface RelationalPackage
Returns:
ColumnSetOfStructuredType association proxy object.

getColumnRefStructuredType

public ColumnRefStructuredType getColumnRefStructuredType()
Description copied from interface: RelationalPackage
Returns ColumnRefStructuredType association proxy object. Associates Columns of a StructuredType with the Type they reference in the REF clause

Specified by:
getColumnRefStructuredType in interface RelationalPackage
Returns:
ColumnRefStructuredType association proxy object.

getColumnOptionsColumnSet

public ColumnOptionsColumnSet getColumnOptionsColumnSet()
Description copied from interface: RelationalPackage
Returns ColumnOptionsColumnSet association proxy object. Associates Columns with NamedColumnSets they reference in their OPTIONS clause.

Specified by:
getColumnOptionsColumnSet in interface RelationalPackage
Returns:
ColumnOptionsColumnSet association proxy object.

getDistinctTypeHasSimpleType

public DistinctTypeHasSimpleType getDistinctTypeHasSimpleType()
Description copied from interface: RelationalPackage
Returns DistinctTypeHasSimpleType association proxy object.

Specified by:
getDistinctTypeHasSimpleType in interface RelationalPackage
Returns:
DistinctTypeHasSimpleType association proxy object.

checkConstraints

protected void checkConstraints(List<JmiException> errors,
                                boolean deepVerify)
Specified by:
checkConstraints in class RefBaseObjectBase