Class NestedTableDefinition
- java.lang.Object
-
- org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
-
- org.eclipse.persistence.tools.schemaframework.NestedTableDefinition
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class NestedTableDefinition extends DatabaseObjectDefinition
Purpose: Allow for creation of nested table types.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NestedTableDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendTypeString(java.io.Writer writer, org.eclipse.persistence.internal.sessions.AbstractSession session)INTERNAL: Append the type to the statementjava.io.WriterbuildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer)INTERNAL: Return the DDL to create the varray.java.io.WriterbuildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer)INTERNAL: Return the DDL to drop the varray.java.lang.ClassgetType()PUBLIC: Return the type of the field.java.lang.StringgetTypeName()PUBLIC: Return the type of the field.intgetTypeSize()PUBLIC: Return the size of the element field, this is only required for some field types.voidsetType(java.lang.Class type)PUBLIC: Set the type of the field.voidsetTypeName(java.lang.String typeName)PUBLIC: Set the type of the field.voidsetTypeSize(int typeSize)PUBLIC: Set the size of the element field, this is only required for some field types.-
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
-
appendTypeString
public void appendTypeString(java.io.Writer writer, org.eclipse.persistence.internal.sessions.AbstractSession session) throws ValidationExceptionINTERNAL: Append the type to the statement- Parameters:
writer- Target writer where to write type string.session- Current session context.- Throws:
ValidationException- When invalid or inconsistent data were found.
-
buildCreationWriter
public java.io.Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationExceptionINTERNAL: Return the DDL to create the varray.- 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 DDL to drop the varray.- Specified by:
buildDeletionWriterin classDatabaseObjectDefinition- Throws:
ValidationException
-
getType
public java.lang.Class getType()
PUBLIC: Return the type of the field. This should be set to a java class, such as String.class, Integer.class or Date.class.
-
getTypeName
public java.lang.String getTypeName()
PUBLIC: Return the type of the field. This is the exact DB type name, which can be used instead of the Java class.
-
getTypeSize
public int getTypeSize()
PUBLIC: Return the size of the element field, this is only required for some field types.
-
setType
public void setType(java.lang.Class type)
PUBLIC: Set the type of the field. This should be set to a java class, such as String.class, Integer.class or Date.class.
-
setTypeName
public void setTypeName(java.lang.String typeName)
PUBLIC: Set the type of the field. This is the exact DB type name, which can be used instead of the Java class.
-
setTypeSize
public void setTypeSize(int typeSize)
PUBLIC: Set the size of the element field, this is only required for some field types.
-
-