|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.rd.kodo.enhance.ApplicationIdTool
Generates a class appropriate for use as an application identity class.
| Constructor Summary | |
ApplicationIdTool(com.solarmetric.rd.kodo.conf.JDOConfiguration conf,
java.lang.Class type)
Constructs a new ApplicationIdTool capable of generating an object id class for type. |
|
ApplicationIdTool(com.solarmetric.rd.kodo.conf.JDOConfiguration conf,
com.solarmetric.rd.kodo.meta.ClassMetaData meta)
Constructs a new tool instance capable of generating an object id class for meta. |
|
| Method Summary | |
boolean |
generateCode()
Generates the sourcecode for the application id class; returns false if the class is invalid. |
java.lang.String |
getCode()
Return the code generated for the application id, or null if invalid class or the generateCode() method
has not been called. |
java.io.File |
getCodeDirectory()
The directory to write source to. |
serp.util.CodeFormat |
getCodeFormat()
The code formatter for the generated Java code. |
boolean |
getIgnoreErrors()
Return false if this tool is configured to throw an exception on an attempt to generate an id class for a type that does not use application identity. |
com.solarmetric.rd.kodo.meta.ClassMetaData |
getMetaData()
Return metadata for the type we are generating an application id for. |
java.lang.Class |
getType()
Return the type we are generating an application id for. |
static void |
main(java.lang.String[] args)
Usage: java com.solarmetric.kodo.enhance.ApplicationIdTool [option]* <class name | .java file | .class file | .jdo file>+ |
static boolean |
run(com.solarmetric.rd.kodo.conf.JDOConfiguration conf,
java.lang.String[] args,
java.io.File dir,
boolean ignoreErrors,
serp.util.CodeFormat format,
java.lang.ClassLoader loader)
Run the tool. |
void |
setCodeDirectory(java.io.File dir)
The directory to write source to. |
void |
setCodeFormat(serp.util.CodeFormat format)
Set the code formatter for the generated Java code. |
void |
setIgnoreErrors(boolean ignore)
Set to false if this tool should throw an exception on an attempt to generate an id class for a type that does not use application identity. |
void |
writeCode()
Writes the generated code to the proper file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ApplicationIdTool(com.solarmetric.rd.kodo.conf.JDOConfiguration conf,
java.lang.Class type)
type.
public ApplicationIdTool(com.solarmetric.rd.kodo.conf.JDOConfiguration conf,
com.solarmetric.rd.kodo.meta.ClassMetaData meta)
meta.
| Method Detail |
public boolean getIgnoreErrors()
public void setIgnoreErrors(boolean ignore)
public serp.util.CodeFormat getCodeFormat()
public void setCodeFormat(serp.util.CodeFormat format)
public java.io.File getCodeDirectory()
public void setCodeDirectory(java.io.File dir)
public java.lang.Class getType()
public com.solarmetric.rd.kodo.meta.ClassMetaData getMetaData()
public java.lang.String getCode()
generateCode() method
has not been called.
public boolean generateCode()
throws java.io.IOException
java.io.IOException
public void writeCode()
throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)
throws java.io.IOException
Usage: java com.solarmetric.kodo.enhance.ApplicationIdTool [option]* <class name | .java file | .class file | .jdo file>+
Where the following options are recognized.
Configuration; optional.JDOConfiguration can be
set by using their names and supplying a value; for example:
-licenseKey adslfja83r3lkadfCodeFormat.Each additional argument can be either the full class name of the type to create an id class for, the path to the .java file for the type, the path to the .class file for the type, or the path to a .jdo file listing one or more types. If a .java file already exists for an application id, it will be backed up to a file named <orig file name>~.
java.io.IOException
public static boolean run(com.solarmetric.rd.kodo.conf.JDOConfiguration conf,
java.lang.String[] args,
java.io.File dir,
boolean ignoreErrors,
serp.util.CodeFormat format,
java.lang.ClassLoader loader)
throws java.io.IOException
java.io.IOException
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||