|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.colle.sql.schema.TableBuilder
Command line utility for building SQL tables. Created: 14 Feb 2001
Constructor Summary | |
TableBuilder()
Constructs a new table builder with the model and data directories set by system properties. |
|
TableBuilder(File pxModelDirectory,
File pxDataDirectory,
boolean pbUseNativeLoader,
Connection pxConnection)
Constructs a new table builder with the specified model and data directories. |
Method Summary | |
void |
appendLoaderFilter(LoaderFilter pxLoaderFilter)
|
void |
build(String psCommand)
|
void |
build(String psCommand,
String psTable)
|
void |
build(String psCommand,
String psTable,
File pxCSVFile)
|
void |
create(String psTable)
Creates the table specified. |
void |
createAll()
Create all the tables. |
void |
drop(String psTable)
Drops the table specified. |
void |
dropAll()
Drop all the tables. |
Connection |
getConnection()
|
DateFormat |
getDateFormat()
|
NumberFormat |
getDoubleFormat()
|
int |
getInsertsPerCommit()
|
NumberFormat |
getIntFormat()
|
List |
getLoaderFilters()
|
boolean |
getUseNativeLoader()
|
void |
index(String psTable)
Indexes the table specified. |
void |
indexAll()
Index all the tables. |
void |
indexAllForeign()
Index foreign keys of all the tables. |
void |
indexForeign(String psTable)
Indexes foreign keys in the table specified. |
void |
load(String psTable)
Loads the table specified from the csv file with the same name. |
void |
load(String psTable,
File pxFile)
Loads the table specified from the file specified. |
void |
loadAll()
Load all the tables. |
static void |
main(String[] pxArgs)
Command line interface. |
void |
sequence(String psTable)
Indexes the table specified. |
void |
sequenceAll()
Sequence all the tables. |
void |
setConnection(Connection pxConnection)
|
void |
setDateFormat(DateFormat pxDateFormat)
|
void |
setDoubleFormat(NumberFormat pxDoubleFormat)
|
void |
setInsertsPerCommit(int pnInsertsPerCommit)
|
void |
setIntFormat(NumberFormat pxIntFormat)
|
static void |
usage()
Outputs command line usage to standard out. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TableBuilder()
public TableBuilder(File pxModelDirectory, File pxDataDirectory, boolean pbUseNativeLoader, Connection pxConnection)
Method Detail |
public boolean getUseNativeLoader()
public List getLoaderFilters()
public final void appendLoaderFilter(LoaderFilter pxLoaderFilter)
public DateFormat getDateFormat()
public void setDateFormat(DateFormat pxDateFormat)
public NumberFormat getDoubleFormat()
public void setDoubleFormat(NumberFormat pxDoubleFormat)
public NumberFormat getIntFormat()
public void setIntFormat(NumberFormat pxIntFormat)
public int getInsertsPerCommit()
public void setInsertsPerCommit(int pnInsertsPerCommit)
public Connection getConnection()
public void setConnection(Connection pxConnection)
public static void main(String[] pxArgs)
pxArgs
- command line arguments @see #usage().public static void usage()
public void build(String psCommand) throws UnsupportedOperationException
UnsupportedOperationException
public void build(String psCommand, String psTable) throws UnsupportedOperationException
UnsupportedOperationException
public void build(String psCommand, String psTable, File pxCSVFile)
public void createAll()
public void dropAll()
public void loadAll()
public void indexAll()
public void sequenceAll()
public void indexAllForeign()
public void create(String psTable)
public void load(String psTable)
public void load(String psTable, File pxFile)
public void index(String psTable)
public void indexForeign(String psTable)
public void sequence(String psTable)
public void drop(String psTable)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |