public class MakeDerbyImportsExports
extends java.lang.Object
implements java.io.Serializable
org.apache.derby.tools.ij
command line tool.
The export script will export the data in each table to a CSV file. A separate file is created for each table.
The import script will import the CSV data into the appropriate table in the database. The import script assumes the database tables are void of any data, meaning the script does not attempt to clear any tables prior to doing the imports. The import script also assumes that the CSV data contains the same number of columns as defined in the respective table.
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
EXPORT
The template for table export statements.
|
private static java.lang.String |
IMPORT
The template for table import statements.
|
private static long |
serialVersionUID
The class' serialization version id.
|
Constructor and Description |
---|
MakeDerbyImportsExports(java.lang.String poolname)
The default constructor for the class.
|
Modifier and Type | Method and Description |
---|---|
private static void |
cmdLineError()
Handles command line parameter errors.
|
static void |
main(java.lang.String[] args)
Main entry point for when the class is started from a command line.
|
private static final long serialVersionUID
private static final java.lang.String IMPORT
private static final java.lang.String EXPORT
public MakeDerbyImportsExports(java.lang.String poolname)
public static void main(java.lang.String[] args)
args
- (String[]) A String
array of startup
parameters for the class.private static void cmdLineError()