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
Modifier and TypeMethodDescriptionReturns the string value of the object we're querying for.Condition used in a WHEN clause in BUILDRESULTSUMMARY eg.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 Details
-
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
Sets the current object in the statement given the right index- Parameters:
statement
-index
-- Throws:
SQLException
-