Package com.saperion.common.sql
package com.saperion.common.sql
-
ClassDescription
DataSourceencapsulates aDataSourceand provides simple SQL-execution-methods (DataSource.executeUpdate(String),DataSource.executeQuery(String, ResultReader)) with all the necessary error treatment.ResultReader<E extends Exception>AResultReaderreads the results of aResultSetduring anDataSource.executeQuery(String, ResultReader)-operation.SimpleDataSource<CommonReadResultException extends Exception>SimpleDataSourceis a simple implementation of anDataSourcethat can be used directly and that has no logging, no runtime-information and treats all errors asIllegalStateExceptions.SqlDialectenumerates known SQL dialects ofDataSources.