- All Superinterfaces:
ComparableExpression<Object,,String> ComparableLiteral<String>,Expression<Object,,String> Literal<String>,TextExpression<Object>
- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringLiteralCreates aStringLiteralthat represents the given value.toString()Returns aStringrepresenting the value.Methods inherited from interface jakarta.data.expression.ComparableExpression
between, between, greaterThan, greaterThan, greaterThanEqual, greaterThanEqual, lessThan, lessThan, lessThanEqual, lessThanEqual, notBetween, notBetweenMethods inherited from interface jakarta.data.expression.Expression
equalTo, equalTo, in, in, in, isNull, notEqualTo, notEqualTo, notIn, notIn, notIn, notNull, satisfiesMethods inherited from interface jakarta.data.expression.TextExpression
append, append, contains, endsWith, left, length, like, like, like, like, lower, notContains, notEndsWith, notLike, notLike, notLike, notStartsWith, prepend, prepend, right, startsWith, upper
-
Method Details
-
of
Creates a
StringLiteralthat represents the given value.- Parameters:
value- aStringvalue. Must never benull.- Returns:
- a
StringLiteralrepresenting the value. - Throws:
NullPointerException- if the value isnull.
-
toString
String toString()Returns a
Stringrepresenting the value. TheStringis the value enclosed in single quotes and with each single quote character in the value escaped with a single quote.For example, the output of
StringLiteral.of("Jakarta Data's second release").toString()is'Jakarta Data''s second release'
-