Top Description Methods
com.mysql.cj.xdevapi

public Interface SelectStatement

extends Statement<SelectStatement, RowResult>
Known Direct Implementers
com.mysql.cj.xdevapi.SelectStatementImpl

A statement representing a SELECT query.

Method Summary

Modifier and TypeMethod and Description
public FilterParams

Returns:

FilterParams
getFilterParams
()

Return FilterParams defined for this statement.

public SelectStatement
groupBy(String...
groupBy expression
groupBy
)

Add/replace the aggregation fields for this query.

public SelectStatement
having(String
having expression
having
)

Add/replace the aggregate criteria for this query.

public SelectStatement
limit(long
limit
numberOfRows
)

Add/replace the row limit for this query.

public SelectStatement
lockExclusive()

Locks matching rows exclusively so no other transactions can read or write to them.

public SelectStatement
lockExclusive(Statement.LockContention lockContention)

Locks matching rows exclusively so no other transactions can read or write to them, using the provided lock contention option.

public SelectStatement
lockShared()

Locks matching rows against updates.

public SelectStatement
lockShared(Statement.LockContention lockContention)

Locks matching rows against updates using the provided lock contention option.

public SelectStatement
offset(long
limit offset
limitOffset
)

Add/replace the row offset for this query.

public SelectStatement
orderBy(String...
sort expression
sortFields
)

Add/replace the order specification for this query.

public SelectStatement
where(String
search condition expression
searchCondition
)

Add/replace the search condition for this query.

Inherited from com.mysql.cj.xdevapi.Statement:
bindbindbindbindclearBindingsexecuteexecuteAsync

Method Detail

getFilterParamsback to summary
public FilterParams getFilterParams()

Return FilterParams defined for this statement.

Returns:FilterParams

FilterParams

groupByback to summary
public SelectStatement groupBy(String... groupBy)

Add/replace the aggregation fields for this query.

Parameters
groupBy:String[]

groupBy expression

Returns:SelectStatement

SelectStatement

havingback to summary
public SelectStatement having(String having)

Add/replace the aggregate criteria for this query.

Parameters
having:String

having expression

Returns:SelectStatement

SelectStatement

limitback to summary
public SelectStatement limit(long numberOfRows)

Add/replace the row limit for this query.

Parameters
numberOfRows:long

limit

Returns:SelectStatement

SelectStatement

lockExclusiveback to summary
public SelectStatement lockExclusive()

Locks matching rows exclusively so no other transactions can read or write to them.

Returns:SelectStatement

SelectStatement

lockExclusiveback to summary
public SelectStatement lockExclusive(Statement.LockContention lockContention)

Locks matching rows exclusively so no other transactions can read or write to them, using the provided lock contention option.

Parameters
lockContention:Statement.LockContention

The com.mysql.cj.xdevapi.Statement.LockContention value to set.

Returns:SelectStatement

SelectStatement

lockSharedback to summary
public SelectStatement lockShared()

Locks matching rows against updates.

Returns:SelectStatement

SelectStatement

lockSharedback to summary
public SelectStatement lockShared(Statement.LockContention lockContention)

Locks matching rows against updates using the provided lock contention option.

Parameters
lockContention:Statement.LockContention

The com.mysql.cj.xdevapi.Statement.LockContention value to set.

Returns:SelectStatement

SelectStatement

offsetback to summary
public SelectStatement offset(long limitOffset)

Add/replace the row offset for this query.

Parameters
limitOffset:long

limit offset

Returns:SelectStatement

SelectStatement

orderByback to summary
public SelectStatement orderBy(String... sortFields)

Add/replace the order specification for this query.

Parameters
sortFields:String[]

sort expression

Returns:SelectStatement

SelectStatement

whereback to summary
public SelectStatement where(String searchCondition)

Add/replace the search condition for this query.

Parameters
searchCondition:String

search condition expression

Returns:SelectStatement

SelectStatement