Class ResultIdResultDeletionSQLAdapter
- java.lang.Object
-
- com.atlassian.bamboo.resultsummary.ResultIdResultDeletionSQLAdapter
-
- All Implemented Interfaces:
DeletionSQLAdapter
public class ResultIdResultDeletionSQLAdapter extends Object implements DeletionSQLAdapter
-
-
Constructor Summary
Constructors Constructor Description ResultIdResultDeletionSQLAdapter(Long resultId)
-
Method Summary
All Methods Instance Methods Concrete 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
-
-
-
Constructor Detail
-
ResultIdResultDeletionSQLAdapter
public ResultIdResultDeletionSQLAdapter(Long resultId)
-
-
Method Detail
-
getResultSummaryDeleteWhenCondition
public String getResultSummaryDeleteWhenCondition()
Description copied from interface:DeletionSQLAdapter
Condition used in a WHEN clause in BUILDRESULTSUMMARY eg. "delete from BUILDRESULTSUMMARY where " + getResultSummaryDeleteCondition()- Specified by:
getResultSummaryDeleteWhenCondition
in interfaceDeletionSQLAdapter
- Returns:
-
getResultSummaryInCondition
public String getResultSummaryInCondition()
Description copied from interface:DeletionSQLAdapter
Inner condition used in a WHEN BUILDRESULTSUMMARY_ID IN e.g. "delete from REPOSITORY_CHANGESET where BUILDRESULTSUMMARY_ID in " + getResultSummaryInCondition()- Specified by:
getResultSummaryInCondition
in interfaceDeletionSQLAdapter
- Returns:
-
getObjectId
public String getObjectId()
Description copied from interface:DeletionSQLAdapter
Returns the string value of the object we're querying for. Used for logging.- Specified by:
getObjectId
in interfaceDeletionSQLAdapter
- Returns:
-
setObjectInStatement
public void setObjectInStatement(PreparedStatement statement, int index) throws SQLException
Description copied from interface:DeletionSQLAdapter
Sets the current object in the statement given the right index- Specified by:
setObjectInStatement
in interfaceDeletionSQLAdapter
- Throws:
SQLException
-
-