Class TypeDefinition
java.lang.Object
org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
org.eclipse.persistence.tools.schemaframework.TypeDefinition
- All Implemented Interfaces:
Serializable
,Cloneable
Purpose: Allow for Oracle 8 object-relational user defined type to be created.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
name, qualifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
PUBLIC: Add the field to the type, default sizes are used.void
PUBLIC: Add the field to the type.void
PUBLIC: Add the field to the type.void
PUBLIC: Add the field to the type to a nested type.void
addField
(FieldDefinition field) PUBLIC: Add the field to the type.buildCreationWriter
(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) INTERNAL: Return the create type statement.buildDeletionWriter
(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) INTERNAL: Return the drop type statement.void
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
-
Field Details
-
fields
-
-
Constructor Details
-
TypeDefinition
public TypeDefinition()
-
-
Method Details
-
addField
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: Add the field to the type.- Parameters:
type
- is the Java class type coresponding to the database type.
-
addField
PUBLIC: Add the field to the type.- Parameters:
type
- is the Java class type coresponding to the database type.
-
addField
PUBLIC: Add the field to the type to a nested type.- Parameters:
typeName
- is the name of the nested type.
-
addField
PUBLIC: Add the field to the type. -
buildCreationWriter
public Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws ValidationException INTERNAL: Return the create type statement.- Specified by:
buildCreationWriter
in classDatabaseObjectDefinition
- Throws:
ValidationException
-
buildDeletionWriter
public Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws ValidationException INTERNAL: Return the drop type statement.- Specified by:
buildDeletionWriter
in classDatabaseObjectDefinition
- Throws:
ValidationException
-
getFields
-
setFields
-