Class SqlQuery<T>

  • Type Parameters:
    T - type of query, that can be Select, Insert, InsertMultiple, Update or Delete

    public class SqlQuery<T>
    extends Object
    SQL query with binding, for execution on a database client.
    Author:
    Guillaume Le Cousin
    • Method Detail

      • getQuery

        public T getQuery()
      • setQuery

        public void setQuery​(T query)
      • marker

        public org.springframework.data.relational.core.sql.Expression marker​(Object value)
        Create a bind marker that will be bind to the statement on execution.
      • finalizeQuery

        protected String finalizeQuery​(String query,
                                       org.springframework.data.relational.core.sql.render.RenderContext renderContext)
      • execute

        public org.springframework.r2dbc.core.DatabaseClient.GenericExecuteSpec execute()
        Execute the query.