Package de.chojo.sqlutil.wrapper.stage
Interface QueryStage<T>
- Type Parameters:
T- type
- All Known Implementing Classes:
QueryBuilder
public interface QueryStage<T>
Query stage of a
QueryBuilder-
Method Summary
Modifier and TypeMethodDescriptionSet the query to execute.default StatementStage<T>Set the query to execute.queryWithoutParams(String query) Set the query to execute.default ResultStage<T>queryWithoutParams(String query, Object... objects) Set the query to execute.
-
Method Details
-
query
Set the query to execute.- Parameters:
query- query to set.- Returns:
- The
QueryBuilderin aStatementStagewith the query defined.
-
query
Set the query to execute.- Parameters:
query- query to set.objects- objects to replace in aString.format(String, Object...)Do not use this with user input! This should be only used to insert column or table names at runtime- Returns:
- The
QueryBuilderin aStatementStagewith the query defined.
-
queryWithoutParams
Set the query to execute.This will also skip the statement stage.
- Parameters:
query- query to set.- Returns:
- The
QueryBuilderin aResultStagewith the query defined and no parameter set.
-
queryWithoutParams
Set the query to execute.This will also skip the statement stage.
- Parameters:
query- query to set.objects- objects to replace in aString.format(String, Object...)Do not use this with user input! This should be only used to insert column or table names at runtime- Returns:
- The
QueryBuilderin aResultStagewith the query defined and no parameter set.
-