Uses of Class
com.google.guava.labs.safesql.SafeQuery
Packages that use SafeQuery
-
Uses of SafeQuery in com.google.guava.labs.safesql
Fields in com.google.guava.labs.safesql declared as SafeQueryModifier and TypeFieldDescriptionstatic final SafeQuery
SafeQuery.EMPTY
Deprecated.An empty query string.Methods in com.google.guava.labs.safesql that return SafeQueryModifier and TypeMethodDescriptionstatic SafeQuery
Deprecated.Much likeof(java.lang.String, java.lang.Object...)
, but with additional GoogleSQL translation rules.static SafeQuery
Deprecated.Returns a query using a constant query template filled withargs
.static SafeQuery
SafeQuery.optionally
(String query, Optional<?> arg) Deprecated.An optional query that's only rendered ifarg
is present; otherwise returnsEMPTY
.Deprecated.Ifthis
query is empty (likely from a call tooptionally(java.lang.String, java.util.Optional<?>)
orwhen(boolean, java.lang.String, java.lang.Object...)
), returns thefallback
query.Deprecated.Ifthis
query is empty (likely from a call tooptionally(java.lang.String, java.util.Optional<?>)
orwhen(boolean, java.lang.String, java.lang.Object...)
), returns the SafeQuery produced from thefallback
template andargs
.Deprecated.Ifthis
query is empty (likely from a call tooptionally(java.lang.String, java.util.Optional<?>)
orwhen(boolean, java.lang.String, java.lang.Object...)
), returns the query produced by thefallback
supplier.protected SafeQuery
SafeQuery.Translator.translateLiteral
(Substring.Match placeholder, Object value) Deprecated.Called if a placeholdervalue
is a non-string, non-Iterable literal appearing unquoted in the template.SafeQuery.when
(boolean condition) Deprecated.Returns this SafeQuery ifcondition
is true; otherwise returnsEMPTY
.static SafeQuery
Deprecated.An optional query that's only rendered ifcondition
is true; otherwise returnsEMPTY
.Methods in com.google.guava.labs.safesql that return types with arguments of type SafeQueryModifier and TypeMethodDescriptionSafeQuery.and()
Deprecated.A collector that joins boolean query snippets usingAND
operator.SafeQuery.and()
Deprecated.A collector that joins boolean query snippets usingAND
operator.Deprecated.Returns a collector that can joinSafeQuery
objects usingdelim
as the delimiter.Deprecated.Returns a collector that can joinSafeQuery
objects usingdelim
as the delimiter.SafeQuery.or()
Deprecated.A collector that joins boolean query snippets usingOR
operator.SafeQuery.or()
Deprecated.A collector that joins boolean query snippets usingOR
operator.static StringFormat.Template
<SafeQuery> Deprecated.Much liketemplate(java.lang.String)
, but with additional GoogleSQL translation rules.static StringFormat.Template
<SafeQuery> Deprecated.Creates a template with the placeholders to be filled by subsequentStringFormat.Template.with(java.lang.Object...)
calls.final StringFormat.Template
<SafeQuery> Deprecated.Translatestemplate
to a factory ofSafeQuery
by filling the provided parameters in the places of corresponding placeholders.Methods in com.google.guava.labs.safesql with parameters of type SafeQueryModifier and TypeMethodDescriptionDeprecated.Ifthis
query is empty (likely from a call tooptionally(java.lang.String, java.util.Optional<?>)
orwhen(boolean, java.lang.String, java.lang.Object...)
), returns thefallback
query.Method parameters in com.google.guava.labs.safesql with type arguments of type SafeQueryModifier and TypeMethodDescriptionDeprecated.Ifthis
query is empty (likely from a call tooptionally(java.lang.String, java.util.Optional<?>)
orwhen(boolean, java.lang.String, java.lang.Object...)
), returns the query produced by thefallback
supplier.