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

public Class ViewDefinition

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

Purpose: Allow for creation of views.

Field Summary

Modifier and TypeField and Description
protected String
Inherited from org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition:
namequalifier

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Writer
public Writer
public String
getSelectClause()

The select clause is the select statement that is mapped into the view.

public void
setSelectClause(String selectClause)

The select clause is the select statement that is mapped into the view.

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

Field Detail

selectClauseback to summary
protected String selectClause

Constructor Detail

ViewDefinitionback to summary
public ViewDefinition()

Method Detail

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 view.

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 view.

Annotations
@Override
getSelectClauseback to summary
public String getSelectClause()

The select clause is the select statement that is mapped into the view. This is database specific SQL code.

setSelectClauseback to summary
public void setSelectClause(String selectClause)

The select clause is the select statement that is mapped into the view. This is database specific SQL code.