Groovy Documentation

org.codehaus.griffon.cli.shell.command
[Java] Class ImportDatabaseCommand

java.lang.Object
  org.codehaus.griffon.cli.shell.AbstractGriffonCommand
      org.codehaus.griffon.cli.shell.command.ImportDatabaseCommand

@Command(scope = "dbunit",
    name = "import-database",
    description = "Imports a database in XML format")
public class ImportDatabaseCommand
extends AbstractGriffonCommand

Field Summary
private boolean caseSensitiveTableNames

private boolean columnSensing

private String datasource

private boolean dtdMetadata

private List files

private String format

private String operation

 
Fields inherited from class AbstractGriffonCommand
env, nonInteractive
 
Constructor Summary
ImportDatabaseCommand()

 
Method Summary
 
Methods inherited from class AbstractGriffonCommand
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

caseSensitiveTableNames

@Option(name = "--case-sensitive-table-names",
        description = " Whether or not the created dataset should use case sensitive table names",
        required = false)
private boolean caseSensitiveTableNames


columnSensing

@Option(name = "--column-sensing",
        description = "Read in the whole XML into a buffer and dynamically add new columns as they appear.",
        required = false)
private boolean columnSensing


datasource

@Option(name = "--datasource",
        description = "Name of the configured datasource found in DataSource.groovy",
        required = false)
private String datasource


dtdMetadata

@Option(name = "--dtd-metadata",
        description = "Whether or not DTD metadata is available to parse via a DTD handler.",
        required = false)
private boolean dtdMetadata


files

@Argument(index = 0,
        name = "files",
        description = "List of files to be imported.",
        multiValued = true,
        required = true)
private List files


format

@Option(name = "--format",
        description = "Format to use for importing. Valid values are [flatxml, xml]",
        required = false)
private String format


operation

@Option(name = "--operation",
        description = "Database operation to use. Valid values are [clean-insert, insert, update]",
        required = false)
private String operation


 
Constructor Detail

ImportDatabaseCommand

ImportDatabaseCommand()


 

Groovy Documentation