Package de.chojo.sadu.queries.query
Class ParsedQueryImpl
java.lang.Object
de.chojo.sadu.queries.query.ParsedQueryImpl
- All Implemented Interfaces:
DataSourceProvider
,ConnectionProvider
,QueryProvider
,ParsedQuery
-
Method Summary
Modifier and TypeMethodDescriptionDefine a batch call for your query.batch
(CallSupplier<BatchCall> calls) Define a batch call for your query.static ParsedQueryImpl
create
(QueryProvider query, String sql, Object... format) query()
single
(CallSupplier<SingletonCall> call) Define a call for your query.single
(SingletonCall param) Define a call for your query.sql()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.chojo.sadu.queries.api.query.ParsedQuery
batch, batch, batch, single, single
Methods inherited from interface de.chojo.sadu.queries.api.base.QueryProvider
callConnection, configuration, source
-
Method Details
-
create
-
single
Description copied from interface:ParsedQuery
Define a call for your query. This will execute the query with your arguments.- Specified by:
single
in interfaceParsedQuery
- Parameters:
param
- a singleton call- Returns:
- A called batch query
-
single
Description copied from interface:ParsedQuery
Define a call for your query. This will execute the query with your arguments.- Specified by:
single
in interfaceParsedQuery
- Parameters:
call
- a call supplier that allows access to the query storage- Returns:
- A called singleton query
-
batch
Description copied from interface:ParsedQuery
Define a batch call for your query. This will execute the query with every argument combination that are passed here.- Specified by:
batch
in interfaceParsedQuery
- Parameters:
calls
- the batch call to be executed- Returns:
- A called batch query
-
batch
Description copied from interface:ParsedQuery
Define a batch call for your query. This will execute the query with every argument combination that are passed here.- Specified by:
batch
in interfaceParsedQuery
- Parameters:
calls
- a call supplier that allows access to the query storage- Returns:
- A called batch query
-
sql
-
query
- Specified by:
query
in interfaceQueryProvider
-