public class DBImporterExporter
extends java.lang.Object
Constructor and Description |
---|
DBImporterExporter() |
Modifier and Type | Method and Description |
---|---|
int |
getDatabaseIDByName(MetaData metaData,
java.lang.Object out,
java.lang.String dbName)
Returns a Jabref Database ID from the database in case the DB is already
exported.
|
void |
removeAGivenDB(java.lang.Object out,
int database_id) |
void |
removeAllRecordsForAGivenDB(java.lang.Object out,
int database_id)
Removes all records for the database being exported in case it was
exported before.
|
void |
removeDB(DBImportExportDialog dialogo,
java.lang.String dbName,
java.sql.Connection conn,
MetaData metadata) |
public void removeDB(DBImportExportDialog dialogo, java.lang.String dbName, java.sql.Connection conn, MetaData metadata) throws java.sql.SQLException
java.sql.SQLException
public int getDatabaseIDByName(MetaData metaData, java.lang.Object out, java.lang.String dbName) throws java.sql.SQLException
metaData
- The MetaData object containing the database informationout
- The output (PrintStream or Connection) object to which the DML
should be written.java.sql.SQLException
public void removeAGivenDB(java.lang.Object out, int database_id) throws java.sql.SQLException
java.sql.SQLException
public void removeAllRecordsForAGivenDB(java.lang.Object out, int database_id) throws java.sql.SQLException
out
- The output (PrintStream or Connection) object to which the DML
should be written.database_id
- Id of the database being exported.java.sql.SQLException