com.atlassian.bamboo.deployments.versions.persistence.commits
Class MutableDeploymentVersionVcsCommitImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.deployments.versions.persistence.commits.MutableDeploymentVersionVcsCommitImpl
All Implemented Interfaces:
BambooIdProvider, BambooObject, InternalDeploymentVersionVcsCommit, MutableDeploymentVersionVcsCommit, java.lang.Cloneable

public class MutableDeploymentVersionVcsCommitImpl
extends BambooEntityObject
implements MutableDeploymentVersionVcsCommit


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
MutableDeploymentVersionVcsCommitImpl()
           
MutableDeploymentVersionVcsCommitImpl(MutableDeploymentVersionVcsChangeset changeset, Author author, java.lang.String changeSetId, java.lang.String comment, java.util.Date date)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object o)
          This method needs to be here in order to use proper id
 Author getAuthor()
           
 MutableDeploymentVersionVcsChangeset getChangeset()
           
 java.lang.String getChangeSetId()
           
 java.lang.String getComment()
           
 java.util.Date getDate()
           
 int hashCode()
          This method needs to be here in order to use proper id
 void setAuthor(Author author)
           
 void setChangeset(MutableDeploymentVersionVcsChangeset changeset)
           
 void setChangeSetId(java.lang.String changeSetId)
           
 void setComment(java.lang.String comment)
           
 void setDate(java.util.Date date)
           
 java.lang.String toString()
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 

Constructor Detail

MutableDeploymentVersionVcsCommitImpl

public MutableDeploymentVersionVcsCommitImpl()

MutableDeploymentVersionVcsCommitImpl

public MutableDeploymentVersionVcsCommitImpl(MutableDeploymentVersionVcsChangeset changeset,
                                             Author author,
                                             java.lang.String changeSetId,
                                             java.lang.String comment,
                                             java.util.Date date)
Method Detail

getChangeset

@NotNull
public MutableDeploymentVersionVcsChangeset getChangeset()
Specified by:
getChangeset in interface MutableDeploymentVersionVcsCommit

setChangeset

public void setChangeset(@NotNull
                         MutableDeploymentVersionVcsChangeset changeset)
Specified by:
setChangeset in interface MutableDeploymentVersionVcsCommit

getAuthor

public Author getAuthor()
Specified by:
getAuthor in interface InternalDeploymentVersionVcsCommit
Returns:
Author who made the commit

setAuthor

public void setAuthor(Author author)
Specified by:
setAuthor in interface MutableDeploymentVersionVcsCommit

getComment

@NotNull
public java.lang.String getComment()
Specified by:
getComment in interface InternalDeploymentVersionVcsCommit
Returns:
the commit comment

setComment

public void setComment(@NotNull
                       java.lang.String comment)
Specified by:
setComment in interface MutableDeploymentVersionVcsCommit

getDate

public java.util.Date getDate()
Specified by:
getDate in interface InternalDeploymentVersionVcsCommit
Returns:
Date of commit.

setDate

public void setDate(java.util.Date date)
Specified by:
setDate in interface MutableDeploymentVersionVcsCommit

getChangeSetId

public java.lang.String getChangeSetId()
Specified by:
getChangeSetId in interface InternalDeploymentVersionVcsCommit
Returns:
VCS identifier for this changeset

setChangeSetId

public void setChangeSetId(java.lang.String changeSetId)
Specified by:
setChangeSetId in interface MutableDeploymentVersionVcsCommit

hashCode

public int hashCode()
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
hashCode in class BambooEntityObject

equals

public boolean equals(java.lang.Object o)
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
equals in class BambooEntityObject

compareTo

public int compareTo(java.lang.Object obj)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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