org.eclipse.emf.cdo.dbgen
Interface Table

All Superinterfaces:
org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier
All Known Implementing Classes:
TableImpl

public interface Table
extends org.eclipse.emf.ecore.EObject

A representation of the model object 'Table'.

The following features are supported:

See Also:
DBGenPackage.getTable()

Method Summary
 Column addColumn(java.lang.String name, ColumnType type)
           
 Column addColumn(java.lang.String name, ColumnType type, int length)
           
 Column addColumn(java.lang.String name, ColumnType type, int length, java.lang.String constraint)
           
 Column addColumn(java.lang.String name, ColumnType type, java.lang.String constraint)
           
 Index addCompoundIndex(java.lang.String[] columnNames, IndexType indexType)
           
 Index addCompoundIndex(java.lang.String columnNames, IndexType indexType)
           
 Index addIndex(java.lang.String name, IndexType type)
           
 Index addSimpleIndex(java.lang.String columnName, IndexType indexType)
           
 Column getColumn(java.lang.String name)
           
 org.eclipse.emf.common.util.EList getColumns()
          Returns the value of the 'Columns' containment reference list.
 Database getDatabase()
          Returns the value of the 'Database' container reference.
 Index getIndex(java.lang.String name)
           
 org.eclipse.emf.common.util.EList getIndices()
          Returns the value of the 'Indices' containment reference list.
 java.lang.String getName()
          Returns the value of the 'Name' attribute
 Index getPrimaryIndex()
           
 void setDatabase(Database value)
          Sets the value of the 'Database' container reference
 void setName(java.lang.String value)
          Sets the value of the 'Name' attribute
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getName

java.lang.String getName()
Returns the value of the 'Name' attribute.

If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Name' attribute.
See Also:
setName(String), DBGenPackage.getTable_Name()

setName

void setName(java.lang.String value)
Sets the value of the 'Name' attribute.

Parameters:
value - the new value of the 'Name' attribute.
See Also:
getName()

getDatabase

Database getDatabase()
Returns the value of the 'Database' container reference. It is bidirectional and its opposite is 'Tables'.

If the meaning of the 'Database' container reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Database' container reference.
See Also:
setDatabase(Database), DBGenPackage.getTable_Database(), Database.getTables()

setDatabase

void setDatabase(Database value)
Sets the value of the 'Database' container reference.

Parameters:
value - the new value of the 'Database' container reference.
See Also:
getDatabase()

getColumns

org.eclipse.emf.common.util.EList getColumns()
Returns the value of the 'Columns' containment reference list. The list contents are of type Column. It is bidirectional and its opposite is 'Table'.

If the meaning of the 'Columns' containment reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Columns' containment reference list.
See Also:
DBGenPackage.getTable_Columns(), Column.getTable()

getIndices

org.eclipse.emf.common.util.EList getIndices()
Returns the value of the 'Indices' containment reference list. The list contents are of type Index. It is bidirectional and its opposite is 'Table'.

If the meaning of the 'Indices' containment reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Indices' containment reference list.
See Also:
DBGenPackage.getTable_Indices(), Index.getTable()

getPrimaryIndex

Index getPrimaryIndex()


getColumn

Column getColumn(java.lang.String name)


addColumn

Column addColumn(java.lang.String name,
                 ColumnType type,
                 int length,
                 java.lang.String constraint)


addColumn

Column addColumn(java.lang.String name,
                 ColumnType type,
                 java.lang.String constraint)


addColumn

Column addColumn(java.lang.String name,
                 ColumnType type,
                 int length)


addColumn

Column addColumn(java.lang.String name,
                 ColumnType type)


getIndex

Index getIndex(java.lang.String name)


addIndex

Index addIndex(java.lang.String name,
               IndexType type)


addSimpleIndex

Index addSimpleIndex(java.lang.String columnName,
                     IndexType indexType)


addCompoundIndex

Index addCompoundIndex(java.lang.String columnNames,
                       IndexType indexType)


addCompoundIndex

Index addCompoundIndex(java.lang.String[] columnNames,
                       IndexType indexType)


Copyright (c) 2004, 2005, 2006 Eike Stepper, Germany.
All Rights Reserved.