Class QueryRunner<Res>
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.query.QueryRunner<Res>
-
public class QueryRunner<Res> extends Object
-
-
Constructor Summary
Constructors Constructor Description QueryRunner(SQLRunnerEx runner, SQLItemFactory<Res> itemFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryRunneraddCondition(String whereCondition)QueryRunneraddJoin(String fullJoinString)QueryRunnerclearJoins()List<Res>getItems(Object... params)StringgetOrder()voidprocessItems(ItemProcessor<Res> processor, Object... params)QueryRunnerremoveCondition(String whereCondition)QueryRunnersetBaseQuery(String baseQuery)QueryRunnersetOrder(String order)QueryRunnersetQueryOptions(QueryOptions queryOptions)
-
-
-
Constructor Detail
-
QueryRunner
public QueryRunner(@NotNull SQLRunnerEx runner, @NotNull SQLItemFactory<Res> itemFactory)
-
-
Method Detail
-
setBaseQuery
@NotNull public QueryRunner setBaseQuery(@NotNull String baseQuery)
-
addCondition
@NotNull public QueryRunner addCondition(@NotNull String whereCondition)
-
removeCondition
@NotNull public QueryRunner removeCondition(@NotNull String whereCondition)
-
addJoin
@NotNull public QueryRunner addJoin(@NotNull String fullJoinString)
-
clearJoins
@NotNull public QueryRunner clearJoins()
-
setQueryOptions
@NotNull public QueryRunner setQueryOptions(@NotNull QueryOptions queryOptions)
-
setOrder
@NotNull public QueryRunner setOrder(@NotNull String order)
-
getOrder
public String getOrder()
-
processItems
public void processItems(@NotNull ItemProcessor<Res> processor, Object... params)
-
-