Class SqlQuery<T>
- java.lang.Object
-
- net.lecousin.reactive.data.relational.query.SqlQuery<T>
-
- Type Parameters:
T
- type of query, that can beSelect
,Insert
,InsertMultiple
,Update
orDelete
public class SqlQuery<T> extends Object
SQL query with binding, for execution on a database client.- Author:
- Guillaume Le Cousin
-
-
Constructor Summary
Constructors Constructor Description SqlQuery(LcReactiveDataRelationalClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.r2dbc.core.DatabaseClient.GenericExecuteSpec
execute()
Execute the query.protected String
finalizeQuery(String query, org.springframework.data.relational.core.sql.render.RenderContext renderContext)
LcReactiveDataRelationalClient
getClient()
T
getQuery()
org.springframework.data.relational.core.sql.Expression
marker(Object value)
Create a bind marker that will be bind to the statement on execution.void
setQuery(T query)
-
-
-
Constructor Detail
-
SqlQuery
public SqlQuery(LcReactiveDataRelationalClient client)
-
-
Method Detail
-
getClient
public LcReactiveDataRelationalClient getClient()
-
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.
-
-