|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.schwarzrot.data.access.jdbc.JDBCModelScanner
public class JDBCModelScanner
class to get database model informations out from the JDBC-metadata information.
Playing together with XMLExporter
and XMLImporter
it is a
powerful weapon to port database schema.
Constructor Summary | |
---|---|
JDBCModelScanner(Connection conn)
|
Method Summary | |
---|---|
protected void |
adoptTables(DatabaseModel dbInfo,
Collection<TableDefinition> tables)
|
protected void |
dumpRS(ResultSet rs)
|
DatabaseModel |
scan()
scans the entire metadata-information of database from datasource definition |
DatabaseModel |
scan(DatabaseModel dbInfo)
scans entire database meta information and place information into given DatabaseModel instance. |
DatabaseModel |
scan(DatabaseModel dbInfo,
String schemaName)
scans given schema from database metadata-information. |
DatabaseModel |
scan(String schemaName)
scans given schema from database meta information |
protected void |
scanColumns(DatabaseModel dbInfo,
TableDefinition ti)
|
protected void |
scanIndexes(DatabaseModel dbInfo,
TableDefinition td)
|
protected void |
scanSchemata(DatabaseModel dbInfo,
String schemaOnly)
|
protected void |
scanTables(DatabaseModel dbInfo,
String schemaOnly)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDBCModelScanner(Connection conn)
Method Detail |
---|
public DatabaseModel scan()
public DatabaseModel scan(DatabaseModel dbInfo)
DatabaseModel
instance. That instance will be returned too
dbInfo
- - a DatabaseModel
instance to hold meta information
DatabaseModel
filled with meta informationpublic DatabaseModel scan(DatabaseModel dbInfo, String schemaName)
dbInfo
- - instance that holds database model information. Use null if
you can live with return value only.schemaName
- - the schema to scan, null for all
public DatabaseModel scan(String schemaName)
schemaName
- - the schema to scan, null for all
DatabaseModel
filled with meta informationprotected void adoptTables(DatabaseModel dbInfo, Collection<TableDefinition> tables)
protected void dumpRS(ResultSet rs)
protected void scanColumns(DatabaseModel dbInfo, TableDefinition ti)
protected void scanIndexes(DatabaseModel dbInfo, TableDefinition td)
protected void scanSchemata(DatabaseModel dbInfo, String schemaOnly)
protected void scanTables(DatabaseModel dbInfo, String schemaOnly)
|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |