Top Description Fields Constructors Methods
org.eclipse.persistence.tools.schemaframework

public Class NestedTableDefinition

extends DatabaseObjectDefinition
Class Inheritance
Imports
java.io.*, org.eclipse.persistence.internal.databaseaccess.*, org.eclipse.persistence.internal.sessions.AbstractSession, org.eclipse.persistence.exceptions.*

Purpose: Allow for creation of nested table types.

Field Summary

Modifier and TypeField and Description
protected Class<?>
protected String
protected int
Inherited from org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition:
namequalifier

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
appendTypeString(final Writer
Target writer where to write type string.
writer
,
final AbstractSession
Current session context.
session
)

INTERNAL: Append the type to the statement

public Writer
buildCreationWriter(AbstractSession session, Writer writer)

Implements abstract org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition.buildCreationWriter.

INTERNAL: Return the DDL to create the varray.
public Writer
public Class<?>
getType()

PUBLIC: Return the type of the field.

public String
getTypeName()

PUBLIC: Return the type of the field.

public int
getTypeSize()

PUBLIC: Return the size of the element field, this is only required for some field types.

public void
setType(Class<?> type)

PUBLIC: Set the type of the field.

public void
setTypeName(String typeName)

PUBLIC: Set the type of the field.

public void
setTypeSize(int typeSize)

PUBLIC: Set the size of the element field, this is only required for some field types.

Inherited from org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition:
buildVPDCreationFunctionWriterbuildVPDCreationPolicyWriterbuildVPDDeletionWriterclonecreateDatabaseSchemacreateDatabaseSchemaOnDatabasecreateObjectcreateOnDatabasedropDatabaseSchemadropDatabaseSchemaOnDatabasedropFromDatabasedropObjectgetDatabaseSchemagetFieldTypeDefinitiongetFieldTypeDefinitiongetFullNamegetNamegetQualifierhasDatabaseSchemapostCreateObjectpreDropObjectsetNamesetQualifiershouldCreateDatabaseSchemashouldCreateVPDCallstoString

Field Detail

typeback to summary
protected Class<?> type
typeNameback to summary
protected String typeName
typeSizeback to summary
protected int typeSize

Constructor Detail

NestedTableDefinitionback to summary
public NestedTableDefinition()

Method Detail

appendTypeStringback to summary
public void appendTypeString(final Writer writer, final AbstractSession session) throws ValidationException

INTERNAL: Append the type to the statement

Parameters
writer:Writer

Target writer where to write type string.

session:AbstractSession

Current session context.

Exceptions
ValidationException:
When invalid or inconsistent data were found.
buildCreationWriterback to summary
public Writer buildCreationWriter(AbstractSession session, Writer writer) throws ValidationException

Implements abstract org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition.buildCreationWriter.

INTERNAL: Return the DDL to create the varray.

Annotations
@Override
buildDeletionWriterback to summary
public Writer buildDeletionWriter(AbstractSession session, Writer writer) throws ValidationException

Implements abstract org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition.buildDeletionWriter.

INTERNAL: Return the DDL to drop the varray.

Annotations
@Override
getTypeback to summary
public 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.

getTypeNameback to summary
public 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.

getTypeSizeback to summary
public int getTypeSize()

PUBLIC: Return the size of the element field, this is only required for some field types.

setTypeback to summary
public void setType(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.

setTypeNameback to summary
public void setTypeName(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.

setTypeSizeback to summary
public void setTypeSize(int typeSize)

PUBLIC: Set the size of the element field, this is only required for some field types.