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
FieldsFields inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
name, qualifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProcedures(StoredProcedureDefinition procedure) Packages can contain sets of procedures.voidaddStatement(String statement) The statements are the SQL lines of code.buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) INTERNAL: Return the create table statement.buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) INTERNAL: Return the drop table statement.Packages can contain sets of procedures.The statements are the SQL lines of code.voidsetProcedures(List<StoredProcedureDefinition> procedures) Packages can contain sets of procedures.voidsetStatements(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(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws ValidationException INTERNAL: Return the create table statement.- Specified by:
buildCreationWriterin classDatabaseObjectDefinition- Throws:
ValidationException
-
buildDeletionWriter
public Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws ValidationException INTERNAL: Return the drop table statement.- Specified by:
buildDeletionWriterin 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.
-