| Package | Description |
|---|---|
| de.uni_leipzig.asv.utils |
| Modifier and Type | Method and Description |
|---|---|
void |
IOWrapper.closeOutput() |
void |
IOInterface.closeOutput()
simply close the outputfile you must call this method before the program
terminates
|
IOIterator |
IOWrapper.getLineIterator() |
IOIterator |
IOInterface.getLineIterator()
returns the IOIterator to iterate over file data
|
static void |
IOWrapper.main(String[] args) |
static void |
DBConnection.main(String[] args) |
IOIterator |
IOWrapper.select(String tablename) |
IOIterator |
IOInterface.select(String tablename)
select all cols from table "tablename" and returns an iterator
|
IOIterator |
IOWrapper.select(String tablename,
String[] cols) |
IOIterator |
IOInterface.select(String tablename,
String[] cols)
select the "cols" from table "tablename" and returns an iterator
|
IOIterator |
IOWrapper.sendInputQuery(String query) |
IOIterator |
IOInterface.sendInputQuery(String query)
iterates over the resultset of a given query please read the
IOIteratorInterface code
|
boolean |
IOWrapper.sendOutputQuery(String query) |
boolean |
IOInterface.sendOutputQuery(String query)
send a query to database
|
void |
IOWrapper.setupInput(String inputfile) |
void |
IOInterface.setupInput(String inputfile)
setup the inputfile for reading uses the separator to determine the
amount of columns (use a simple split(separator)
|
void |
IOWrapper.setupInput(String inputfile,
int cols) |
void |
IOInterface.setupInput(String inputfile,
int cols)
setup (open) the inputfile for reading
|
void |
IOWrapper.setupInput(String database,
String username,
String password) |
void |
IOInterface.setupInput(String database,
String username,
String password)
same as setupOutput( String ), but with hostname="localhost" and
port=3306
|
void |
IOWrapper.setupInput(String database,
String username,
String password,
String hostname,
int port) |
void |
IOInterface.setupInput(String database,
String username,
String password,
String hostname,
int port)
setup the database to write in open a connection to db
|
void |
IOWrapper.setupOutput(String outputfile) |
void |
IOInterface.setupOutput(String outputfile)
setup the outputfile to write in you must call the closeOutput() to flush
and close the outputfile
|
void |
IOWrapper.setupOutput(String database,
String username,
String password) |
void |
IOInterface.setupOutput(String database,
String username,
String password)
same as above, but with hostname="localhost" and port=3306
|
void |
IOWrapper.setupOutput(String database,
String username,
String password,
String hostname,
int port) |
void |
IOInterface.setupOutput(String database,
String username,
String password,
String hostname,
int port)
same as for setupInput, but for writing
|
boolean |
IOWrapper.writeLine(String line) |
boolean |
IOInterface.writeLine(String line)
write a line to an open file see
de.uni_leipzig.asv.utils.IOInterface#setupOutput(java.lang.String)
|
| Constructor and Description |
|---|
DBConnection(String URL,
String user,
String passwd)
Construct an instance of this Object which can then execute queries on
the DB
|
Copyright © 2013. All rights reserved.