Uses of Interface
st.orm.template.Sql
Packages that use Sql
-
Uses of Sql in st.orm.template
Methods in st.orm.template that return SqlModifier and TypeMethodDescriptionSql.bindVariables(SqlTemplate.BindVariables bindVariables) Returns a new instance of the SQL statement with the given bind variables.Sql.generatedKeys(List<String> generatedKeys) Returns a new instance of the SQL statement with the given generated keys.Sql.parameters(List<SqlTemplate.Parameter> parameters) Returns a new instance of the SQL statement with the given parameters.SqlTemplate.process(StringTemplatePREVIEW template) Processes the specifiedtemplateand returns the resulting SQL and parameters.Returns a new instance of the SQL statement with the given statement.Sql.unsafeWarning(String unsafeWarning) Returns a new instance of the SQL statement with the given unsafe warning message.Sql.versionAware(boolean versionAware) Returns a new instance of the SQL statement with the version aware flag set to the given value.Method parameters in st.orm.template with type arguments of type SqlModifier and TypeMethodDescriptionstatic voidSqlInterceptor.intercept(UnaryOperator<Sql> interceptor, Runnable runnable) Executes aRunnableaction within the context of an SQL interceptor, which modifies SQL statements.static <T> TSqlInterceptor.intercept(UnaryOperator<Sql> interceptor, Supplier<T> supplier) Executes aSupplierwithin the context of an SQL interceptor, returning its result.static <T> TSqlInterceptor.interceptThrowing(UnaryOperator<Sql> interceptor, Callable<T> callable) Executes aCallableaction within the context of an SQL interceptor, returning its result and potentially throwing exceptions.static voidExecutes aRunnableaction within the context of an SQL observer, which consumes SQL statements.static <T> TExecutes aSupplierwithin the context of an SQL observer, returning its result.static <T> TSqlInterceptor.observeThrowing(Consumer<Sql> observer, Callable<T> callable) Executes aCallableaction within the context of an SQL observer, returning its result and potentially throwing exceptions.static voidSqlInterceptor.registerGlobalInterceptor(UnaryOperator<Sql> interceptor) Register a global interceptor that will be called for all SQL statements being generated.static voidSqlInterceptor.registerGlobalObserver(Consumer<Sql> observer) Register a global observer that will be called for all SQL statements being generated.static voidSqlInterceptor.unregisterGlobalInterceptor(UnaryOperator<Sql> interceptor) Unregister a global interceptor.static voidSqlInterceptor.unregisterGlobalObserver(Consumer<Sql> observer) Unregister a global observer. -
Uses of Sql in st.orm.template.impl
Methods in st.orm.template.impl that return SqlModifier and TypeMethodDescriptionSqlTemplateImpl.process(StringTemplatePREVIEW template) Processes the specifiedtemplateand returns the resulting SQL and parameters.Method parameters in st.orm.template.impl with type arguments of type SqlModifier and TypeMethodDescriptionstatic ScopedValue.CarrierPREVIEWCreate a new scoped interceptor that applies an operator to SQL statements processed by the current thread and any child threads.static ScopedValue.CarrierPREVIEWSqlInterceptorManager.intercept(UnaryOperator<Sql> operator) Create a new scoped interceptor that applies an operator to SQL statements processed by the current thread and any child threads.static voidSqlInterceptorManager.registerGlobalInterceptor(UnaryOperator<Sql> interceptor) Register a global interceptor that will be called for all SQL statements.static voidSqlInterceptorManager.registerGlobalObserver(Consumer<Sql> observer) Register a global observer that will be called for all SQL statements.static voidSqlInterceptorManager.unregisterGlobalObserver(Consumer<Sql> observer) Unregister a global observer.static voidSqlInterceptorManager.unregisterGlobalObserver(UnaryOperator<Sql> observer) Unregister a global observer.