public class Settings extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DATABASE_DRIVER_CLASS_PROPERTY |
static String |
DATABASE_PASSWORD_PROPERTY |
static String |
DATABASE_URL_PROPERTY |
static String |
DATABASE_USER_PROPERTY |
static String |
NULL_REPLACEMENT |
| Modifier and Type | Method and Description |
|---|---|
static Input |
getInputObject(String fileFormat,
String inputSpec)
An analogous method to
getOutputObject(String, String) only handling input. |
static Output |
getOutputObject(String fileFormat,
String outputSpec)
Creates an "output object" which is a wrapper object able to create a dbUnit consumer
that is then used to "consume" the database data and produce an output.
|
public static final String DATABASE_DRIVER_CLASS_PROPERTY
public static final String DATABASE_URL_PROPERTY
public static final String DATABASE_USER_PROPERTY
public static final String DATABASE_PASSWORD_PROPERTY
public static final String NULL_REPLACEMENT
public static Output getOutputObject(String fileFormat, String outputSpec) throws IOException
For XML format, the outputSpec can be either a file name or null (in which case
the xml is written to standard output).
For CSV format, the outputSpec is a path to a directory (possibly non-existing)
to which the CSV files corresponding to database tables will be written.
fileFormat - one of the values specified in FileFormat (case-insensitive)zipped - true if the output should be ZIP compressedoutputSpec - format dependent specifier of output locationIOExceptionpublic static Input getInputObject(String fileFormat, String inputSpec) throws IOException
getOutputObject(String, String) only handling input.fileFormat - inputSpec - IOExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.