|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Table object provides a description of a database table and how it maps into a DataObject
Method Summary | |
---|---|
Column |
addBigDecimalColumn(java.lang.String name)
Create and add a Column of type BigDecimal with the given name |
Column |
addBlobColumn(java.lang.String name)
Create and add a Column of type Blob with the given name |
Column |
addBooleanColumn(java.lang.String name)
Create and add a Column of type Boolean with the given name |
Column |
addByteColumn(java.lang.String name)
Create and add a Column of type Byte with the given name |
Column |
addBytesColumn(java.lang.String name)
Create and add a Column of type Bytes with the given name |
Column |
addClobColumn(java.lang.String name)
Create and add a Column of type Clob with the given name |
Column |
addColumn(java.lang.String name,
int type)
Create and add a Column object to this Table with the given name and type. |
Column |
addColumn(java.lang.String name,
int type,
boolean isNullable)
Create and add a Column object to this table with the given name, type, and nullability |
Column |
addDateColumn(java.lang.String name)
Create and add a Column of type Date with the given name |
Column |
addDoubleColumn(java.lang.String name)
Create and add a Column of type Double with the given name |
Column |
addFloatColumn(java.lang.String name)
Create and add a Column of type Float with the given name |
Key |
addForeignKey(Column column)
Create and add a Foreign Key to this Table consisting of the given Column |
Column |
addIntegerColumn(java.lang.String name)
Create and add a Column of type Integer with the given name |
Column |
addLongColumn(java.lang.String name)
Create and add a Column of type Long with the given name |
Column |
addShortColumn(java.lang.String name)
Create and add a Column of type Short with the given name |
Column |
addStringColumn(java.lang.String name)
Create and add a Column of type String with the given name |
Column |
addTimeColumn(java.lang.String name)
Create and add a Column of type Time with the given name |
Column |
addTimestampColumn(java.lang.String name)
Create and add a Column of type Timestamp with the given name |
void |
beRoot()
Make this Table be the root Table in the Metadata. |
Column |
getCollisionColumn()
Returns the Column object used for optimistic concurrency control |
Column |
getColumn(java.lang.String columnName)
Returns the Column object with the given name |
org.eclipse.emf.common.util.EList |
getColumns()
Get the columns contained in this table |
Filter |
getFilter()
Get the filter applied to this table |
org.eclipse.emf.common.util.EList |
getForeignKeys()
Get the foreign keys for this table |
Metadata |
getMetadata()
Returns the @link com.ibm.websphere.sdo.mediator.jdbc.metadata.Metadata object that contains this Table |
java.lang.String |
getName()
Get the name of the database table |
Key |
getPrimaryKey()
Get the primary key for this table |
java.lang.String |
getPropertyName()
Get the Property Name attribute The Property Name determines the name used in the SDO representation of this table. |
java.lang.String |
getSchemaName()
Get the Schema Name attribute The Schema Name attribute specifies the database schema that contains this table. |
boolean |
isExternal()
If a Table is defined as external, it will not be included in the DataGraph constructed by a generated query. |
java.lang.String |
qualifiedName()
Returns the name of this table qualified with the schema name, if applicable. |
void |
setCollisionColumn(Column value)
Sets the value of the ' Collision Column ' reference. |
void |
setExternal(boolean value)
Sets the value of the ' External ' attribute. |
void |
setFilter(Filter value)
Sets the value of the ' Filter ' containment reference. |
void |
setMetadata(Metadata value)
Sets the value of the ' Metadata ' container reference. |
void |
setName(java.lang.String value)
Sets the value of the ' Name ' attribute. |
void |
setPrimaryKey(Column column)
Set the value of the Primary Key attribute to the specified Column |
void |
setPrimaryKey(Key value)
Sets the value of the ' Primary Key ' containment reference. |
void |
setPrimaryKey(java.util.List columns)
Set the value of the Primary Key attribute to the specified List of Columns |
void |
setPropertyName(java.lang.String value)
Sets the value of the ' Property Name ' attribute. |
void |
setSchemaName(java.lang.String value)
Sets the value of the ' Schema Name ' attribute. |
Method Detail |
public java.lang.String getPropertyName()
public void setPropertyName(java.lang.String value)
Property Name
' attribute.
value
- the new value of the 'Property Name' attribute.getPropertyName()
public java.lang.String getSchemaName()
public void setSchemaName(java.lang.String value)
Schema Name
' attribute.
value
- the new value of the 'Schema Name' attribute.getSchemaName()
public java.lang.String qualifiedName()
public java.lang.String getName()
public void setName(java.lang.String value)
Name
' attribute.
value
- the new value of the 'Name' attribute.getName()
public Key getPrimaryKey()
public void setPrimaryKey(Key value)
Primary Key
' containment reference.
value
- the new value of the 'Primary Key' containment reference.getPrimaryKey()
public org.eclipse.emf.common.util.EList getForeignKeys()
public org.eclipse.emf.common.util.EList getColumns()
public Column getColumn(java.lang.String columnName)
columnName
- the name of the Column
public Filter getFilter()
public void setFilter(Filter value)
Filter
' containment reference.
value
- the new value of the 'Filter' containment reference.getFilter()
public Metadata getMetadata()
public void setMetadata(Metadata value)
Metadata
' container reference.
value
- the new value of the 'Metadata' container reference.getMetadata()
public Column getCollisionColumn()
public void setCollisionColumn(Column value)
Collision Column
' reference.
value
- the new value of the 'Collision Column' reference.getCollisionColumn()
public boolean isExternal()
public void setExternal(boolean value)
External
' attribute.
value
- the new value of the 'External' attribute.isExternal()
public Column addColumn(java.lang.String name, int type, boolean isNullable)
name
- type
- isNullable
-
public Column addColumn(java.lang.String name, int type)
name
- type
-
public Column addBooleanColumn(java.lang.String name)
name
-
public Column addByteColumn(java.lang.String name)
name
-
public Column addShortColumn(java.lang.String name)
name
-
public Column addStringColumn(java.lang.String name)
name
-
public Column addIntegerColumn(java.lang.String name)
name
-
public Column addDoubleColumn(java.lang.String name)
name
-
public Column addLongColumn(java.lang.String name)
name
-
public Column addFloatColumn(java.lang.String name)
name
-
public Column addBigDecimalColumn(java.lang.String name)
name
-
public Column addDateColumn(java.lang.String name)
name
-
public Column addTimeColumn(java.lang.String name)
name
-
public Column addTimestampColumn(java.lang.String name)
name
-
public Column addBlobColumn(java.lang.String name)
name
-
public Column addClobColumn(java.lang.String name)
name
-
public Column addBytesColumn(java.lang.String name)
name
-
public void setPrimaryKey(Column column)
column
- public void setPrimaryKey(java.util.List columns)
columns
- public Key addForeignKey(Column column)
column
-
public void beRoot()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |