org.apache.tuscany.das.rdb.config.impl
Class ConfigImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.apache.tuscany.sdo.impl.DataObjectImpl
              extended by org.apache.tuscany.sdo.impl.ExtensibleDataObjectImpl
                  extended by org.apache.tuscany.sdo.impl.DataObjectBase
                      extended by org.apache.tuscany.das.rdb.config.impl.ConfigImpl
All Implemented Interfaces:
commonj.sdo.DataObject, java.io.Serializable, Config, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder, org.eclipse.emf.ecore.InternalEObject

public class ConfigImpl
extends org.apache.tuscany.sdo.impl.DataObjectBase
implements Config

An implementation of the model object 'Config'.

The following features are implemented:

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.tuscany.sdo.impl.DataObjectBase
org.apache.tuscany.sdo.impl.DataObjectBase.ChangeContext, org.apache.tuscany.sdo.impl.DataObjectBase.ChangeKind, org.apache.tuscany.sdo.impl.DataObjectBase.ListKind
 
Nested classes/interfaces inherited from class org.apache.tuscany.sdo.impl.ExtensibleDataObjectImpl
org.apache.tuscany.sdo.impl.ExtensibleDataObjectImpl.FactoryImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected  java.util.List command
          The cached value of the 'Command' containment reference list.
static int COMMAND
           
static int CONNECTION_INFO
           
protected  ConnectionInfo connectionInfo
          The cached value of the 'Connection Info' containment reference.
static int DATA_OBJECT_MODEL
           
protected static java.lang.String DATA_OBJECT_MODEL_DEFAULT_
          The default value of the 'Data Object Model' attribute.
static int DATABASE_SCHEMA_NAME_SUPPORTED
           
protected static boolean DATABASE_SCHEMA_NAME_SUPPORTED_DEFAULT_
          The default value of the 'Database Schema Name Supported' attribute.
protected  boolean databaseSchemaNameSupported
          The cached value of the 'Database Schema Name Supported' attribute.
protected  java.lang.String dataObjectModel
          The cached value of the 'Data Object Model' attribute.
static int EXTENDED_PROPERTY_COUNT
           
static int GENERATED_KEYS_SUPPORTED
           
protected static java.lang.String GENERATED_KEYS_SUPPORTED_DEFAULT_
          The default value of the 'Generated Keys Supported' attribute.
protected  java.lang.String generatedKeysSupported
          The cached value of the 'Generated Keys Supported' attribute.
static int INTERNAL_COMMAND
          The internal feature id for the 'Command' containment reference list.
static int INTERNAL_CONNECTION_INFO
          The internal feature id for the 'Connection Info' containment reference.
static int INTERNAL_DATA_OBJECT_MODEL
          The internal feature id for the 'Data Object Model' attribute.
static int INTERNAL_DATABASE_SCHEMA_NAME_SUPPORTED
          The internal feature id for the 'Database Schema Name Supported' attribute.
static int INTERNAL_GENERATED_KEYS_SUPPORTED
          The internal feature id for the 'Generated Keys Supported' attribute.
static int INTERNAL_PROPERTY_COUNT
          The number of properties for this type.
static int INTERNAL_RELATIONSHIP
          The internal feature id for the 'Relationship' containment reference list.
static int INTERNAL_TABLE
          The internal feature id for the 'Table' containment reference list.
static int INTERNAL_URI
          The internal feature id for the 'Uri' attribute.
protected  java.util.List relationship
          The cached value of the 'Relationship' containment reference list.
static int RELATIONSHIP
           
static int SDO_PROPERTY_COUNT
           
protected  java.util.List table
          The cached value of the 'Table' containment reference list.
static int TABLE
           
protected  java.lang.String uri
          The cached value of the 'Uri' attribute.
static int URI
           
protected static java.lang.String URI_DEFAULT_
          The default value of the 'Uri' attribute.
 
Fields inherited from class org.apache.tuscany.sdo.impl.DataObjectBase
OPPOSITE_FEATURE_BASE
 
