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(java.lang.String fieldName,
java.lang.Class type)
PUBLIC:
Add the field to the type, default sizes are used.
|
void |
addField(java.lang.String fieldName,
java.lang.Class type,
int fieldSize)
PUBLIC:
Add the field to the type.
|
void |
addField(java.lang.String fieldName,
java.lang.Class type,
int fieldSize,
int fieldSubSize)
PUBLIC:
Add the field to the type.
|
void |
addField(java.lang.String fieldName,
java.lang.String typeName)
PUBLIC:
Add the field to the type to a nested type.
|
java.io.Writer |
buildCreationWriter(AbstractSession session,
java.io.Writer writer)
INTERNAL:
Return the create type statement.
|
java.io.Writer |
buildDeletionWriter(AbstractSession session,
java.io.Writer writer)
INTERNAL:
Return the drop type statement.
|
java.util.Vector |
getFields() |
void |
setFields(java.util.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(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 java.io.Writer buildCreationWriter(AbstractSession session, java.io.Writer writer) throws ValidationException
buildCreationWriter
in class DatabaseObjectDefinition
ValidationException
public java.io.Writer buildDeletionWriter(AbstractSession session, java.io.Writer writer) throws ValidationException
buildDeletionWriter
in class DatabaseObjectDefinition
ValidationException
public java.util.Vector getFields()
public void setFields(java.util.Vector fields)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference