public class DBAccessorGenerator
extends java.lang.Object
| Constructor and Description |
|---|
DBAccessorGenerator()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
The main method allows to run this tool from the command-line.
|
void |
startGenerator(java.lang.String aDriver,
java.lang.String aUrl,
java.lang.String aTable,
java.lang.String aPackageName)
This method starts the generator for the specified parameters.
|
void |
startGenerator(java.lang.String aDriver,
java.lang.String aUrl,
java.lang.String aTable,
java.lang.String aUser,
java.lang.String aPassword,
java.lang.String aPackageName,
boolean aDebug)
This method starts the generator for the specified parameters.
|
public void startGenerator(java.lang.String aDriver,
java.lang.String aUrl,
java.lang.String aTable,
java.lang.String aPackageName)
throws GeneratorException
aDriver - String with the JDBC database driver class.aUrl - String with the URL for the database.aTable - String with the tablename to generate the accessor object for.aPackageName - String with the packagename for the generated class. Can be empty String.GeneratorExceptionpublic void startGenerator(java.lang.String aDriver,
java.lang.String aUrl,
java.lang.String aTable,
java.lang.String aUser,
java.lang.String aPassword,
java.lang.String aPackageName,
boolean aDebug)
throws GeneratorException
aDriver - String with the JDBC database driver class.aUrl - String with the URL for the database.aTable - String with the tablename to generate the accessor object for.aUser - String with the username for the DB connection. This can be 'null'.aPassword - String with the password for the specified user. This can be 'null'.aPackageName - String with the output packagename. This can be empty String.aDebug - boolean to indicate whether output should be given to stdout.GeneratorException - whenever something goes wrong.public static void main(java.lang.String[] args)
args - Copyright © 2014. All Rights Reserved.