Module org.eclipse.persistence.core
Class PackageDefinition
java.lang.Object
org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
org.eclipse.persistence.tools.schemaframework.PackageDefinition
- All Implemented Interfaces:
Serializable
,Cloneable
Purpose: Allow a semi-generic way of creating packages.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
name, qualifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProcedures
(StoredProcedureDefinition procedure) Packages can contain sets of procedures.void
addStatement
(String statement) The statements are the SQL lines of code.buildCreationWriter
(AbstractSession session, Writer writer) INTERNAL: Return the create table statement.buildDeletionWriter
(AbstractSession session, Writer writer) INTERNAL: Return the drop table statement.Packages can contain sets of procedures.The statements are the SQL lines of code.void
setProcedures
(List<StoredProcedureDefinition> procedures) Packages can contain sets of procedures.void
setStatements
(List<String> statements) The statements are the SQL lines of code.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
-
statements
-
procedures
-
-
Constructor Details
-
PackageDefinition
public PackageDefinition()
-
-
Method Details
-
addProcedures
Packages can contain sets of procedures. -
addStatement
The statements are the SQL lines of code. -
buildCreationWriter
public Writer buildCreationWriter(AbstractSession session, Writer writer) throws ValidationException INTERNAL: Return the create table statement.- Specified by:
buildCreationWriter
in classDatabaseObjectDefinition
- Throws:
ValidationException
-
buildDeletionWriter
public Writer buildDeletionWriter(AbstractSession session, Writer writer) throws ValidationException INTERNAL: Return the drop table statement.- Specified by:
buildDeletionWriter
in classDatabaseObjectDefinition
- Throws:
ValidationException
-
getProcedures
Packages can contain sets of procedures. -
getStatements
The statements are the SQL lines of code. -
setProcedures
Packages can contain sets of procedures. -
setStatements
The statements are the SQL lines of code.
-