Package com.atlassian.bamboo.plan.number
Class PlanBuildNumbersImpl
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.plan.number.PlanBuildNumbersImpl
-
- All Implemented Interfaces:
BambooIdProvider,BambooObject,PlanBuildNumbers,Cloneable
@Entity public class PlanBuildNumbersImpl extends BambooEntityObject implements PlanBuildNumbers
-
-
Field Summary
Fields Modifier and Type Field Description static PlanBuildNumbersUNINITIALISED
-
Constructor Summary
Constructors Constructor Description PlanBuildNumbersImpl()PlanBuildNumbersImpl(@NotNull PlanIdentifier planIdentifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNextBuildNumber()The next build number represents the number of the next build result that's to be executed.longgetPlanId()voidsetNextBuildNumber(int nextBuildNumber)voidsetPlanId(long planId)-
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
-
-
-
Field Detail
-
UNINITIALISED
public static PlanBuildNumbers UNINITIALISED
-
-
Constructor Detail
-
PlanBuildNumbersImpl
public PlanBuildNumbersImpl()
-
PlanBuildNumbersImpl
public PlanBuildNumbersImpl(@NotNull @NotNull PlanIdentifier planIdentifier)
-
-
Method Detail
-
getPlanId
public long getPlanId()
- Specified by:
getPlanIdin interfacePlanBuildNumbers
-
getNextBuildNumber
public int getNextBuildNumber()
Description copied from interface:PlanBuildNumbersThe next build number represents the number of the next build result that's to be executed. As a rule, a build with this number does not exist and never did.- Specified by:
getNextBuildNumberin interfacePlanBuildNumbers- Returns:
- a build number, starting with 1
-
setPlanId
public void setPlanId(long planId)
-
setNextBuildNumber
public void setNextBuildNumber(int nextBuildNumber)
-
-