| Package | Description |
|---|---|
| com.helger.db.jdbc.callback | |
| com.helger.db.jdbc.executor |
| Modifier and Type | Class and Description |
|---|---|
class |
ConstantPreparedStatementDataProvider
A simple implementation of the
IPreparedStatementDataProvider that
takes a list of objects and returns theses objects as they are. |
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.state.ESuccess |
DBExecutor.executePreparedStatement(String sSQL,
IPreparedStatementDataProvider aPSDP) |
com.helger.commons.state.ESuccess |
DBExecutor.executePreparedStatement(String sSQL,
IPreparedStatementDataProvider aPSDP,
IUpdatedRowCountCallback aURWCC,
IGeneratedKeysCallback aGeneratedKeysCB,
com.helger.commons.callback.exception.IExceptionCallback<? super Exception> aExtraExCB) |
Object |
DBExecutor.executePreparedStatementAndGetGeneratedKey(String sSQL,
IPreparedStatementDataProvider aPSDP,
com.helger.commons.callback.exception.IExceptionCallback<? super Exception> aExtraExCB)
Execute a prepared statement and return the generated key.
|
DBExecutor.CountAndKey |
DBExecutor.insertOrUpdateAndGetGeneratedKey(String sSQL,
IPreparedStatementDataProvider aPSDP,
com.helger.commons.callback.exception.IExceptionCallback<? super Exception> aExtraExCB) |
long |
DBExecutor.insertOrUpdateOrDelete(String sSQL,
IPreparedStatementDataProvider aPSDP)
Perform an INSERT or UPDATE statement.
|
long |
DBExecutor.insertOrUpdateOrDelete(String sSQL,
IPreparedStatementDataProvider aPSDP,
IGeneratedKeysCallback aGeneratedKeysCB,
com.helger.commons.callback.exception.IExceptionCallback<? super Exception> aExtraExCB)
Perform an INSERT or UPDATE statement.
|
com.helger.commons.collection.impl.ICommonsList<DBResultRow> |
DBExecutor.queryAll(String sSQL,
IPreparedStatementDataProvider aPSDP)
Query a list of 0-n rows with an SQL script with parameters.
|
com.helger.commons.state.ESuccess |
DBExecutor.queryAll(String sSQL,
IPreparedStatementDataProvider aPSDP,
IResultSetRowCallback aResultItemCallback)
Perform an SQL query that does contains parameters to be filled with the
provided
IPreparedStatementDataProvider. |
long |
DBExecutor.queryCount(String sSQL,
IPreparedStatementDataProvider aPSDP) |
com.helger.commons.state.ESuccess |
DBExecutor.querySingle(String sSQL,
IPreparedStatementDataProvider aPSDP,
Consumer<? super DBResultRow> aConsumer)
Query a a single result row with an SQL script with parameters.
|
protected com.helger.commons.state.ESuccess |
DBExecutor.withPreparedStatementDo(String sSQL,
IPreparedStatementDataProvider aPSDP,
com.helger.db.jdbc.executor.DBExecutor.IWithPreparedStatementCallback aPSCallback,
IUpdatedRowCountCallback aUpdatedRowCountCB,
IGeneratedKeysCallback aGeneratedKeysCB,
com.helger.commons.callback.exception.IExceptionCallback<? super Exception> aExtraExCB) |
Copyright © 2014–2021 Philip Helger. All rights reserved.