com.atlassian.bamboo.resultsummary
Class ResultIdResultDeletionSQLAdapter

java.lang.Object
  extended by com.atlassian.bamboo.resultsummary.ResultIdResultDeletionSQLAdapter
All Implemented Interfaces:
DeletionSQLAdapter

public class ResultIdResultDeletionSQLAdapter
extends java.lang.Object
implements DeletionSQLAdapter


Constructor Summary
ResultIdResultDeletionSQLAdapter(java.lang.Long resultId)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultIdResultDeletionSQLAdapter

public ResultIdResultDeletionSQLAdapter(java.lang.Long resultId)
Method Detail

getResultSummaryDeleteWhenCondition

public java.lang.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 interface DeletionSQLAdapter
Returns:

getResultSummaryInCondition

public java.lang.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 interface DeletionSQLAdapter
Returns:

getObjectId

public java.lang.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 interface DeletionSQLAdapter
Returns:

setObjectInStatement

public void setObjectInStatement(java.sql.PreparedStatement statement,
                                 int index)
                          throws java.sql.SQLException
Description copied from interface: DeletionSQLAdapter
Sets the current object in the statement given the right index

Specified by:
setObjectInStatement in interface DeletionSQLAdapter
Throws:
java.sql.SQLException


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