org.eclipse.datatools.enablement.sqlite.loader
Class SQLiteSchemaLoader
java.lang.Object
org.eclipse.datatools.connectivity.sqm.loader.JDBCBaseLoader
org.eclipse.datatools.connectivity.sqm.loader.JDBCSchemaLoader
org.eclipse.datatools.enablement.sqlite.loader.SQLiteSchemaLoader
public class SQLiteSchemaLoader
- extends JDBCSchemaLoader
Override schema loader for SQLite that inserts a dummy schema to
allow loading of the rest of the SQL model.
- Author:
- brianf
Method Summary |
void |
loadSchemas(java.util.List containmentList,
java.util.Collection existingSchemas)
Loads the "schema" objects from the database. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQLiteSchemaLoader
public SQLiteSchemaLoader()
- Default no argument constructor
SQLiteSchemaLoader
public SQLiteSchemaLoader(ICatalogObject catalogObject)
- Parameters:
catalogObject
-
loadSchemas
public void loadSchemas(java.util.List containmentList,
java.util.Collection existingSchemas)
throws java.sql.SQLException
- Description copied from class:
JDBCSchemaLoader
- Loads the "schema" objects from the database. This method uses the result
set from createResultSet() to load the "schema" objects from the server.
This method first checks the name of the "schema" to determine whether or
not it should be filtered. If it is not filtered, it checks to see if an
object with that name was loaded previously. If it finds an existing
object, it refreshes that object and adds it to the containment list. If
the named object does not exist, the result set is passed to
processRow(). Schema objects are created using the factory method,
createSchema() and initialized through the initialize() method.
This method should only be overridden as a last resort when the desired
behavior cannot be acheived by overriding createResultSet(),
closeResultSet(), processRow(), createSchema() and initialize().
- Overrides:
loadSchemas
in class JDBCSchemaLoader
- Parameters:
containmentList
- the containment list held by parentexistingSchemas
- the catalog objects which were previously loaded
- Throws:
java.sql.SQLException
- if an error occurred during loading.