com.atlassian.bamboo.resultsummary
Interface DeletionSQLAdapter

All Known Implementing Classes:
PlanKeyResultDeletionSQLAdapter, ResultIdResultDeletionSQLAdapter

@NotThreadSafe
public interface DeletionSQLAdapter

Helper interface to abstract away some nastiness of adapting to different input types


Method Summary
 java.lang.String getObjectId()
          Returns the string value of the object we're querying for.
 java.lang.String getResultSummaryDeleteWhenCondition()
          Condition used in a WHEN clause in BUILDRESULTSUMMARY eg.
 java.lang.String getResultSummaryInCondition()
          Inner condition used in a WHEN BUILDRESULTSUMMARY_ID IN e.g.
 void setObjectInStatement(java.sql.PreparedStatement statement, int index)
          Sets the current object in the statement given the right index
 

Method Detail

getObjectId

java.lang.String getObjectId()
Returns the string value of the object we're querying for. Used for logging.

Returns:

getResultSummaryDeleteWhenCondition

java.lang.String getResultSummaryDeleteWhenCondition()
Condition used in a WHEN clause in BUILDRESULTSUMMARY eg. "delete from BUILDRESULTSUMMARY where " + getResultSummaryDeleteCondition()

Returns:

getResultSummaryInCondition

java.lang.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(java.sql.PreparedStatement statement,
                          int index)
                          throws java.sql.SQLException
Sets the current object in the statement given the right index

Parameters:
statement -
index -
Throws:
java.sql.SQLException


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.