public class TableModelDbHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TableModelDbHelper.OverwriteMode |
Constructor and Description |
---|
TableModelDbHelper(<any> outputGeneratorProvider,
DbPoolService dbPoolService) |
Modifier and Type | Method and Description |
---|---|
RSTableModel |
selectAsRsTableModel(ConnectionPoolConfig cpc,
java.lang.String query) |
RSTableModel |
selectAsRsTableModel(java.sql.Connection connection,
java.lang.String query) |
int |
writeRsTableModel(RSTableModel rsTableModel,
ConnectionPoolConfig cpc,
java.lang.String tableName) |
int |
writeRsTableModel(RSTableModel rsTableModel,
ConnectionPoolConfig cpc,
java.lang.String tableName,
TableModelDbHelper.OverwriteMode overwriteMode,
java.lang.String createTableStatement) |
int |
writeRsTableModel(RSTableModel rsTableModel,
java.sql.Connection connection,
java.lang.String tableName)
Note that you need to close the connection manually
|
int |
writeRsTableModel(RSTableModel rsTableModel,
java.sql.Connection connection,
java.lang.String tableName,
TableModelDbHelper.OverwriteMode overwriteMode,
java.lang.String createTableStatement) |
public TableModelDbHelper(<any> outputGeneratorProvider, DbPoolService dbPoolService)
public RSTableModel selectAsRsTableModel(ConnectionPoolConfig cpc, java.lang.String query) throws java.sql.SQLException, java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionException
java.sql.SQLException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public RSTableModel selectAsRsTableModel(java.sql.Connection connection, java.lang.String query) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public int writeRsTableModel(RSTableModel rsTableModel, java.sql.Connection connection, java.lang.String tableName, TableModelDbHelper.OverwriteMode overwriteMode, java.lang.String createTableStatement) throws DatabaseException, java.sql.SQLException
DatabaseException
java.sql.SQLException
public int writeRsTableModel(RSTableModel rsTableModel, java.sql.Connection connection, java.lang.String tableName) throws DatabaseException, java.sql.SQLException
rsTableModel
- connection
- tableName
- DatabaseException
java.sql.SQLException
public int writeRsTableModel(RSTableModel rsTableModel, ConnectionPoolConfig cpc, java.lang.String tableName) throws DatabaseException, java.sql.SQLException, java.lang.InterruptedException, java.util.concurrent.ExecutionException
DatabaseException
java.sql.SQLException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public int writeRsTableModel(RSTableModel rsTableModel, ConnectionPoolConfig cpc, java.lang.String tableName, TableModelDbHelper.OverwriteMode overwriteMode, java.lang.String createTableStatement) throws DatabaseException, java.sql.SQLException, java.lang.InterruptedException, java.util.concurrent.ExecutionException
DatabaseException
java.sql.SQLException
java.lang.InterruptedException
java.util.concurrent.ExecutionException