Fields inherited from class org.apache.tuscany.sdo.impl.ExtensibleDataObjectImpl
eClass, ENO_SETTINGS, eSettings
 
Fields inherited from class org.apache.tuscany.sdo.impl.DataObjectImpl
changeRecorder, eContainer, eContainerFeatureID, location, sequence
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
NIL
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
ConfigImpl()
           
 
Method Summary
 org.apache.tuscany.sdo.impl.DataObjectBase.ChangeContext basicSetConnectionInfo(ConnectionInfo newConnectionInfo, org.apache.tuscany.sdo.impl.DataObjectBase.ChangeContext changeContext)
           
 java.lang.Object get(int propertyIndex, boolean resolve)
           
 java.util.List getCommand()
           
 ConnectionInfo getConnectionInfo()
           
 java.lang.String getDataObjectModel()
           
 java.lang.String getGeneratedKeysSupported()
           
 java.util.List getRelationship()
           
 commonj.sdo.Type getStaticType()
           
 java.util.List getTable()
           
 java.lang.String getUri()
           
protected  int internalConvertIndex(int internalIndex)
           
 org.apache.tuscany.sdo.impl.DataObjectBase.ChangeContext inverseRemove(java.lang.Object otherEnd, int propertyIndex, org.apache.tuscany.sdo.impl.DataObjectBase.ChangeContext changeContext)
           
 boolean isDatabaseSchemaNameSupported()
           
 boolean isSet(int propertyIndex)
           
 void set(int propertyIndex, java.lang.Object newValue)
           
 void setConnectionInfo(ConnectionInfo newConnectionInfo)
           
 void setDatabaseSchemaNameSupported(boolean newDatabaseSchemaNameSupported)
           
 void setDataObjectModel(java.lang.String newDataObjectModel)
           
 void setGeneratedKeysSupported(java.lang.String newGeneratedKeysSupported)
           
 void setUri(java.lang.String newUri)
           
 java.lang.String toString()
           
 void unset(int propertyIndex)
           
 
Methods inherited from class org.apache.tuscany.sdo.impl.DataObjectBase
addNotification, addNotification, basicAdd, createChangeSummary, createPropertyList, createPropertyList, createSequence, createSequence, dispatch, eGet, eInverseRemove, eIsSet, eSet, eStaticClass, eUnset, get, getList, inverseAdd, inverseAdd, inverseRemove, isNotifying, isProxy, isProxy, isSequenceEmpty, isSet, notify, notify, notify, notify, notify, notify, notify, notify, removeFromList, removeFromSequence, resolveProxy, set, setSequence, unset, unsetSequence
 
Methods inherited from class org.apache.tuscany.sdo.impl.ExtensibleDataObjectImpl
dynamicGet, dynamicSet, dynamicUnset, eClass, eDerivedStructuralFeatureID, eDynamicClass, eDynamicGet, eDynamicIsSet, eDynamicSet, eDynamicUnset, eHasSettings, eSetClass, eSettings, isDynamic
 
