com.atlassian.jira.issue.link
Class RemoteIssueLinkStoreImpl

java.lang.Object
  extended by com.atlassian.jira.issue.link.RemoteIssueLinkStoreImpl
All Implemented Interfaces:
RemoteIssueLinkStore

public class RemoteIssueLinkStoreImpl
extends Object
implements RemoteIssueLinkStore

Deals with DB operations on RemoteIssueLinks

Since:
v5.0

Field Summary
static String ENTITY_NAME
           
 
Constructor Summary
RemoteIssueLinkStoreImpl(EntityEngine entityEngine)
           
 
Method Summary
 RemoteIssueLink createRemoteIssueLink(RemoteIssueLink remoteIssueLink)
           
 RemoteIssueLink getRemoteIssueLink(Long remoteIssueLinkId)
           
 List<RemoteIssueLink> getRemoteIssueLinksByGlobalId(Issue issue, String globalId)
          Returns remote issue links in given issue with given globalId sorted by id.
 List<RemoteIssueLink> getRemoteIssueLinksForIssue(Issue issue)
           
 void removeRemoteIssueLink(Long remoteIssueLinkId)
           
 void updateRemoteIssueLink(RemoteIssueLink remoteIssueLink)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENTITY_NAME

public static final String ENTITY_NAME
See Also:
Constant Field Values
Constructor Detail

RemoteIssueLinkStoreImpl

public RemoteIssueLinkStoreImpl(EntityEngine entityEngine)
Method Detail

getRemoteIssueLink

public RemoteIssueLink getRemoteIssueLink(Long remoteIssueLinkId)
Specified by:
getRemoteIssueLink in interface RemoteIssueLinkStore

getRemoteIssueLinksForIssue

public List<RemoteIssueLink> getRemoteIssueLinksForIssue(Issue issue)
Specified by:
getRemoteIssueLinksForIssue in interface RemoteIssueLinkStore

getRemoteIssueLinksByGlobalId

public List<RemoteIssueLink> getRemoteIssueLinksByGlobalId(Issue issue,
                                                           String globalId)
Description copied from interface: RemoteIssueLinkStore
Returns remote issue links in given issue with given globalId sorted by id. As the index for enforcing these to be unique would be too long, we have to get by without, and presume that duplicates might appear any time.

Specified by:
getRemoteIssueLinksByGlobalId in interface RemoteIssueLinkStore
Parameters:
issue - issue to search
globalId - globalId to search
Returns:
remote issue links sorted by id.

createRemoteIssueLink

public RemoteIssueLink createRemoteIssueLink(RemoteIssueLink remoteIssueLink)
Specified by:
createRemoteIssueLink in interface RemoteIssueLinkStore

updateRemoteIssueLink

public void updateRemoteIssueLink(RemoteIssueLink remoteIssueLink)
Specified by:
updateRemoteIssueLink in interface RemoteIssueLinkStore

removeRemoteIssueLink

public void removeRemoteIssueLink(Long remoteIssueLinkId)
Specified by:
removeRemoteIssueLink in interface RemoteIssueLinkStore


Copyright © 2002-2012 Atlassian. All Rights Reserved.