Uses of Class
com.pyranid.Statement
-
Uses of Statement in com.pyranid
Modifier and TypeMethodDescriptionStatementContext.getStatement()
static Statement
Factory method for providingStatement
instances.Modifier and TypeMethodDescriptionExecutes a SQL Data Manipulation Language (DML) statement, such asINSERT
,UPDATE
, orDELETE
; or a SQL statement that returns nothing, such as a DDL statement.Database.executeBatch
(Statement statement, List<List<Object>> parameterGroups) Executes a SQL Data Manipulation Language (DML) statement, such asINSERT
,UPDATE
, orDELETE
in "batch" over a set of parameter groups.<T> List
<T> Database.executeForList
(Statement statement, Class<T> resultSetRowType, Object... parameters) Executes a SQL Data Manipulation Language (DML) statement, such asINSERT
,UPDATE
, orDELETE
, which returns any number of rows, e.g.<T> Optional
<T> Database.executeForObject
(Statement statement, Class<T> resultSetRowType, Object... parameters) Executes a SQL Data Manipulation Language (DML) statement, such asINSERT
,UPDATE
, orDELETE
, which returns 0 or 1 rows, e.g.<T> List
<T> Database.queryForList
(Statement statement, Class<T> resultSetRowType, Object... parameters) Performs a SQL query that is expected to return any number of result rows.<T> Optional
<T> Database.queryForObject
(Statement statement, Class<T> resultSetRowType, Object... parameters) Performs a SQL query that is expected to return 0 or 1 result rows.