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.Vectorproceduresprotected java.util.Vectorstatements-
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 voidaddProcedures(StoredProcedureDefinition procedure)Packages can contain sets of procedures.voidaddStatement(java.lang.String statement)The statements are the SQL lines of code.java.io.WriterbuildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer)INTERNAL: Return the create table statement.java.io.WriterbuildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer)INTERNAL: Return the drop table statement.java.util.VectorgetProcedures()Packages can contain sets of procedures.java.util.VectorgetStatements()The statements are the SQL lines of code.voidsetProcedures(java.util.Vector procedures)Packages can contain sets of procedures.voidsetStatements(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 ValidationExceptionINTERNAL: Return the create table statement.- Specified by:
buildCreationWriterin classDatabaseObjectDefinition- Throws:
ValidationException
-
buildDeletionWriter
public java.io.Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationExceptionINTERNAL: Return the drop table statement.- Specified by:
buildDeletionWriterin 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.
-
-