|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.kernelpanic.dbmonster.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 errorspublic final void doTheJob() throws Exception
Exception
- on errorspublic final OutputStream getOutput()
public final Schema grabSchema() throws Exception
Exception
- on errorspublic final Table grabTable(String name) throws SQLException, SchemaException
name
- table name
SQLException
- on SQL errors
SchemaException
- on schema errorspublic final Vector getTableNames() throws SQLException
SQLException
- on errorspublic final ConnectionProvider getConnectionProvider()
public final void setConnectionProvider(ConnectionProvider provider)
provider
- connection providerpublic final Log getLog()
public final void setLog(Log logger)
logger
- new loggerpublic final void addTable(String name) throws SQLException
name
- name of the table
SQLException
- if table cannot be foundpublic final void setOutputFile(String file) throws IOException
file
- file name
IOException
- on I/O errorspublic final void setProperties(Properties p)
p
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |