Uses of Class
com.google.mu.safesql.SafeSql
Packages that use SafeSql
Package
Description
Injection-safe SQL template (requires mug-safesql artifact)
- 
Uses of SafeSql in com.google.mu.safesql
Fields in com.google.mu.safesql declared as SafeSqlMethods in com.google.mu.safesql that return SafeSqlModifier and TypeMethodDescriptionstatic SafeSqlSafeSql.nonNegativeLiteral(int number) Deprecated.static SafeSqlstatic SafeSqlSafeSql.optionally(String query, Optional<?> param) Deprecated.UseSafeSql.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.Ifthisquery is empty (likely from a call tooptionally(java.lang.String, java.util.Optional<?>)orwhen(boolean, java.lang.String, java.lang.Object...)), returns thefallbackquery.Ifthisquery is empty (likely from a call tooptionally(java.lang.String, java.util.Optional<?>)orwhen(boolean, java.lang.String, java.lang.Object...)), returns the SafeSql produced from thefallbacktemplate andargs.Ifthisquery 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 thefallbacksupplier.SafeSql.when(boolean condition) Returns this SafeSql ifconditionis true; otherwise returnsEMPTY.static SafeSqlAn optional query that's only rendered ifconditionis true; otherwise returnsEMPTY.Methods in com.google.mu.safesql that return types with arguments of type SafeSqlModifier and TypeMethodDescriptionSafeSql.and()A collector that joins boolean query snippet usingANDoperator.SafeSql.and()A collector that joins boolean query snippet usingANDoperator.Returns a collector that joins SafeSql elements usingdelimiter.Returns a collector that joins SafeSql elements usingdelimiter.SafeSql.or()A collector that joins boolean query snippet usingORoperator.SafeSql.or()A collector that joins boolean query snippet usingORoperator.static StringFormat.Template<SafeSql> Methods in com.google.mu.safesql with parameters of type SafeSqlModifier and TypeMethodDescriptionIfthisquery is empty (likely from a call tooptionally(java.lang.String, java.util.Optional<?>)orwhen(boolean, java.lang.String, java.lang.Object...)), returns thefallbackquery.Method parameters in com.google.mu.safesql with type arguments of type SafeSqlModifier and TypeMethodDescriptionIfthisquery 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 thefallbacksupplier. 
OFFSET-FETCHclause, which is parameterizable