|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjdbcadmin.core.tools.AbstractCnxUser
jdbcadmin.core.tools.JdbcInspector
JDBC Introspection class.
| Field Summary |
| Fields inherited from class jdbcadmin.core.tools.AbstractCnxUser |
cnx, conInfos |
| Constructor Summary | |
JdbcInspector(ConnectionInfo aConInfos,
IAccessAuthorization aAuthorizations)
Constructor wich specify the connection informations and access authorizations. |
|
| Method Summary | |
protected boolean |
connect()
If not initialized, creates or retrieves the connection and updates the database meta datas |
protected void |
disconnect()
Closes the connection. |
void |
fillTable(Table aTable)
Complete a table (columns and primary keys) |
java.util.Collection |
getCalalogs()
|
java.util.Collection |
getColumns(Table aTable)
Retrieves the table columns. |
Table |
getFullTable(Schema aSchema,
java.lang.String aTableName)
Retrieve a filled table |
java.util.SortedMap |
getFullTables(Schema aSchema)
Retrieves fully filled tables (with columns and primary key) Key of the map : table names Tables are sorted by their name |
static JdbcInspector |
getInstance(java.io.InputStream aConfStream)
Retrieve an instance of the inspector. |
java.util.SortedMap |
getNakedTables(Schema aSchema)
Retrieves the naked tables, without their columns Tables are sorted by their name |
java.util.Collection |
getPrimaryKeys(java.lang.String aTableName)
Retrieves primary keys for a table. |
java.util.List |
getSchemas()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JdbcInspector(ConnectionInfo aConInfos,
IAccessAuthorization aAuthorizations)
aConInfos - connection informationsaAuthorizations - access authorizations| Method Detail |
public static JdbcInspector getInstance(java.io.InputStream aConfStream)
throws TechnicalException
aConfStream - Configuration stream
TechnicalException - Technical error
public java.util.SortedMap getFullTables(Schema aSchema)
throws TechnicalException
aSchema - schema to scan
TechnicalException - technical error
public java.util.SortedMap getNakedTables(Schema aSchema)
throws TechnicalException
aSchema - schema to scan
TechnicalException - technical error
public java.util.Collection getColumns(Table aTable)
throws TechnicalException
aTable - the table
#java.util.Collection of #jdbcadmin.core.data.Column
TechnicalException - Technical error
public java.util.Collection getPrimaryKeys(java.lang.String aTableName)
throws TechnicalException
aTableName - The table name
#java.util.Collection of #java.lang.String
TechnicalException - Technical error
public java.util.Collection getCalalogs()
throws TechnicalException
TechnicalException - Technical error
public java.util.List getSchemas()
throws TechnicalException
TechnicalException - Technical error
public void fillTable(Table aTable)
throws TechnicalException
aTable - the table to fill
TechnicalException - technical error
public Table getFullTable(Schema aSchema,
java.lang.String aTableName)
throws TechnicalException
aSchema - the schema to scanaTableName - name of the table
TechnicalException - technical error
protected boolean connect()
throws TechnicalException
connect in class AbstractCnxUsertrue if the connection had to be created/retrieved
(in this case, the calling method must call disconnect()), false otherwise
TechnicalException - error connecting to db.protected void disconnect()
disconnect in class AbstractCnxUser
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||