public class TypeDefinition extends DatabaseObjectDefinition
Purpose: Allow for Oracle 8 object-relational user defined type to be created.
name, qualifier
Constructor and Description |
---|
TypeDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
addField(FieldDefinition field)
PUBLIC:
Add the field to the type.
|
void |
addField(String fieldName,
Class type)
PUBLIC:
Add the field to the type, default sizes are used.
|
void |
addField(String fieldName,
Class type,
int fieldSize)
PUBLIC:
Add the field to the type.
|
void |
addField(String fieldName,
Class type,
int fieldSize,
int fieldSubSize)
PUBLIC:
Add the field to the type.
|
void |
addField(String fieldName,
String typeName)
PUBLIC:
Add the field to the type to a nested type.
|
Writer |
buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
Writer writer)
INTERNAL:
Return the create type statement.
|
Writer |
buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
Writer writer)
INTERNAL:
Return the drop type statement.
|
Vector |
getFields() |
void |
setFields(Vector fields) |
buildVPDCreationFunctionWriter, buildVPDCreationPolicyWriter, buildVPDDeletionWriter, clone, createDatabaseSchema, createDatabaseSchemaOnDatabase, createObject, createOnDatabase, dropDatabaseSchema, dropDatabaseSchemaOnDatabase, dropFromDatabase, dropObject, getDatabaseSchema, getFullName, getName, getQualifier, postCreateObject, preDropObject, setName, setQualifier, shouldCreateDatabaseSchema, shouldCreateVPDCalls, toString
public void addField(String fieldName, Class type)
type
- is the Java class type coresponding to the database type.public void addField(String fieldName, Class type, int fieldSize)
type
- is the Java class type coresponding to the database type.public void addField(String fieldName, Class type, int fieldSize, int fieldSubSize)
type
- is the Java class type coresponding to the database type.public void addField(String fieldName, String typeName)
typeName
- is the name of the nested type.public void addField(FieldDefinition field)
public Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws ValidationException
buildCreationWriter
in class DatabaseObjectDefinition
ValidationException
public Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws ValidationException
buildDeletionWriter
in class DatabaseObjectDefinition
ValidationException
public Vector getFields()
public void setFields(Vector fields)