Class StoredProcedureGenerator
- java.lang.Object
-
- org.eclipse.persistence.tools.schemaframework.StoredProcedureGenerator
-
public class StoredProcedureGenerator extends Object
Purpose: To generate StoredProcedures from EclipseLink ProjectsDescription: This Class was designed to read in a project and produce StoredProcedures. It then modifies the descriptors files of the project to use these StoredProcedures. NOTE: reads are not supported in Oracle.
Responsibilities:
- Since:
- TopLink 2.1
- Author:
- Gordon Yorke
-
-
Field Summary
Fields Modifier and Type Field Description SchemaManager
schemaManager
-
Constructor Summary
Constructors Constructor Description StoredProcedureGenerator(SchemaManager schemaMngr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generateAmendmentClass(Writer outputWriter, String packageName, String className)
PUBLIC: Generate an amendment class that will set up the descriptors to use these stored procedures.void
generateStoredProcedures()
PUBLIC: generates all the stored procedures using the schema manager.void
generateStoredProcedures(Writer writerOrNull)
PUBLIC: generates all the stored procedures to the writer using the schema manager outputDDLToWriter(Writer).String
getPrefix()
org.eclipse.persistence.internal.sessions.AbstractSession
getSession()
Writer
getWriter()
void
setPrefix(String prefix)
void
writeDefinition(StoredProcedureDefinition definition)
-
-
-
Field Detail
-
schemaManager
public SchemaManager schemaManager
-
-
Constructor Detail
-
StoredProcedureGenerator
public StoredProcedureGenerator(SchemaManager schemaMngr)
-
-
Method Detail
-
generateAmendmentClass
public void generateAmendmentClass(Writer outputWriter, String packageName, String className) throws ValidationException
PUBLIC: Generate an amendment class that will set up the descriptors to use these stored procedures.- Throws:
ValidationException
-
generateStoredProcedures
public void generateStoredProcedures()
PUBLIC: generates all the stored procedures using the schema manager. The schema manager may be set to write directly to the database on the a file. See outputDDLToWriter(Writer) and outputDDLToDatabase() on SchemaManager
-
generateStoredProcedures
public void generateStoredProcedures(Writer writerOrNull)
PUBLIC: generates all the stored procedures to the writer using the schema manager outputDDLToWriter(Writer).
-
getPrefix
public String getPrefix()
-
getSession
public org.eclipse.persistence.internal.sessions.AbstractSession getSession()
-
getWriter
public Writer getWriter()
-
setPrefix
public void setPrefix(String prefix)
-
writeDefinition
public void writeDefinition(StoredProcedureDefinition definition)
-
-