EclipseLink 2.2.0, build 'v20110202-r8913' API Reference

org.eclipse.persistence.tools.schemaframework
Class PackageDefinition

java.lang.Object
  extended by org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
      extended by 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
protected  java.util.Vector procedures
           
protected  java.util.Vector statements
           
 
Fields inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
name, qualifier
 
Constructor Summary
PackageDefinition()
           
 
Method Summary
 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
clone, createObject, createOnDatabase, dropFromDatabase, dropObject, getFullName, getName, getQualifier, postCreateObject, preDropObject, setName, setQualifier, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

statements

protected java.util.Vector statements

procedures

protected java.util.Vector procedures
Constructor Detail

PackageDefinition

public PackageDefinition()
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 class DatabaseObjectDefinition
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 class DatabaseObjectDefinition
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.


EclipseLink 2.2.0, build 'v20110202-r8913' API Reference