Uses of Class
com.google.mu.safesql.SafeQuery
-
Uses of SafeQuery in com.google.mu.safesql
Modifier and TypeMethodDescriptionstatic SafeQuery
Much likeof(java.lang.String, java.lang.Object...)
, but with additional GoogleSQL translation rules.static SafeQuery
Returns a query using a constant query template filled withargs
.protected SafeQuery
SafeQuery.Translator.translateLiteral
(Substring.Match placeholder, Object value) Called if a placeholdervalue
is a non-string, non-Iterable literal appearing unquoted in the template.static SafeQuery
SafeQuery.with
(String name1, SafeQuery subquery1, String name2, SafeQuery subquery2, String name3, SafeQuery subquery3, String template, Object... args) Creates a SafeQuery with 3 CTEs (Common Table Expression).static SafeQuery
SafeQuery.with
(String name1, SafeQuery subquery1, String name2, SafeQuery subquery2, String template, Object... args) Creates a SafeQuery with two CTEs (Common Table Expression).static SafeQuery
Creates a SafeQuery with a single CTE (Common Table Expression).Modifier and TypeMethodDescriptionSafeQuery.and()
A collector that joins boolean query snippets usingAND
operator.SafeQuery.and()
A collector that joins boolean query snippets usingAND
operator.Returns a collector that can joinSafeQuery
objects usingdelim
as the delimiter.Returns a collector that can joinSafeQuery
objects usingdelim
as the delimiter.SafeQuery.or()
A collector that joins boolean query snippets usingOR
operator.SafeQuery.or()
A collector that joins boolean query snippets usingOR
operator.static StringFormat.Template
<SafeQuery> Much liketemplate(java.lang.String)
, but with additional GoogleSQL translation rules.static StringFormat.Template
<SafeQuery> Creates a template with the placeholders to be filled by subsequentStringFormat.To.with(java.lang.Object...)
calls.final StringFormat.Template
<SafeQuery> Translatestemplate
to a factory ofSafeQuery
by filling the provided parameters in the places of corresponding placeholders.Modifier and TypeMethodDescriptionstatic SafeQuery
SafeQuery.with
(String name1, SafeQuery subquery1, String name2, SafeQuery subquery2, String name3, SafeQuery subquery3, String template, Object... args) Creates a SafeQuery with 3 CTEs (Common Table Expression).static SafeQuery
SafeQuery.with
(String name1, SafeQuery subquery1, String name2, SafeQuery subquery2, String template, Object... args) Creates a SafeQuery with two CTEs (Common Table Expression).static SafeQuery
Creates a SafeQuery with a single CTE (Common Table Expression).