Class TypeDefinition
- java.lang.Object
-
- org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
-
- org.eclipse.persistence.tools.schemaframework.TypeDefinition
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class TypeDefinition extends DatabaseObjectDefinition
Purpose: Allow for Oracle 8 object-relational user defined type to be created.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Vectorfields-
Fields inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
name, qualifier
-
-
Constructor Summary
Constructors Constructor Description TypeDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddField(java.lang.String fieldName, java.lang.Class type)PUBLIC: Add the field to the type, default sizes are used.voidaddField(java.lang.String fieldName, java.lang.Class type, int fieldSize)PUBLIC: Add the field to the type.voidaddField(java.lang.String fieldName, java.lang.Class type, int fieldSize, int fieldSubSize)PUBLIC: Add the field to the type.voidaddField(java.lang.String fieldName, java.lang.String typeName)PUBLIC: Add the field to the type to a nested type.voidaddField(FieldDefinition field)PUBLIC: Add the field to the type.java.io.WriterbuildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer)INTERNAL: Return the create type statement.java.io.WriterbuildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer)INTERNAL: Return the drop type statement.java.util.VectorgetFields()voidsetFields(java.util.Vector fields)-
Methods inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
buildVPDCreationFunctionWriter, buildVPDCreationPolicyWriter, buildVPDDeletionWriter, clone, createDatabaseSchema, createDatabaseSchemaOnDatabase, createObject, createOnDatabase, dropDatabaseSchema, dropDatabaseSchemaOnDatabase, dropFromDatabase, dropObject, getDatabaseSchema, getFieldTypeDefinition, getFieldTypeDefinition, getFullName, getName, getQualifier, hasDatabaseSchema, postCreateObject, preDropObject, setName, setQualifier, shouldCreateDatabaseSchema, shouldCreateVPDCalls, toString
-
-
-
-
Method Detail
-
addField
public void addField(java.lang.String fieldName, java.lang.Class type)PUBLIC: Add the field to the type, default sizes are used.- Parameters:
type- is the Java class type coresponding to the database type.
-
addField
public void addField(java.lang.String fieldName, java.lang.Class type, int fieldSize)PUBLIC: Add the field to the type.- Parameters:
type- is the Java class type coresponding to the database type.
-
addField
public void addField(java.lang.String fieldName, java.lang.Class type, int fieldSize, int fieldSubSize)PUBLIC: Add the field to the type.- Parameters:
type- is the Java class type coresponding to the database type.
-
addField
public void addField(java.lang.String fieldName, java.lang.String typeName)PUBLIC: Add the field to the type to a nested type.- Parameters:
typeName- is the name of the nested type.
-
addField
public void addField(FieldDefinition field)
PUBLIC: Add the field to the type.
-
buildCreationWriter
public java.io.Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationExceptionINTERNAL: Return the create type statement.- Specified by:
buildCreationWriterin classDatabaseObjectDefinition- Throws:
ValidationException
-
buildDeletionWriter
public java.io.Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationExceptionINTERNAL: Return the drop type statement.- Specified by:
buildDeletionWriterin classDatabaseObjectDefinition- Throws:
ValidationException
-
getFields
public java.util.Vector getFields()
-
setFields
public void setFields(java.util.Vector fields)
-
-