class ByStringFilterOperation(val attrId: Int, val filterBuilder: FilterBuilder)
// Find entities where stringVar equals "hello"
Query.where { has(TestComponent.id) }
.filter { by(TestComponent.stringVarData).isEqualTo("hello") }
// Find entities where stringVar contains "world"
Query.where { has(TestComponent.id) }
.filter { by(TestComponent.stringVarData).contains("world") }
// Find entities where stringVar starts with "hello" and ends with "world"
Query.where { has(TestComponent.id) }
.filter { by(TestComponent.stringVarData).startsWith("hello") and
by(TestComponent.stringVarData).endsWith("world") }
| Name | Summary |
|---|---|
ByStringFilterOperation | constructor(attrId: Int, filterBuilder: FilterBuilder) |
| Name | Summary |
|---|---|
attrId | val attrId: Int |
filterBuilder | val filterBuilder: FilterBuilder |
| Name | Summary |
|---|---|
contains | fun contains(value: String): ByStringFilterNode Creates a filter node representing a contains condition with the given string value. |
endsWith | fun endsWith(value: String): ByStringFilterNode Creates a filter node representing an ends with condition with the given string value. |
greaterThan | fun greaterThan(value: String): ByStringFilterNode Creates a filter node representing a greater than condition with the given string value. |
greaterThanOrEqualTo | fun greaterThanOrEqualTo(value: String): ByStringFilterNode Creates a filter node representing a greater than or equal to condition with the given string value. |
isEqualTo | fun isEqualTo(value: String): ByStringFilterNode Creates a filter node representing an equality condition with the given string value. |
isEqualToCaseInsensitive | fun isEqualToCaseInsensitive(value: String): ByStringFilterNode Creates a filter node representing a case-insensitive equality condition with the given string value. |
lessThan | fun lessThan(value: String): ByStringFilterNode Creates a filter node representing a less than condition with the given string value. |
lessThanOrEqualTo | fun lessThanOrEqualTo(value: String): ByStringFilterNode Creates a filter node representing a less than or equal to condition with the given string value. |
startsWith | fun startsWith(value: String): ByStringFilterNode Creates a filter node representing a starts with condition with the given string value. |