|
Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated) 11g Release 1 (11.1.1) B32476-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.tools.workbench.TableCreatorClassGenerator
public class TableCreatorClassGenerator
Purpose: Allow for a class storing a TopLink table creator's tables (meta-data) to be generated. This class can then be used at runtime to (re)create a project's database schema.
Constructor Summary | |
---|---|
TableCreatorClassGenerator()
Create a new generator. |
|
TableCreatorClassGenerator(TableCreator tableCreator)
Create a new generator to output the table creator. |
|
TableCreatorClassGenerator(TableCreator tableCreator,
java.lang.String projectClassName,
java.lang.String fileName)
Create a new generator to output the table creator. |
|
TableCreatorClassGenerator(TableCreator tableCreator,
java.lang.String projectClassName,
java.io.Writer outputWriter)
Create a new generator to output the table creator. |
Method Summary | |
---|---|
void |
generate()
Generate the project class, output the java source code to the stream or file. |
void |
generate(boolean useUnicode)
Generate the creator class, output the java source code to the stream or file. |
java.lang.String |
getClassName()
Return the name of class to be generated. |
java.lang.String |
getOutputFileName()
Return the file name that the generate .java file will be output to. |
java.lang.String |
getOutputPath()
Return the path that the generate .java file will be output to. |
java.io.Writer |
getOutputWriter()
Return the writer the output to. |
java.lang.String |
getPackageName()
Return the package name of class to be generated. |
TableCreator |
getTableCreator()
Return the table creator to generate from. |
void |
setClassName(java.lang.String newClassName)
Set the name of class to be generated. |
void |
setOutputFileName(java.lang.String newOutputFileName)
Set the file name that the generate .java file will be output to. |
void |
setOutputPath(java.lang.String newOutputPath)
Set the path that the generate .java file will be output to. |
void |
setOutputWriter(java.io.Writer outputWriter)
Set the writer the output to. |
void |
setPackageName(java.lang.String newPackageName)
Set the package name of class to be generated. |
void |
setTableCreator(TableCreator tableCreator)
Set the table creator to generate from. |
static void |
write(TableCreator tableCreator,
java.lang.String creatorClassName,
java.lang.String fileName)
Generate the source code to a table creator class to the table creator's tables into the file. |
static void |
write(TableCreator tableCreator,
java.lang.String creatorClassName,
java.io.Writer writer)
Generate the source code to a table creator class to the table creator's tables into the writer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableCreatorClassGenerator()
public TableCreatorClassGenerator(TableCreator tableCreator)
public TableCreatorClassGenerator(TableCreator tableCreator, java.lang.String projectClassName, java.io.Writer outputWriter)
public TableCreatorClassGenerator(TableCreator tableCreator, java.lang.String projectClassName, java.lang.String fileName)
Method Detail |
---|
public void generate(boolean useUnicode) throws ValidationException
ValidationException
public void generate() throws ValidationException
ValidationException
public java.lang.String getClassName()
public java.lang.String getOutputFileName()
public java.lang.String getOutputPath()
public java.io.Writer getOutputWriter()
public java.lang.String getPackageName()
public TableCreator getTableCreator()
public void setClassName(java.lang.String newClassName)
public void setOutputFileName(java.lang.String newOutputFileName)
public void setOutputPath(java.lang.String newOutputPath)
public void setOutputWriter(java.io.Writer outputWriter)
public void setPackageName(java.lang.String newPackageName)
public void setTableCreator(TableCreator tableCreator)
public static void write(TableCreator tableCreator, java.lang.String creatorClassName, java.io.Writer writer)
public static void write(TableCreator tableCreator, java.lang.String creatorClassName, java.lang.String fileName)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |