// Find entities where intVar equals 42
Query.where { has(TestComponent.id) }
.filter { by(TestComponent.intVarData).isEqualTo(42) }
// Find entities where intVar is between 10 and 20
Query.where { has(TestComponent.id) }
.filter {
by(TestComponent.intVarData).greaterThanOrEqualTo(10) and
by(TestComponent.intVarData).lessThanOrEqualTo(20)
}
// Find entities where intVar is not equal to 0
Query.where { has(TestComponent.id) }
.filter { not(by(TestComponent.intVarData).isEqualTo(0)) }
class ByIntFilterOperation(val attrId: Int, val filterBuilder: FilterBuilder)
ByIntFilterOperation
(
attrId
,
filterBuilder
)
:
ByIntFilterOperation |
Signature
constructor(attrId: Int, filterBuilder: FilterBuilder) Parameters
attrId:
Int
filterBuilder:
FilterBuilder Returns |
attrId
:
Int
[Get] |
Signature
val attrId: Int |
filterBuilder
:
FilterBuilder [Get] |
Signature
val filterBuilder: FilterBuilder |
greaterThan
(
value
)
:
ByIntFilterNode |
Creates a filter node representing a greater than condition with the given value.
Signature
fun greaterThan(value: Int): ByIntFilterNode Parameters
value:
Int
Returns |
greaterThanOrEqualTo
(
value
)
:
ByIntFilterNode |
Creates a filter node representing a greater than or equal to condition with the given value.
Signature
fun greaterThanOrEqualTo(value: Int): ByIntFilterNode Parameters
value:
Int
Returns |
isEqualTo
(
value
)
:
ByIntFilterNode |
Creates a filter node representing an equality condition with the given value.
Signature
fun isEqualTo(value: Int): ByIntFilterNode Parameters
value:
Int
Returns |
lessThan
(
value
)
:
ByIntFilterNode |
Creates a filter node representing a less than condition with the given value.
Signature
fun lessThan(value: Int): ByIntFilterNode Parameters
value:
Int
Returns |
lessThanOrEqualTo
(
value
)
:
ByIntFilterNode |
Creates a filter node representing a less than or equal to condition with the given value.
Signature
fun lessThanOrEqualTo(value: Int): ByIntFilterNode Parameters
value:
Int
Returns |