public class PackageDefinition extends DatabaseObjectDefinition
Purpose: Allow a semi-generic way of creating packages.
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector |
procedures |
protected java.util.Vector |
statements |
name, qualifier
Constructor and Description |
---|
PackageDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
addProcedures(StoredProcedureDefinition procedure)
Packages can contain sets of procedures.
|
void |
addStatement(java.lang.String statement)
The statements are the SQL lines of code.
|
java.io.Writer |
buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL:
Return the create table statement.
|
java.io.Writer |
buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL:
Return the drop table statement.
|
java.util.Vector |
getProcedures()
Packages can contain sets of procedures.
|
java.util.Vector |
getStatements()
The statements are the SQL lines of code.
|
void |
setProcedures(java.util.Vector procedures)
Packages can contain sets of procedures.
|
void |
setStatements(java.util.Vector statements)
The statements are the SQL lines of code.
|
buildVPDCreationFunctionWriter, buildVPDCreationPolicyWriter, buildVPDDeletionWriter, clone, createDatabaseSchema, createDatabaseSchemaOnDatabase, createObject, createOnDatabase, dropDatabaseSchema, dropDatabaseSchemaOnDatabase, dropFromDatabase, dropObject, getDatabaseSchema, getFullName, getName, getQualifier, hasDatabaseSchema, postCreateObject, preDropObject, setName, setQualifier, shouldCreateDatabaseSchema, shouldCreateVPDCalls, toString
protected java.util.Vector statements
protected java.util.Vector procedures
public void addProcedures(StoredProcedureDefinition procedure)
public void addStatement(java.lang.String statement)
public java.io.Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationException
buildCreationWriter
in class DatabaseObjectDefinition
ValidationException
public java.io.Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationException
buildDeletionWriter
in class DatabaseObjectDefinition
ValidationException
public java.util.Vector getProcedures()
public java.util.Vector getStatements()
public void setProcedures(java.util.Vector procedures)
public void setStatements(java.util.Vector statements)