public class VarrayDefinition extends DatabaseObjectDefinition
Purpose: Allow for creation of varray type.
Modifier and Type | Field and Description |
---|---|
protected int |
size |
protected java.lang.Class |
type |
protected java.lang.String |
typeName |
protected int |
typeSize |
name, qualifier
Constructor and Description |
---|
VarrayDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
appendTypeString(java.io.Writer writer,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Append the type.
|
java.io.Writer |
buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL:
Return the DDL to create the
VARRAY . |
java.io.Writer |
buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL:
Return the DDL to drop the varray.
|
int |
getSize()
PUBLIC:
Return the maximum size of the array.
|
java.lang.Class |
getType()
PUBLIC:
Return the type of the field.
|
java.lang.String |
getTypeName()
PUBLIC:
Return the type of the field.
|
int |
getTypeSize()
PUBLIC:
Return the size of the element field, this is only required for some field types.
|
void |
setSize(int size)
PUBLIC:
Set the maximum size of the array.
|
void |
setType(java.lang.Class type)
PUBLIC:
Set the type of the field.
|
void |
setTypeName(java.lang.String typeName)
PUBLIC:
Set the type of the field.
|
void |
setTypeSize(int typeSize)
PUBLIC:
Set the size of the element field, this is only required for some field types.
|
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
protected int typeSize
protected int size
protected java.lang.Class type
protected java.lang.String typeName
public void appendTypeString(java.io.Writer writer, org.eclipse.persistence.internal.sessions.AbstractSession session) throws ValidationException
writer
- Target writer where to write type string.session
- Current session context.ValidationException
- When invalid or inconsistent data were found.public java.io.Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationException
VARRAY
.buildCreationWriter
in class DatabaseObjectDefinition
writer
- Target writer.session
- Current session context.CREATE TYPE ... AS VARRAY (...) OF ...
already written to it.ValidationException
- When invalid or inconsistent data were found.public java.io.Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationException
buildDeletionWriter
in class DatabaseObjectDefinition
ValidationException
public int getSize()
public java.lang.Class getType()
public java.lang.String getTypeName()
public int getTypeSize()
public void setSize(int size)
public void setType(java.lang.Class type)
public void setTypeName(java.lang.String typeName)
public void setTypeSize(int typeSize)