class ByLongFilterOperation(val attrId: Int, val filterBuilder: FilterBuilder)
// Find entities where longVar equals 1000L
Query.where { has(TestComponent.id) }
.filter { by(TestComponent.longVarData).isEqualTo(1000L) }
// Find entities where longVar is between 500L and 1500L
Query.where { has(TestComponent.id) }
.filter {
by(TestComponent.longVarData).greaterThanOrEqualTo(500L) and
by(TestComponent.longVarData).lessThanOrEqualTo(1500L)
}
// Find entities where longVar is not equal to 0L
Query.where { has(TestComponent.id) }
.filter { not(by(TestComponent.longVarData).isEqualTo(0L)) }
| Name | Summary |
|---|---|
ByLongFilterOperation | constructor(attrId: Int, filterBuilder: FilterBuilder) |
| Name | Summary |
|---|---|
attrId | val attrId: Int |
filterBuilder | val filterBuilder: FilterBuilder |
| Name | Summary |
|---|---|
greaterThan | fun greaterThan(value: Long): ByLongFilterNode Creates a filter node representing a greater than condition with the given value. |
greaterThanOrEqualTo | fun greaterThanOrEqualTo(value: Long): ByLongFilterNode Creates a filter node representing a greater than or equal to condition with the given value. |
isEqualTo | fun isEqualTo(value: Long): ByLongFilterNode Creates a filter node representing an equality condition with the given value. |
lessThan | fun lessThan(value: Long): ByLongFilterNode Creates a filter node representing a less than condition with the given value. |
lessThanOrEqualTo | fun lessThanOrEqualTo(value: Long): ByLongFilterNode Creates a filter node representing a less than or equal to condition with the given value. |