Package | Description |
---|---|
sirius.db.jdbc |
Support layer for using JDBC (accessing SQL Databases).
|
sirius.db.jdbc.batch |
Modifier and Type | Field and Description |
---|---|
protected Row |
SQLEntity.fetchRow |
Modifier and Type | Method and Description |
---|---|
Row |
SQLQuery.executeUpdateReturnKeys()
Executes the update and returns the generated keys.
|
Row |
Databases.fetchGeneratedKeys(PreparedStatement stmt)
Returns all generated keys wrapped as row
|
Row |
SQLEntity.getFetchRow()
If the entity was created as the result of a
TransformedQuery , the original Row is
accessible via this method. |
Row |
Database.insertRow(String table,
sirius.kernel.commons.Context ctx)
Generates an INSERT statement for the given table inserting all supplied parameters in ctx.
|
Row |
Database.insertRow(String table,
Map<String,Object> row)
Boilerplate method to use
Database.insertRow(String, sirius.kernel.commons.Context) with plan maps. |
protected Row |
BaseSQLQuery.loadIntoRow(ResultSet rs) |
Row |
BaseSQLQuery.queryFirst()
Executes the given query returning the first matching row.
|
Modifier and Type | Method and Description |
---|---|
Optional<Row> |
BaseSQLQuery.first()
Executes the given query returning the first matching row wrapped as
Optional . |
List<Row> |
Row.getSublist(Object key)
Returns a sub list which was stored for a given key.
|
List<Row> |
BaseSQLQuery.queryList()
Executes the given query returning the result as list
|
List<Row> |
BaseSQLQuery.queryList(sirius.kernel.commons.Limit limit)
Executes the given query returning the result as list with at most maxRows entries
|
Modifier and Type | Method and Description |
---|---|
protected Boolean |
TransformedQuery.invokeHandlerForRow(Function<E,Boolean> handler,
Row row) |
static void |
OMA.loadCreatedId(SQLEntity entity,
Row keys)
Loads an auto generated id from the given row.
|
Modifier and Type | Method and Description |
---|---|
void |
SQLQuery.iterate(Function<Row,Boolean> handler,
sirius.kernel.commons.Limit limit) |
abstract void |
BaseSQLQuery.iterate(Function<Row,Boolean> handler,
sirius.kernel.commons.Limit limit)
Executes the given query by invoking the given handler for each result row.
|
void |
BaseSQLQuery.iterateAll(Consumer<Row> consumer,
sirius.kernel.commons.Limit limit)
Executes the given query by invoking the
Consumer for each
result row. |
protected void |
SQLQuery.processResultSet(Function<Row,Boolean> handler,
sirius.kernel.commons.Limit effectiveLimit,
ResultSet resultSet,
sirius.kernel.async.TaskContext taskContext) |
protected void |
BaseSQLQuery.processResultSet(Function<Row,Boolean> handler,
sirius.kernel.commons.Limit effectiveLimit,
ResultSet resultSet,
sirius.kernel.async.TaskContext taskContext) |
Modifier and Type | Method and Description |
---|---|
Row |
CustomQuery.executeUpdate()
Executes the prepared statement as update (or delete).
|
Modifier and Type | Method and Description |
---|---|
void |
BatchSQLQuery.iterate(Function<Row,Boolean> handler,
sirius.kernel.commons.Limit limit) |
Copyright © 2018. All rights reserved.