|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.kernelpanic.dbmonster.SchemaGrabber
public class SchemaGrabber
Schema Grabber.
| Constructor Summary | |
|---|---|
SchemaGrabber()
Constructs new SchemaGrabber. |
|
| Method Summary | |
|---|---|
void |
addTable(String name)
Adds a table names to the list of grabbed tables. |
void |
doTheJob()
Starts schema grabber. |
ConnectionProvider |
getConnectionProvider()
Returns a connection provider used by the grabber. |
Log |
getLog()
Returns the logger. |
OutputStream |
getOutput()
Returns the output stream where the serialized schema should be pushed. |
Vector |
getTableNames()
Returns names of the tables in the database. |
Schema |
grabSchema()
Grabs the schema. |
Table |
grabTable(String name)
Grabs the table. |
static void |
main(String[] args)
Starts SchemaGrabber |
void |
setConnectionProvider(ConnectionProvider provider)
Sets the connection provider. |
void |
setLog(Log logger)
Sets the logger |
void |
setOutputFile(String file)
Sets the output file name. |
void |
setProperties(Properties p)
Sets the properties for the SchemaGrabber |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaGrabber()
| Method Detail |
|---|
public static void main(String[] args)
throws Exception
args - command line arguments
Exception - on errors
public void doTheJob()
throws Exception
Exception - on errorspublic OutputStream getOutput()
public Schema grabSchema()
throws Exception
Exception - on errors
public Table grabTable(String name)
throws SQLException,
SchemaException
name - table name
SQLException - on SQL errors
SchemaException - on schema errors
public Vector getTableNames()
throws SQLException
SQLException - on errorspublic ConnectionProvider getConnectionProvider()
public void setConnectionProvider(ConnectionProvider provider)
provider - connection providerpublic Log getLog()
public void setLog(Log logger)
logger - new logger
public void addTable(String name)
throws SQLException
name - name of the table
SQLException - if table cannot be found
public void setOutputFile(String file)
throws IOException
file - file name
IOException - on I/O errorspublic void setProperties(Properties p)
p -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||