|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.kernelpanic.dbmonster.DBMonster
DBMonster is a test data generation tool for SQL databases.
Field Summary | |
static String |
CONNECTION_PROVIDER_KEY
A key under the connection provider is stored in the DBMonsterContext. |
static String |
DICTIONARY_MANAGER_KEY
A key under the dictionaries manager is stored in context. |
static String |
LOGGER_KEY
A key under the logger is stored in DBMonsterContext. |
static String |
PROGRESS_MONITOR_KEY
A key under progress monitor (if any) is stored in the context. |
static String |
RANDOM_KEY
A key under the random number generator is stored in context. |
static String |
VERSION
DBMonster's version. |
Constructor Summary | |
DBMonster()
|
Method Summary | |
void |
addSchema(Schema schema)
Adds a schema. |
void |
doTheJob()
Does the job. ;) Before calling this method ensure that: Connection provider is set. |
ConnectionProvider |
getConnectionProvider()
Returns a connection provider used by this instance. |
Log |
getLogger()
Returns logger. |
ProgressMonitor |
getProgressMonitor()
Returns the progress monitor. |
static String |
getVersion()
Returns the version. |
void |
setConnectionProvider(ConnectionProvider cp)
Sets a connection provider. |
void |
setLogger(Log log)
Sets a logger for this DBMonster instance. |
void |
setPostScript(File postScript)
|
void |
setPreScript(File preScript)
|
void |
setProgressMonitor(ProgressMonitor monitor)
Sets the progress monitor. |
void |
setProperties(Properties props)
Sets the properties. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String VERSION
public static final String LOGGER_KEY
public static final String CONNECTION_PROVIDER_KEY
public static final String DICTIONARY_MANAGER_KEY
public static final String RANDOM_KEY
public static final String PROGRESS_MONITOR_KEY
Constructor Detail |
public DBMonster()
Method Detail |
public ConnectionProvider getConnectionProvider()
public void setConnectionProvider(ConnectionProvider cp)
cp
- a connection providerpublic void addSchema(Schema schema) throws Exception
schema
- a schema to add.
Exception
- if schema with the same name already existspublic void setLogger(Log log)
log
- a loggerpublic Log getLogger()
public void setProperties(Properties props)
props
- the propertiespublic void doTheJob() throws Exception
Exception
- on errors.public static final String getVersion()
public ProgressMonitor getProgressMonitor()
public void setProgressMonitor(ProgressMonitor monitor)
monitor
- progress monitor.public void setPostScript(File postScript)
public void setPreScript(File preScript)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |