java.lang.Object
org.litebridgedb.orm.api.select.impl.AbstractSelector<Row,SqlSelectSpec>
org.litebridgedb.orm.api.sql.SqlSelector
- All Implemented Interfaces:
org.litebridgedb.orm.api.select.SelectTerminal<Row>
public final class SqlSelector
extends org.litebridgedb.orm.api.select.impl.AbstractSelector<Row,SqlSelectSpec>
-
Field Summary
Fields inherited from class org.litebridgedb.orm.api.select.impl.AbstractSelector
databaseProvider, dtoClass, selectSpec -
Constructor Summary
ConstructorsConstructorDescriptionSqlSelector(TransactionalDatabaseProvider databaseProvider, TableRegistry tableRegistry) -
Method Summary
Methods inherited from class org.litebridgedb.orm.api.select.impl.AbstractSelector
executeQuery, executeQuery, first, firstOrThrow, firstOrThrow, one, oneOrThrow, oneOrThrow, selectSpec, stream, toSql
-
Constructor Details
-
SqlSelector
-
-
Method Details
-
select
-
select
-
oneOrNull
Description copied from interface:org.litebridgedb.orm.api.select.SelectTerminalExecutes the query and expects exactly one result.- Specified by:
oneOrNullin interfaceorg.litebridgedb.orm.api.select.SelectTerminal<Row>- Specified by:
oneOrNullin classorg.litebridgedb.orm.api.select.impl.AbstractSelector<Row,SqlSelectSpec> - Returns:
- the single result, or
nullwhen no row matches
-
firstOrNull
Description copied from interface:org.litebridgedb.orm.api.select.SelectTerminalExecutes the query and returns the first row if present.- Specified by:
firstOrNullin interfaceorg.litebridgedb.orm.api.select.SelectTerminal<Row>- Specified by:
firstOrNullin classorg.litebridgedb.orm.api.select.impl.AbstractSelector<Row,SqlSelectSpec> - Returns:
- the first result, or
nullwhen no row matches
-
list
Description copied from interface:org.litebridgedb.orm.api.select.SelectTerminalExecutes the query and materializes all results into aList.- Specified by:
listin interfaceorg.litebridgedb.orm.api.select.SelectTerminal<Row>- Specified by:
listin classorg.litebridgedb.orm.api.select.impl.AbstractSelector<Row,SqlSelectSpec> - Returns:
- list of all matching results (possibly empty)
-