Uses of Annotation Interface
com.google.mu.annotations.TemplateString
Packages that use TemplateString
Package
Description
Deprecated (requires mug-guava artifact)
BigQuery Client Library (requires mug-bigquery artifact)
Injection-safe SQL template (requires mug-safesql artifact)
Injection-safe template for Cloud Spanner (requires mug-spanner artifact)
StringFormat, Substring, Optionals and more...
- 
Uses of TemplateString in com.google.guava.labs.safesql
Method parameters in com.google.guava.labs.safesql with annotations of type TemplateStringModifier and TypeMethodDescriptionstatic SafeQueryDeprecated.Much likeSafeQuery.of(java.lang.String, java.lang.Object...), but with additional GoogleSQL translation rules.static SafeQueryDeprecated.Returns a query using a constant query template filled withargs.static SafeQuerySafeQuery.optionally(String query, Optional<?> arg) Deprecated.An optional query that's only rendered ifargis present; otherwise returnsSafeQuery.EMPTY.Deprecated.Ifthisquery is empty (likely from a call toSafeQuery.optionally(java.lang.String, java.util.Optional<?>)orSafeQuery.when(boolean, java.lang.String, java.lang.Object...)), returns the SafeQuery produced from thefallbacktemplate andargs.static SafeQueryDeprecated.An optional query that's only rendered ifconditionis true; otherwise returnsSafeQuery.EMPTY. - 
Uses of TemplateString in com.google.mu.bigquery
Method parameters in com.google.mu.bigquery with annotations of type TemplateStringModifier and TypeMethodDescriptionstatic ParameterizedQueryConvenience method when you need to create theParameterizedQueryinline, with both the query template and the arguments.static ParameterizedQueryParameterizedQuery.optionally(String query, Optional<?> arg) An optional query that's only rendered ifargis present; otherwise returnsParameterizedQuery.EMPTY. - 
Uses of TemplateString in com.google.mu.safesql
Method parameters in com.google.mu.safesql with annotations of type TemplateStringModifier and TypeMethodDescriptionstatic SafeSqlstatic SafeSqlSafeSql.optionally(String query, Optional<?> param) Deprecated.Ifthisquery is empty (likely from a call toSafeSql.optionally(java.lang.String, java.util.Optional<?>)orSafeSql.when(boolean, java.lang.String, java.lang.Object...)), returns the SafeSql produced from thefallbacktemplate andargs.static SafeSqlAn optional query that's only rendered ifconditionis true; otherwise returnsSafeSql.EMPTY. - 
Uses of TemplateString in com.google.mu.spanner
Method parameters in com.google.mu.spanner with annotations of type TemplateStringModifier and TypeMethodDescriptionstatic ParameterizedQueryIfthisquery is empty (likely from a call toParameterizedQuery.when(boolean, java.lang.String, java.lang.Object...)), returns the ParameterizedQuery produced from thefallbacktemplate andargs.static ParameterizedQueryAn optional query that's only rendered ifconditionis true; otherwise returnsParameterizedQuery.EMPTY. - 
Uses of TemplateString in com.google.mu.util
Method parameters in com.google.mu.util with annotations of type TemplateString 
SafeSql.of("{foo? -> OR foo?}", optionalFoo)instead ofoptionally("or {foo}", optionalFoo)because the former allows you to referencefoo?multiple times in the right hand side snippet.