Interface DeletionSQLAdapter
-
- All Known Implementing Classes:
PlanKeyResultDeletionSQLAdapter
,ResultIdResultDeletionSQLAdapter
@Internal @NotThreadSafe public interface DeletionSQLAdapter
Helper interface to abstract away some nastiness of adapting to different input types
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getObjectId()
Returns the string value of the object we're querying for.String
getResultSummaryDeleteWhenCondition()
Condition used in a WHEN clause in BUILDRESULTSUMMARY eg.String
getResultSummaryInCondition()
Inner condition used in a WHEN BUILDRESULTSUMMARY_ID IN e.g.void
setObjectInStatement(PreparedStatement statement, int index)
Sets the current object in the statement given the right index
-
-
-
Method Detail
-
getObjectId
String getObjectId()
Returns the string value of the object we're querying for. Used for logging.- Returns:
-
getResultSummaryDeleteWhenCondition
String getResultSummaryDeleteWhenCondition()
Condition used in a WHEN clause in BUILDRESULTSUMMARY eg. "delete from BUILDRESULTSUMMARY where " + getResultSummaryDeleteCondition()- Returns:
-
getResultSummaryInCondition
String getResultSummaryInCondition()
Inner condition used in a WHEN BUILDRESULTSUMMARY_ID IN e.g. "delete from REPOSITORY_CHANGESET where BUILDRESULTSUMMARY_ID in " + getResultSummaryInCondition()- Returns:
-
setObjectInStatement
void setObjectInStatement(PreparedStatement statement, int index) throws SQLException
Sets the current object in the statement given the right index- Parameters:
statement
-index
-- Throws:
SQLException
-
-