stream

@GenerateBridge
open fun stream(query: String, vararg params: Any): Stream<Entity>

Find entities matching a query, with optional indexed parameters. This method is a shortcut for find(query, params).stream(). It requires a transaction to work. Without a transaction, the underlying cursor can be closed before the end of the stream.

Return

a Stream containing all results, without paging

Parameters

query

a query string

params

optional sequence of indexed parameters

See also

PanacheCompanion.find
PanacheCompanion.list

@GenerateBridge
open fun stream(query: String, sort: Sort, vararg params: Any): Stream<Entity>

Find entities matching a query and the given sort options, with optional indexed parameters. This method is a shortcut for find(query, sort, params).stream(). It requires a transaction to work. Without a transaction, the underlying cursor can be closed before the end of the stream.

Return

a Stream containing all results, without paging

Parameters

query

a query string

sort

the sort strategy to use

params

optional sequence of indexed parameters

See also

PanacheCompanion.find
PanacheCompanion.list

@GenerateBridge
open fun stream(query: String, params: Map<String, Any>): Stream<Entity>

Find entities matching a query, with named parameters. This method is a shortcut for find(query, params).stream(). It requires a transaction to work. Without a transaction, the underlying cursor can be closed before the end of the stream.

Return

a Stream containing all results, without paging

Parameters

query

a query string

params

Map of named parameters

See also

PanacheCompanion.find
PanacheCompanion.list

@GenerateBridge
open fun stream(query: String, sort: Sort, params: Map<String, Any>): Stream<Entity>

Find entities matching a query and the given sort options, with named parameters. This method is a shortcut for find(query, sort, params).stream(). It requires a transaction to work. Without a transaction, the underlying cursor can be closed before the end of the stream.

Return

a Stream containing all results, without paging

Parameters

query

a query string

sort

the sort strategy to use

params

Map of indexed parameters

See also

PanacheCompanion.find
PanacheCompanion.list

@GenerateBridge
open fun stream(query: String, params: Parameters): Stream<Entity>

Find entities matching a query, with named parameters. This method is a shortcut for find(query, params).stream(). It requires a transaction to work. Without a transaction, the underlying cursor can be closed before the end of the stream.

Return

a Stream containing all results, without paging

Parameters

query

a query string

params

Parameters of named parameters

See also

PanacheCompanion.find
PanacheCompanion.list

@GenerateBridge
open fun stream(query: String, sort: Sort, params: Parameters): Stream<Entity>

Find entities matching a query and the given sort options, with named parameters. This method is a shortcut for find(query, sort, params).stream(). It requires a transaction to work. Without a transaction, the underlying cursor can be closed before the end of the stream.

Return

a Stream containing all results, without paging

Parameters

query

a query string

sort

the sort strategy to use

params

Parameters of indexed parameters

See also

PanacheCompanion.find
PanacheCompanion.list