Uses of Interface
io.ebean.SqlQuery
Packages that use SqlQuery
-
Uses of SqlQuery in io.ebean
Modifier and TypeMethodDescriptionSqlQuery.setBufferFetchSizeHint
(int bufferFetchSizeHint) A hint which for JDBC translates to the Statement.fetchSize().SqlQuery.setFirstRow
(int firstRow) Set the index of the first row of the results to return.Set a label that can be put on performance metrics that are collected.SqlQuery.setMaxRows
(int maxRows) Set the maximum number of query results to return.SqlQuery.setNullParameter
(int position, int jdbcType) Set a null parameter by position.SqlQuery.setNullParameter
(String name, int jdbcType) Set a null parameter by name.SqlQuery.setParameter
(int position, Object value) Bind the parameter by its index position (1 based like JDBC).SqlQuery.setParameter
(Object value) Set the next bind parameter by position.SqlQuery.setParameter
(String name, Object value) Bind the named parameter value.SqlQuery.setParameters
(Object... values) Set one of more positioned parameters.SqlQuery.setTimeout
(int secs) Set a timeout on this query.Look to execute a native sql query that does not return beans but instead returns SqlRow or direct access to ResultSet.static SqlQuery
Look to execute a native sql query that does not return beans but instead returns SqlRow or usesRowMapper
.SqlQuery.usingConnection
(Connection connection) Execute the query using the given connection.SqlQuery.usingMaster()
Ensure that the master DataSource is used if there is a read only data source being used (that is using a read replica database potentially with replication lag).SqlQuery.usingTransaction
(Transaction transaction) Execute the query using the given transaction.