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