DBVIEW
|
Public Member Functions | |
Database | load (Element in_profile) throws Exception |
Protected Member Functions | |
abstract AbstractSotfForeignKeyDetector | _getSoftForeignKeyDetector_ (Element in_profile) throws Exception |
abstract String | _getUrl_ (Element in_data) throws Exception |
ArrayList< String > | _tables (Connection in_connection, DatabaseMetaData in_db_meta) throws Exception |
Hashtable< String, DbIndex > | _indexes (Connection in_connection, DatabaseMetaData in_db_meta, Table in_table) throws Exception |
ArrayList< String > | _primary (Connection in_connection, DatabaseMetaData in_db_meta, Table in_table) throws Exception |
ArrayList< DbForeignKey > | _foreign (Connection in_connection, DatabaseMetaData in_db_meta, Table in_table) throws Exception |
ArrayList< String > | _fields (Connection in_connection, DatabaseMetaData in_db_meta, Table in_table) throws Exception |
ArrayList< String > | _null (Connection in_connection, DatabaseMetaData in_db_meta, Table in_table) throws Exception |
Private Attributes | |
Connection | __connection = null |
DatabaseMetaData | __db_meta = null |
This class implements the database loader adaptor.
Please note that the exploration of the database relies on JDBC type 4.
Child classes may override the methods, if a specific database needs specific procedures.
Definition at line 40 of file AbstractLoader.java.
ArrayList<String> org.dbview.input_addons.AbstractLoader._fields | ( | Connection | in_connection, |
DatabaseMetaData | in_db_meta, | ||
Table | in_table | ||
) | throws Exception [protected] |
This method returns the list of all fields for a given table.
in_connection | Connection to the database. |
in_db_meta | Meta data associated to the database. |
in_table | The table. |
Exception |
Definition at line 182 of file AbstractLoader.java.
Referenced by org.dbview.input_addons.AbstractLoader.load().
ArrayList<DbForeignKey> org.dbview.input_addons.AbstractLoader._foreign | ( | Connection | in_connection, |
DatabaseMetaData | in_db_meta, | ||
Table | in_table | ||
) | throws Exception [protected] |
This method returns the list of all foreign keys for a given table.
in_connection | Connection to the database. |
in_db_meta | Meta data associated to the database. |
in_table | The table. |
Exception |
Definition at line 157 of file AbstractLoader.java.
Referenced by org.dbview.input_addons.AbstractLoader.load().
abstract AbstractSotfForeignKeyDetector org.dbview.input_addons.AbstractLoader._getSoftForeignKeyDetector_ | ( | Element | in_profile | ) | throws Exception [protected, pure virtual] |
This method returns an instance of a soft foreign key detector (if it is defined in the profile).
in_profile | Profile used to open a connexion to the database through the input add-on. |
Referenced by org.dbview.input_addons.AbstractLoader.load().
abstract String org.dbview.input_addons.AbstractLoader._getUrl_ | ( | Element | in_data | ) | throws Exception [protected, pure virtual] |
This method returns the URL used to open a connection to the database.
in_data | XML element that contains the data required to open the connection. |
Exception |
Referenced by org.dbview.input_addons.AbstractLoader.load().
Hashtable<String, DbIndex> org.dbview.input_addons.AbstractLoader._indexes | ( | Connection | in_connection, |
DatabaseMetaData | in_db_meta, | ||
Table | in_table | ||
) | throws Exception [protected] |
This method returns the list of all indexes for a given table. It also set the table's list of indexes.
in_connection | Connection to the database. |
in_db_meta | Meta data associated to the database. |
in_table | The table. |
Exception |
Definition at line 92 of file AbstractLoader.java.
Referenced by org.dbview.input_addons.AbstractLoader.load().
ArrayList<String> org.dbview.input_addons.AbstractLoader._null | ( | Connection | in_connection, |
DatabaseMetaData | in_db_meta, | ||
Table | in_table | ||
) | throws Exception [protected] |
This method returns the list of fields that can be null for a given table.
in_connection | Connection to the database. |
in_db_meta | Meta data associated to the database. |
in_table | The table. |
Exception |
Definition at line 198 of file AbstractLoader.java.
Referenced by org.dbview.input_addons.AbstractLoader.load().
ArrayList<String> org.dbview.input_addons.AbstractLoader._primary | ( | Connection | in_connection, |
DatabaseMetaData | in_db_meta, | ||
Table | in_table | ||
) | throws Exception [protected] |
This method returns the primary key for a given table.
in_connection | Connection to the database. |
in_db_meta | Meta data associated to the database. |
in_table | The table. |
Exception |
Definition at line 136 of file AbstractLoader.java.
Referenced by org.dbview.input_addons.AbstractLoader.load().
ArrayList<String> org.dbview.input_addons.AbstractLoader._tables | ( | Connection | in_connection, |
DatabaseMetaData | in_db_meta | ||
) | throws Exception [protected] |
This method returns the list of all tables in the database.
in_connection | Connection to the database. |
in_db_meta | Meta data associated to the database. |
Exception |
Definition at line 75 of file AbstractLoader.java.
Referenced by org.dbview.input_addons.AbstractLoader.load().
Database org.dbview.input_addons.AbstractLoader.load | ( | Element | in_profile | ) | throws Exception |
This method loads information from a given database and returns a model of the database.
in_profile | Profile associated to the database (<data>...</data> ). |
Exception |
Definition at line 216 of file AbstractLoader.java.
Connection org.dbview.input_addons.AbstractLoader.__connection = null [private] |
Handler to the database's connection.
Definition at line 45 of file AbstractLoader.java.
Referenced by org.dbview.input_addons.AbstractLoader.load().
DatabaseMetaData org.dbview.input_addons.AbstractLoader.__db_meta = null [private] |
This attribute contains the "meta data" for the current database.
Definition at line 51 of file AbstractLoader.java.
Referenced by org.dbview.input_addons.AbstractLoader.load().