com.ibm.db.models.db2.zSeries.util
Class ZSeriesSwitch

java.lang.Object
  extended by com.ibm.db.models.db2.zSeries.util.ZSeriesSwitch

public class ZSeriesSwitch
extends java.lang.Object

The Switch for the model's inheritance hierarchy. It supports the call doSwitch(object) to invoke the caseXXX method for each class of the model, starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is returned, which is the result of the switch.

See Also:
ZSeriesPackage

Constructor Summary
ZSeriesSwitch()
          Creates an instance of the switch.
 
Method Summary
 java.lang.Object caseBaseTable(org.eclipse.wst.rdb.internal.models.sql.tables.BaseTable object)
          Returns the result of interpretting the object as an instance of 'Base Table'.
 java.lang.Object caseCharacterSet(org.eclipse.wst.rdb.internal.models.sql.datatypes.CharacterSet object)
          Returns the result of interpretting the object as an instance of 'Character Set'.
 java.lang.Object caseDatabase(org.eclipse.wst.rdb.internal.models.sql.schema.Database object)
          Returns the result of interpretting the object as an instance of 'Database'.
 java.lang.Object caseDB2Database(DB2Database object)
          Returns the result of interpretting the object as an instance of 'DB2 Database'.
 java.lang.Object caseDB2ExtendedOptions(DB2ExtendedOptions object)
          Returns the result of interpretting the object as an instance of 'DB2 Extended Options'.
 java.lang.Object caseDB2Index(DB2Index object)
          Returns the result of interpretting the object as an instance of 'DB2 Index'.
 java.lang.Object caseDB2MaterializedQueryTable(DB2MaterializedQueryTable object)
          Returns the result of interpretting the object as an instance of 'DB2 Materialized Query Table'.
 java.lang.Object caseDB2Table(DB2Table object)
          Returns the result of interpretting the object as an instance of 'DB2 Table'.
 java.lang.Object caseDerivedTable(org.eclipse.wst.rdb.internal.models.sql.tables.DerivedTable object)
          Returns the result of interpretting the object as an instance of 'Derived Table'.
 java.lang.Object caseEModelElement(org.eclipse.emf.ecore.EModelElement object)
          Returns the result of interpretting the object as an instance of 'EModel Element'.
 java.lang.Object caseENamedElement(org.eclipse.emf.ecore.ENamedElement object)
          Returns the result of interpretting the object as an instance of 'ENamed Element'.
 java.lang.Object caseIndex(org.eclipse.wst.rdb.internal.models.sql.constraints.Index object)
          Returns the result of interpretting the object as an instance of 'Index'.
 java.lang.Object casePersistentTable(org.eclipse.wst.rdb.internal.models.sql.tables.PersistentTable object)
          Returns the result of interpretting the object as an instance of 'Persistent Table'.
 java.lang.Object caseSQLObject(org.eclipse.wst.rdb.internal.models.sql.schema.SQLObject object)
          Returns the result of interpretting the object as an instance of 'SQL Object'.
 java.lang.Object caseTable(org.eclipse.wst.rdb.internal.models.sql.tables.Table object)
          Returns the result of interpretting the object as an instance of 'Table'.
 java.lang.Object caseZSeriesAuxiliaryTable(ZSeriesAuxiliaryTable object)
          Returns the result of interpretting the object as an instance of 'Auxiliary Table'.
 java.lang.Object caseZSeriesCharacterSet(ZSeriesCharacterSet object)
          Returns the result of interpretting the object as an instance of 'Character Set'.
 java.lang.Object caseZSeriesDatabase(ZSeriesDatabase object)
          Returns the result of interpretting the object as an instance of 'Database'.
 java.lang.Object caseZSeriesDatabaseInstance(ZSeriesDatabaseInstance object)
          Returns the result of interpretting the object as an instance of 'Database Instance'.
 java.lang.Object caseZSeriesIndex(ZSeriesIndex object)
          Returns the result of interpretting the object as an instance of 'Index'.
 java.lang.Object caseZSeriesKeyDataMember(ZSeriesKeyDataMember object)
          Returns the result of interpretting the object as an instance of 'Key Data Member'.
 java.lang.Object caseZSeriesMaterializedQueryTable(ZSeriesMaterializedQueryTable object)
          Returns the result of interpretting the object as an instance of 'Materialized Query Table'.
 java.lang.Object caseZSeriesPartition(ZSeriesPartition object)
          Returns the result of interpretting the object as an instance of 'Partition'.
 java.lang.Object caseZSeriesPartitionElement(ZSeriesPartitionElement object)
          Returns the result of interpretting the object as an instance of 'Partition Element'.
 java.lang.Object caseZSeriesPartitionKey(ZSeriesPartitionKey object)
          Returns the result of interpretting the object as an instance of 'Partition Key'.
 java.lang.Object caseZSeriesRoutineExtOptions(ZSeriesRoutineExtOptions object)
          Returns the result of interpretting the object as an instance of 'Routine Ext Options'.
 java.lang.Object caseZSeriesStorageGroup(ZSeriesStorageGroup object)
          Returns the result of interpretting the object as an instance of 'Storage Group'.
 java.lang.Object caseZSeriesSynonym(ZSeriesSynonym object)
          Returns the result of interpretting the object as an instance of 'Synonym'.
 java.lang.Object caseZSeriesTable(ZSeriesTable object)
          Returns the result of interpretting the object as an instance of 'Table'.
 java.lang.Object caseZSeriesTableSpace(ZSeriesTableSpace object)
          Returns the result of interpretting the object as an instance of 'Table Space'.
 java.lang.Object caseZSeriesVCAT(ZSeriesVCAT object)
          Returns the result of interpretting the object as an instance of 'VCAT'.
 java.lang.Object defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpretting the object as an instance of 'EObject'.
 java.lang.Object doSwitch(org.eclipse.emf.ecore.EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZSeriesSwitch

public ZSeriesSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public java.lang.Object doSwitch(org.eclipse.emf.ecore.EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result.

Returns:
the first non-null result returned by a caseXXX call.

caseZSeriesTableSpace

public java.lang.Object caseZSeriesTableSpace(ZSeriesTableSpace object)
Returns the result of interpretting the object as an instance of 'Table Space'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Table Space'.
See Also:
doSwitch(EObject)

caseZSeriesTable

public java.lang.Object caseZSeriesTable(ZSeriesTable object)
Returns the result of interpretting the object as an instance of 'Table'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Table'.
See Also:
doSwitch(EObject)

caseZSeriesDatabase

public java.lang.Object caseZSeriesDatabase(ZSeriesDatabase object)
Returns the result of interpretting the object as an instance of 'Database'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Database'.
See Also:
doSwitch(EObject)

caseZSeriesStorageGroup

public java.lang.Object caseZSeriesStorageGroup(ZSeriesStorageGroup object)
Returns the result of interpretting the object as an instance of 'Storage Group'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Storage Group'.
See Also:
doSwitch(EObject)

caseZSeriesPartition

public java.lang.Object caseZSeriesPartition(ZSeriesPartition object)
Returns the result of interpretting the object as an instance of 'Partition'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Partition'.
See Also:
doSwitch(EObject)

caseZSeriesVCAT

public java.lang.Object caseZSeriesVCAT(ZSeriesVCAT object)
Returns the result of interpretting the object as an instance of 'VCAT'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'VCAT'.
See Also:
doSwitch(EObject)

caseZSeriesSynonym

public java.lang.Object caseZSeriesSynonym(ZSeriesSynonym object)
Returns the result of interpretting the object as an instance of 'Synonym'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Synonym'.
See Also:
doSwitch(EObject)

caseZSeriesRoutineExtOptions

public java.lang.Object caseZSeriesRoutineExtOptions(ZSeriesRoutineExtOptions object)
Returns the result of interpretting the object as an instance of 'Routine Ext Options'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Routine Ext Options'.
See Also:
doSwitch(EObject)

caseZSeriesIndex

public java.lang.Object caseZSeriesIndex(ZSeriesIndex object)
Returns the result of interpretting the object as an instance of 'Index'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Index'.
See Also:
doSwitch(EObject)

caseZSeriesKeyDataMember

public java.lang.Object caseZSeriesKeyDataMember(ZSeriesKeyDataMember object)
Returns the result of interpretting the object as an instance of 'Key Data Member'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Key Data Member'.
See Also:
doSwitch(EObject)

caseZSeriesPartitionKey

public java.lang.Object caseZSeriesPartitionKey(ZSeriesPartitionKey object)
Returns the result of interpretting the object as an instance of 'Partition Key'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Partition Key'.
See Also:
doSwitch(EObject)

caseZSeriesMaterializedQueryTable

public java.lang.Object caseZSeriesMaterializedQueryTable(ZSeriesMaterializedQueryTable object)
Returns the result of interpretting the object as an instance of 'Materialized Query Table'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Materialized Query Table'.
See Also:
doSwitch(EObject)

caseZSeriesCharacterSet

public java.lang.Object caseZSeriesCharacterSet(ZSeriesCharacterSet object)
Returns the result of interpretting the object as an instance of 'Character Set'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Character Set'.
See Also:
doSwitch(EObject)

caseZSeriesDatabaseInstance

public java.lang.Object caseZSeriesDatabaseInstance(ZSeriesDatabaseInstance object)
Returns the result of interpretting the object as an instance of 'Database Instance'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Database Instance'.
See Also:
doSwitch(EObject)

caseZSeriesPartitionElement

public java.lang.Object caseZSeriesPartitionElement(ZSeriesPartitionElement object)
Returns the result of interpretting the object as an instance of 'Partition Element'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Partition Element'.
See Also:
doSwitch(EObject)

caseZSeriesAuxiliaryTable

public java.lang.Object caseZSeriesAuxiliaryTable(ZSeriesAuxiliaryTable object)
Returns the result of interpretting the object as an instance of 'Auxiliary Table'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Auxiliary Table'.
See Also:
doSwitch(EObject)

caseDB2ExtendedOptions

public java.lang.Object caseDB2ExtendedOptions(DB2ExtendedOptions object)
Returns the result of interpretting the object as an instance of 'DB2 Extended Options'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'DB2 Extended Options'.
See Also:
doSwitch(EObject)

caseIndex

public java.lang.Object caseIndex(org.eclipse.wst.rdb.internal.models.sql.constraints.Index object)
Returns the result of interpretting the object as an instance of 'Index'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Index'.
See Also:
doSwitch(EObject)

caseDB2Index

public java.lang.Object caseDB2Index(DB2Index object)
Returns the result of interpretting the object as an instance of 'DB2 Index'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'DB2 Index'.
See Also:
doSwitch(EObject)

caseDerivedTable

public java.lang.Object caseDerivedTable(org.eclipse.wst.rdb.internal.models.sql.tables.DerivedTable object)
Returns the result of interpretting the object as an instance of 'Derived Table'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Derived Table'.
See Also:
doSwitch(EObject)

caseDB2MaterializedQueryTable

public java.lang.Object caseDB2MaterializedQueryTable(DB2MaterializedQueryTable object)
Returns the result of interpretting the object as an instance of 'DB2 Materialized Query Table'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'DB2 Materialized Query Table'.
See Also:
doSwitch(EObject)

caseCharacterSet

public java.lang.Object caseCharacterSet(org.eclipse.wst.rdb.internal.models.sql.datatypes.CharacterSet object)
Returns the result of interpretting the object as an instance of 'Character Set'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Character Set'.
See Also:
doSwitch(EObject)

caseEModelElement

public java.lang.Object caseEModelElement(org.eclipse.emf.ecore.EModelElement object)
Returns the result of interpretting the object as an instance of 'EModel Element'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'EModel Element'.
See Also:
doSwitch(EObject)

caseENamedElement

public java.lang.Object caseENamedElement(org.eclipse.emf.ecore.ENamedElement object)
Returns the result of interpretting the object as an instance of 'ENamed Element'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'ENamed Element'.
See Also:
doSwitch(EObject)

caseSQLObject

public java.lang.Object caseSQLObject(org.eclipse.wst.rdb.internal.models.sql.schema.SQLObject object)
Returns the result of interpretting the object as an instance of 'SQL Object'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'SQL Object'.
See Also:
doSwitch(EObject)

caseTable

public java.lang.Object caseTable(org.eclipse.wst.rdb.internal.models.sql.tables.Table object)
Returns the result of interpretting the object as an instance of 'Table'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Table'.
See Also:
doSwitch(EObject)

caseBaseTable

public java.lang.Object caseBaseTable(org.eclipse.wst.rdb.internal.models.sql.tables.BaseTable object)
Returns the result of interpretting the object as an instance of 'Base Table'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Base Table'.
See Also:
doSwitch(EObject)

casePersistentTable

public java.lang.Object casePersistentTable(org.eclipse.wst.rdb.internal.models.sql.tables.PersistentTable object)
Returns the result of interpretting the object as an instance of 'Persistent Table'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Persistent Table'.
See Also:
doSwitch(EObject)

caseDB2Table

public java.lang.Object caseDB2Table(DB2Table object)
Returns the result of interpretting the object as an instance of 'DB2 Table'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'DB2 Table'.
See Also:
doSwitch(EObject)

caseDatabase

public java.lang.Object caseDatabase(org.eclipse.wst.rdb.internal.models.sql.schema.Database object)
Returns the result of interpretting the object as an instance of 'Database'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Database'.
See Also:
doSwitch(EObject)

caseDB2Database

public java.lang.Object caseDB2Database(DB2Database object)
Returns the result of interpretting the object as an instance of 'DB2 Database'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'DB2 Database'.
See Also:
doSwitch(EObject)

defaultCase

public java.lang.Object defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpretting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'EObject'.
See Also:
doSwitch(org.eclipse.emf.ecore.EObject)