|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.testdata.Importer
public class Importer
Generic Test data importer. Recursively scans a directory for test data items and submits them via JDBC to a predefined database. The tables and attribute names are mapped straightforward to the hibernate configuration expected on the classpath. This implementation relies on auto index of all tables.
| Constructor Summary | |
|---|---|
Importer(String prefix,
long base)
|
|
| Method Summary | |
|---|---|
protected String |
getAsPrimaryKey(String id)
Gets the supplied id as a primary key representation. |
protected String |
getTableName(nu.xom.Document item)
Returns the table name for the given item. |
static void |
main(String[] args)
The main method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Importer(String prefix,
long base)
| Method Detail |
|---|
public static void main(String[] args)
args - Command line arguments.protected String getAsPrimaryKey(String id)
id - the id
protected String getTableName(nu.xom.Document item)
item - the item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||