Methods inherited from class org.apache.tuscany.sdo.impl.DataObjectImpl
createDataObject, createDataObject, createDataObject, createDataObject, createDataObject, createDataObject, delete, detach, eBasicSetContainer, eContainerFeatureID, eContents, eCrossReferences, eDirectResource, eInternalContainer, eIsProxy, eNotificationRequired, eNotify, eProxyURI, eSetDirectResource, eSetProxyURI, get, get, get, getBigDecimal, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getBytes, getBytes, getBytes, getChangeSummary, getChar, getChar, getChar, getContainer, getContainmentProperty, getDataGraph, getDataObject, getDataObject, getDataObject, getDate, getDate, getDate, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInstanceProperties, getInstanceProperty, getInt, getInt, getInt, getList, getList, getList, getLong, getLong, getLong, getProperty, getRootObject, getSequence, getSequence, getSequence, getSequence, getShort, getShort, getShort, getString, getString, getString, getType, isSet, isSet, set, set, setBigDecimal, setBigDecimal, setBigDecimal, setBigInteger, setBigInteger, setBigInteger, setBoolean, setBoolean, setBoolean, setByte, setByte, setByte, setBytes, setBytes, setBytes, setChangeRecorder, setChar, setChar, setChar, setDataObject, setDataObject, setDataObject, setDate, setDate, setDate, setDouble, setDouble, setDouble, setFloat, setFloat, setFloat, setInt, setInt, setInt, setList, setList, setList, setLong, setLong, setLong, setShort, setShort, setShort, setString, setString, setString, unset, unset, writeReplace
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicProperties, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProperties, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eAdapters, eBasicAdapters, eDeliver, eSetDeliver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface commonj.sdo.DataObject
createDataObject, createDataObject, createDataObject, createDataObject, createDataObject, createDataObject, delete, detach, get, get, get, getBigDecimal, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getBytes, getBytes, getBytes, getChangeSummary, getChar, getChar, getChar, getContainer, getContainmentProperty, getDataGraph, getDataObject, getDataObject, getDataObject, getDate, getDate, getDate, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInstanceProperties, getInstanceProperty, getInt, getInt, getInt, getList, getList, getList, getLong, getLong, getLong, getProperty, getRootObject, getSequence, getSequence, getSequence, getSequence, getShort, getShort, getShort, getString, getString, getString, getType, isSet, isSet, set, set, setBigDecimal, setBigDecimal, setBigDecimal, setBigInteger, setBigInteger, setBigInteger, setBoolean, setBoolean, setBoolean, setByte, setByte, setByte, setBytes, setBytes, setBytes, setChar, setChar, setChar, setDataObject, setDataObject, setDataObject, setDate, setDate, setDate, setDouble, setDouble, setDouble, setFloat, setFloat, setFloat, setInt, setInt, setInt, setList, setList, setList, setLong, setLong, setLong, setShort, setShort, setShort, setString, setString, setString, unset, unset
 

Field Detail

COMMAND

public static final int COMMAND
See Also:
Constant Field Values

TABLE

public static final int TABLE
See Also:
Constant Field Values

RELATIONSHIP

public static final int RELATIONSHIP
See Also:
Constant Field Values

CONNECTION_INFO

public static final int CONNECTION_INFO
See Also:
Constant Field Values

URI

public static final int URI
See Also:
Constant Field Values

DATA_OBJECT_MODEL

public static final int DATA_OBJECT_MODEL
See Also:
Constant Field Values

DATABASE_SCHEMA_NAME_SUPPORTED

public static final int DATABASE_SCHEMA_NAME_SUPPORTED
See Also:
Constant Field Values

GENERATED_KEYS_SUPPORTED

public static final int GENERATED_KEYS_SUPPORTED
See Also:
Constant Field Values

SDO_PROPERTY_COUNT

public static final int SDO_PROPERTY_COUNT
See Also:
Constant Field Values

EXTENDED_PROPERTY_COUNT

public static final int EXTENDED_PROPERTY_COUNT
See Also:
Constant Field Values

INTERNAL_COMMAND

public static final int INTERNAL_COMMAND
The internal feature id for the 'Command' containment reference list.

See Also:
Constant Field Values

INTERNAL_TABLE

public static final int INTERNAL_TABLE
The internal feature id for the 'Table' containment reference list.

See Also:
Constant Field Values

INTERNAL_RELATIONSHIP

public static final int INTERNAL_RELATIONSHIP
The internal feature id for the 'Relationship' containment reference list.

See Also:
Constant Field Values

INTERNAL_CONNECTION_INFO

public static final int INTERNAL_CONNECTION_INFO
The internal feature id for the 'Connection Info' containment reference.

See Also:
Constant Field Values

INTERNAL_URI

public static final int INTERNAL_URI
The internal feature id for the 'Uri' attribute.

See Also:
Constant Field Values

INTERNAL_DATA_OBJECT_MODEL

public static final int INTERNAL_DATA_OBJECT_MODEL
The internal feature id for the 'Data Object Model' attribute.

See Also:
Constant Field Values

INTERNAL_DATABASE_SCHEMA_NAME_SUPPORTED

public static final int INTERNAL_DATABASE_SCHEMA_NAME_SUPPORTED
The internal feature id for the 'Database Schema Name Supported' attribute.

See Also:
Constant Field Values

INTERNAL_GENERATED_KEYS_SUPPORTED

public static final int INTERNAL_GENERATED_KEYS_SUPPORTED
The internal feature id for the 'Generated Keys Supported' attribute.

See Also:
Constant Field Values

INTERNAL_PROPERTY_COUNT

public static final int INTERNAL_PROPERTY_COUNT
The number of properties for this type.

See Also:
Constant Field Values

command

protected java.util.List command
The cached value of the 'Command' containment reference list.

See Also:
getCommand()

table

protected java.util.List table
The cached value of the 'Table' containment reference list.

See Also:
getTable()

relationship

protected java.util.List relationship
The cached value of the 'Relationship' containment reference list.

See Also:
getRelationship()

connectionInfo

protected ConnectionInfo connectionInfo
The cached value of the 'Connection Info' containment reference.

See Also:
getConnectionInfo()

URI_DEFAULT_

protected static final java.lang.String URI_DEFAULT_
The default value of the 'Uri' attribute.

See Also:
getUri()

uri

protected java.lang.String uri
The cached value of the 'Uri' attribute.

See Also:
getUri()

DATA_OBJECT_MODEL_DEFAULT_

protected static final java.lang.String DATA_OBJECT_MODEL_DEFAULT_
The default value of the 'Data Object Model' attribute.

See Also:
getDataObjectModel()

dataObjectModel

protected java.lang.String dataObjectModel
The cached value of the 'Data Object Model' attribute.

See Also:
getDataObjectModel()

DATABASE_SCHEMA_NAME_SUPPORTED_DEFAULT_

protected static final boolean DATABASE_SCHEMA_NAME_SUPPORTED_DEFAULT_
The default value of the 'Database Schema Name Supported' attribute.

See Also:
isDatabaseSchemaNameSupported(), Constant Field Values

databaseSchemaNameSupported

protected boolean databaseSchemaNameSupported
The cached value of the 'Database Schema Name Supported' attribute.

See Also:
isDatabaseSchemaNameSupported()

GENERATED_KEYS_SUPPORTED_DEFAULT_

protected static final java.lang.String GENERATED_KEYS_SUPPORTED_DEFAULT_
The default value of the 'Generated Keys Supported' attribute.

See Also:
getGeneratedKeysSupported()

generatedKeysSupported

protected java.lang.String generatedKeysSupported
The cached value of the 'Generated Keys Supported' attribute.

See Also:
getGeneratedKeysSupported()
Constructor Detail

ConfigImpl

public ConfigImpl()

Method Detail

internalConvertIndex

protected int internalConvertIndex(int internalIndex)
Overrides:
internalConvertIndex in class org.apache.tuscany.sdo.impl.DataObjectBase

getStaticType

public commonj.sdo.Type getStaticType()

Overrides:
getStaticType in class org.apache.tuscany.sdo.impl.DataObjectBase

getCommand

public java.util.List getCommand()

Specified by:
getCommand in interface Config
Returns:
the value of the 'Command' containment reference list.

getTable

public java.util.List getTable()

Specified by:
getTable in interface Config
Returns:
the value of the 'Table' containment reference list.

getRelationship

public java.util.List getRelationship()

Specified by:
getRelationship in interface Config
Returns:
the value of the 'Relationship' containment reference list.

getConnectionInfo

public ConnectionInfo getConnectionInfo()

Specified by:
getConnectionInfo in interface Config
Returns:
the value of the 'Connection Info' containment reference.
See Also:
Config.setConnectionInfo(ConnectionInfo)

basicSetConnectionInfo

