|
Oracle Application Server TopLink API Reference 10g Release 2 (10.1.2) B15903-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.toplink.tools.schemaframework.DatabaseObjectDefinition
oracle.toplink.tools.schemaframework.TableDefinition
Purpose: Allow a generic way of creating tables on the different platforms.
Field Summary |
Fields inherited from class oracle.toplink.tools.schemaframework.DatabaseObjectDefinition |
name, qualifier |
Constructor Summary | |
TableDefinition() |
Method Summary | |
void |
addField(FieldDefinition field) PUBLIC: Add the field to the table. |
void |
addField(java.lang.String fieldName, java.lang.Class type) PUBLIC: Add the field to the table, default sizes are used. |
void |
addField(java.lang.String fieldName, java.lang.Class type, int fieldSize) PUBLIC: Add the field to the table. |
void |
addField(java.lang.String fieldName, java.lang.Class type, int fieldSize, int fieldSubSize) PUBLIC: Add the field to the table. |
void |
addField(java.lang.String fieldName, java.lang.String typeName) PUBLIC: Add the field to the type to a nested type. |
void |
addForeignKeyConstraint(ForeignKeyConstraint foreignKey) PUBLIC: Add a foreign key constraint to the table. |
void |
addForeignKeyConstraint(java.lang.String name, java.lang.String sourceField, java.lang.String targetField, java.lang.String targetTable) PUBLIC: Add a foreign key constraint to the table. |
void |
addIdentityField(java.lang.String fieldName, java.lang.Class type) PUBLIC: Add the field to the table, default sizes are used. |
void |
addIdentityField(java.lang.String fieldName, java.lang.Class type, int fieldSize) PUBLIC: Add the field to the table, default sizes are used. |
void |
addPrimaryKeyField(java.lang.String fieldName, java.lang.Class type) PUBLIC: Add the field to the table, default sizes are used. |
void |
addPrimaryKeyField(java.lang.String fieldName, java.lang.Class type, int fieldSize) PUBLIC: Add the field to the table, default sizes are used. |
java.util.Vector |
getFields() |
java.util.Vector |
getForeignKeys() |
java.util.Vector |
getPrimaryKeyFieldNames() |
void |
setFields(java.util.Vector field) |
void |
setForeignKeys(java.util.Vector foreignKeys) |
Methods inherited from class oracle.toplink.tools.schemaframework.DatabaseObjectDefinition |
getName, getQualifier, setName, setQualifier, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TableDefinition()
Method Detail |
public void addField(java.lang.String fieldName, java.lang.Class type)
type
- is the Java class type coresponding to the database type.public void addField(java.lang.String fieldName, java.lang.Class type, int fieldSize)
type
- is the Java class type coresponding to the database type.public void addField(java.lang.String fieldName, java.lang.Class type, int fieldSize, int fieldSubSize)
type
- is the Java class type coresponding to the database type.public void addField(java.lang.String fieldName, java.lang.String typeName)
typeName
- is the name of the nested type.public void addField(FieldDefinition field)
public void addForeignKeyConstraint(java.lang.String name, java.lang.String sourceField, java.lang.String targetField, java.lang.String targetTable)
public void addForeignKeyConstraint(ForeignKeyConstraint foreignKey)
public void addIdentityField(java.lang.String fieldName, java.lang.Class type)
type
- is the Java class type coresponding to the database type.public void addIdentityField(java.lang.String fieldName, java.lang.Class type, int fieldSize)
type
- is the Java class type coresponding to the database type.public void addPrimaryKeyField(java.lang.String fieldName, java.lang.Class type)
type
- is the Java class type coresponding to the database type.public void addPrimaryKeyField(java.lang.String fieldName, java.lang.Class type, int fieldSize)
type
- is the Java class type coresponding to the database type.public java.util.Vector getFields()
public java.util.Vector getForeignKeys()
public java.util.Vector getPrimaryKeyFieldNames()
public void setFields(java.util.Vector field)
public void setForeignKeys(java.util.Vector foreignKeys)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |