org.jasig.portal.tools.dbloader
Class DbLoaderConfiguration

java.lang.Object
  extended by org.jasig.portal.tools.dbloader.DbLoaderConfiguration

public class DbLoaderConfiguration
extends Object

Configuration for the DbLoader, includes commons-cli Options set for command line use.

Version:
$Revision: 19776 $
Author:
Eric Dalquist

Constructor Summary
DbLoaderConfiguration(boolean dropTables, boolean createTables, boolean populateTables, Resource tablesFile, Resource dataFile, String scriptFile)
           
DbLoaderConfiguration(org.apache.commons.cli.CommandLine commandLine)
           
 
Method Summary
 boolean equals(Object object)
           
 Resource getDataFile()
           
static org.apache.commons.cli.Options getOptions()
           
 String getScriptFile()
           
 Resource getTablesFile()
           
 int hashCode()
           
 boolean isCreateTables()
           
 boolean isDropTables()
           
 boolean isPopulateTables()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DbLoaderConfiguration

public DbLoaderConfiguration(org.apache.commons.cli.CommandLine commandLine)

DbLoaderConfiguration

public DbLoaderConfiguration(boolean dropTables,
                             boolean createTables,
                             boolean populateTables,
                             Resource tablesFile,
                             Resource dataFile,
                             String scriptFile)
Method Detail

getOptions

public static org.apache.commons.cli.Options getOptions()

getTablesFile

public Resource getTablesFile()
Returns:
the tablesFile

getDataFile

public Resource getDataFile()
Returns:
the dataFile

getScriptFile

public String getScriptFile()
Returns:
the scriptFile

isDropTables

public boolean isDropTables()
Returns:
the dropTables

isCreateTables

public boolean isCreateTables()
Returns:
the createTables

isPopulateTables

public boolean isPopulateTables()
Returns:
the populateTables

equals

public boolean equals(Object object)
Overrides:
equals in class Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2010 Jasig. All Rights Reserved.