Class ViewDefinition
java.lang.Object
org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
org.eclipse.persistence.tools.schemaframework.ViewDefinition
- All Implemented Interfaces:
Serializable
,Cloneable
Purpose: Allow for creation of views.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
name, qualifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildCreationWriter
(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) INTERNAL: Return the DDL to create the view.buildDeletionWriter
(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) INTERNAL: Return the DDL to drop the view.The select clause is the select statement that is mapped into the view.void
setSelectClause
(String selectClause) The select clause is the select statement that is mapped into the view.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
-
selectClause
-
-
Constructor Details
-
ViewDefinition
public ViewDefinition()
-
-
Method Details
-
buildCreationWriter
public Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws ValidationException INTERNAL: Return the DDL to create the view.- 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 DDL to drop the view.- Specified by:
buildDeletionWriter
in classDatabaseObjectDefinition
- Throws:
ValidationException
-
getSelectClause
The select clause is the select statement that is mapped into the view. This is database specific SQL code. -
setSelectClause
The select clause is the select statement that is mapped into the view. This is database specific SQL code.
-