Class BaseTestQueryHelper
- java.lang.Object
-
- jetbrains.buildServer.serverSide.statistics.impl.BaseTestQueryHelper
-
- Direct Known Subclasses:
TestDurationQueryHelper
,TestMetadataQueryHelper
public abstract class BaseTestQueryHelper extends Object
A base class for query helpers for obtaining per-test statistics values from the database for graphs
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
AGENT_NAME_COLUMN_INDEX
protected static int
BRANCH_NAME_COLUMN_INDEX
protected static int
BUILD_NUMBER_COLUMN_INDEX
protected static int
DURATION_COLUMN_INDEX
protected static String
EXTRA_CONDITION
protected static String
HD_QUERY_SUFFIX
protected SQLRunnerEx
mySqlRunner
protected long
myTestNameId
protected BuildChartSettings
myValueFilter
protected static String
ORDER_PART
protected static int
SERIES_ID_COLUMN_INDEX
protected static int
START_TIME_COLUMN_INDEX
protected static int
STATUS_COLUMN_INDEX
protected static int
STATUS_TEXT_COLUMN_INDEX
-
Constructor Summary
Constructors Constructor Description BaseTestQueryHelper(SQLRunnerEx sqlRunner, BuildChartSettings valueFilter, long testNameId, ProjectManager projectManager)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected List<Object>
buildParamList()
protected abstract BuildValue
createBuildValueFromRow(ResultSet rs, boolean isPersonal, long buildId, String buildTypeInternalId)
protected abstract GenericQuery<List<BuildValue>>
createHistoryDataQueryOneBt(String condition)
protected abstract GenericQuery<List<BuildValue>>
createHistoryQueryManyBt(String condition)
protected abstract GenericQuery<List<BuildValue>>
createRunningDataQueryOneBt(String condition)
protected abstract GenericQuery<List<BuildValue>>
createRunningQueryManyBt(String condition)
void
executeQueries(List<BuildValue> result)
protected String
toExternal(String internalBuildTypeId)
-
-
-
Field Detail
-
EXTRA_CONDITION
protected static final String EXTRA_CONDITION
- See Also:
- Constant Field Values
-
HD_QUERY_SUFFIX
protected static final String HD_QUERY_SUFFIX
- See Also:
- Constant Field Values
-
ORDER_PART
protected static final String ORDER_PART
- See Also:
- Constant Field Values
-
AGENT_NAME_COLUMN_INDEX
protected static final int AGENT_NAME_COLUMN_INDEX
-
SERIES_ID_COLUMN_INDEX
protected static final int SERIES_ID_COLUMN_INDEX
-
BUILD_NUMBER_COLUMN_INDEX
protected static final int BUILD_NUMBER_COLUMN_INDEX
-
START_TIME_COLUMN_INDEX
protected static final int START_TIME_COLUMN_INDEX
-
BRANCH_NAME_COLUMN_INDEX
protected static final int BRANCH_NAME_COLUMN_INDEX
-
STATUS_TEXT_COLUMN_INDEX
protected static final int STATUS_TEXT_COLUMN_INDEX
-
DURATION_COLUMN_INDEX
protected static final int DURATION_COLUMN_INDEX
-
STATUS_COLUMN_INDEX
protected static final int STATUS_COLUMN_INDEX
-
myTestNameId
protected final long myTestNameId
-
mySqlRunner
@NotNull protected final SQLRunnerEx mySqlRunner
-
myValueFilter
@NotNull protected final BuildChartSettings myValueFilter
-
-
Constructor Detail
-
BaseTestQueryHelper
public BaseTestQueryHelper(@NotNull SQLRunnerEx sqlRunner, @NotNull BuildChartSettings valueFilter, long testNameId, @NotNull ProjectManager projectManager)
-
-
Method Detail
-
createRunningDataQueryOneBt
@NotNull protected abstract GenericQuery<List<BuildValue>> createRunningDataQueryOneBt(String condition)
-
createHistoryDataQueryOneBt
@NotNull protected abstract GenericQuery<List<BuildValue>> createHistoryDataQueryOneBt(String condition)
-
createRunningQueryManyBt
@NotNull protected abstract GenericQuery<List<BuildValue>> createRunningQueryManyBt(String condition)
-
createHistoryQueryManyBt
@NotNull protected abstract GenericQuery<List<BuildValue>> createHistoryQueryManyBt(String condition)
-
createBuildValueFromRow
@NotNull protected abstract BuildValue createBuildValueFromRow(ResultSet rs, boolean isPersonal, long buildId, String buildTypeInternalId) throws SQLException
- Throws:
SQLException
-
executeQueries
public void executeQueries(List<BuildValue> result)
-
-