class ByIntFilterOperation(val attrId: Int, val filterBuilder: FilterBuilder)
// 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)) }
| Name | Summary |
|---|---|
ByIntFilterOperation | constructor(attrId: Int, filterBuilder: FilterBuilder) |
| Name | Summary |
|---|---|
attrId | val attrId: Int |
filterBuilder | val filterBuilder: FilterBuilder |
| Name | Summary |
|---|---|
greaterThan | fun greaterThan(value: Int): ByIntFilterNode Creates a filter node representing a greater than condition with the given value. |
greaterThanOrEqualTo | fun greaterThanOrEqualTo(value: Int): ByIntFilterNode Creates a filter node representing a greater than or equal to condition with the given value. |
isEqualTo | fun isEqualTo(value: Int): ByIntFilterNode Creates a filter node representing an equality condition with the given value. |
lessThan | fun lessThan(value: Int): ByIntFilterNode Creates a filter node representing a less than condition with the given value. |
lessThanOrEqualTo | fun lessThanOrEqualTo(value: Int): ByIntFilterNode Creates a filter node representing a less than or equal to condition with the given value. |