Class TableModelDbHelper
java.lang.Object
net.datenwerke.rs.base.service.reportengines.table.utils.TableModelDbHelper
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTableModelDbHelper(<any> outputGeneratorProvider, DbPoolService dbPoolService) -
Method Summary
Modifier and TypeMethodDescriptionselectAsRsTableModel(Connection connection, String query) selectAsRsTableModel(ConnectionPoolConfig cpc, String query) intwriteRsTableModel(RSTableModel rsTableModel, Connection connection, String tableName) Note that you need to close the connection manuallyintwriteRsTableModel(RSTableModel rsTableModel, Connection connection, String tableName, TableModelDbHelper.OverwriteMode overwriteMode, String createTableStatement) intwriteRsTableModel(RSTableModel rsTableModel, ConnectionPoolConfig cpc, String tableName) intwriteRsTableModel(RSTableModel rsTableModel, ConnectionPoolConfig cpc, String tableName, TableModelDbHelper.OverwriteMode overwriteMode, String createTableStatement)
-
Constructor Details
-
TableModelDbHelper
-
-
Method Details
-
selectAsRsTableModel
public RSTableModel selectAsRsTableModel(ConnectionPoolConfig cpc, String query) throws SQLException, IOException, InterruptedException, ExecutionException -
selectAsRsTableModel
public RSTableModel selectAsRsTableModel(Connection connection, String query) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
writeRsTableModel
public int writeRsTableModel(RSTableModel rsTableModel, Connection connection, String tableName, TableModelDbHelper.OverwriteMode overwriteMode, String createTableStatement) throws DatabaseException, SQLException - Throws:
DatabaseExceptionSQLException
-
writeRsTableModel
public int writeRsTableModel(RSTableModel rsTableModel, Connection connection, String tableName) throws DatabaseException, SQLException Note that you need to close the connection manually- Parameters:
rsTableModel-connection-tableName-
-
writeRsTableModel
public int writeRsTableModel(RSTableModel rsTableModel, ConnectionPoolConfig cpc, String tableName) throws DatabaseException, SQLException, InterruptedException, ExecutionException - Throws:
DatabaseExceptionSQLExceptionInterruptedExceptionExecutionException
-
writeRsTableModel
public int writeRsTableModel(RSTableModel rsTableModel, ConnectionPoolConfig cpc, String tableName, TableModelDbHelper.OverwriteMode overwriteMode, String createTableStatement) throws DatabaseException, SQLException, InterruptedException, ExecutionException - Throws:
DatabaseExceptionSQLExceptionInterruptedExceptionExecutionException
-