public org.apache.tuscany.sdo.impl.DataObjectBase.ChangeContext basicSetConnectionInfo(ConnectionInfo newConnectionInfo,
                                                                                       org.apache.tuscany.sdo.impl.DataObjectBase.ChangeContext changeContext)


setConnectionInfo

public void setConnectionInfo(ConnectionInfo newConnectionInfo)

Specified by:
setConnectionInfo in interface Config
Parameters:
newConnectionInfo - the new value of the 'Connection Info' containment reference.
See Also:
Config.getConnectionInfo()

getUri

public java.lang.String getUri()

Specified by:
getUri in interface Config
Returns:
the value of the 'Uri' attribute.
See Also:
Config.setUri(String)

setUri

public void setUri(java.lang.String newUri)

Specified by:
setUri in interface Config
Parameters:
newUri - the new value of the 'Uri' attribute.
See Also:
Config.getUri()

getDataObjectModel

public java.lang.String getDataObjectModel()

Specified by:
getDataObjectModel in interface Config
Returns:
the value of the 'Data Object Model' attribute.
See Also:
Config.setDataObjectModel(String)

setDataObjectModel

public void setDataObjectModel(java.lang.String newDataObjectModel)

Specified by:
setDataObjectModel in interface Config
Parameters:
newDataObjectModel - the new value of the 'Data Object Model' attribute.
See Also:
Config.getDataObjectModel()

isDatabaseSchemaNameSupported

public boolean isDatabaseSchemaNameSupported()

Specified by:
isDatabaseSchemaNameSupported in interface Config
Returns:
the value of the 'Database Schema Name Supported' attribute.
See Also:
Config.setDatabaseSchemaNameSupported(boolean)

setDatabaseSchemaNameSupported

public void setDatabaseSchemaNameSupported(boolean newDatabaseSchemaNameSupported)

Specified by:
setDatabaseSchemaNameSupported in interface Config
Parameters:
newDatabaseSchemaNameSupported - the new value of the 'Database Schema Name Supported' attribute.
See Also:
Config.isDatabaseSchemaNameSupported()

getGeneratedKeysSupported

public java.lang.String getGeneratedKeysSupported()

Specified by:
getGeneratedKeysSupported in interface Config
Returns:
the value of the 'Generated Keys Supported' attribute.
See Also:
Config.setGeneratedKeysSupported(String)

setGeneratedKeysSupported

public void setGeneratedKeysSupported(java.lang.String newGeneratedKeysSupported)

Specified by:
setGeneratedKeysSupported in interface Config
Parameters:
newGeneratedKeysSupported - the new value of the 'Generated Keys Supported' attribute.
See Also:
Config.getGeneratedKeysSupported()

inverseRemove

public org.apache.tuscany.sdo.impl.DataObjectBase.ChangeContext inverseRemove(java.lang.Object otherEnd,
                                                                              int propertyIndex,
                                                                              org.apache.tuscany.sdo.impl.DataObjectBase.ChangeContext changeContext)

Overrides:
inverseRemove in class org.apache.tuscany.sdo.impl.DataObjectBase

get

public java.lang.Object get(int propertyIndex,
                            boolean resolve)

Overrides:
get in class org.apache.tuscany.sdo.impl.DataObjectBase

set

public void set(int propertyIndex,
                java.lang.Object newValue)

Specified by:
set in interface commonj.sdo.DataObject
Overrides:
set in class org.apache.tuscany.sdo.impl.DataObjectBase

unset

public void unset(int propertyIndex)

Specified by:
unset in interface commonj.sdo.DataObject
Overrides:
unset in class org.apache.tuscany.sdo.impl.DataObjectBase

isSet

public boolean isSet(int propertyIndex)

Specified by:
isSet in interface commonj.sdo.DataObject
Overrides:
isSet in class org.apache.tuscany.sdo.impl.DataObjectImpl

toString

public java.lang.String toString()

Overrides:
toString in class org.apache.tuscany.sdo.impl.DataObjectBase


Copyright © 2007 Apache Software Foundation. All Rights Reserved.