Class PackageDefinition

java.lang.Object
org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
org.eclipse.persistence.tools.schemaframework.PackageDefinition
All Implemented Interfaces:
Serializable, Cloneable

public class PackageDefinition extends DatabaseObjectDefinition

Purpose: Allow a semi-generic way of creating packages.

See Also:
  • Field Details

    • statements

      protected Vector statements
    • procedures

      protected Vector procedures
  • Constructor Details

    • PackageDefinition

      public PackageDefinition()
  • Method Details

    • addProcedures

      public void addProcedures(StoredProcedureDefinition procedure)
      Packages can contain sets of procedures.
    • addStatement

      public void addStatement(String statement)
      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:
      buildCreationWriter in class DatabaseObjectDefinition
      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:
      buildDeletionWriter in class DatabaseObjectDefinition
      Throws:
      ValidationException
    • getProcedures

      public Vector getProcedures()
      Packages can contain sets of procedures.
    • getStatements

      public Vector getStatements()
      The statements are the SQL lines of code.
    • setProcedures

      public void setProcedures(Vector procedures)
      Packages can contain sets of procedures.
    • setStatements

      public void setStatements(Vector statements)
      The statements are the SQL lines of code.