Package com.atlassian.bamboo.hibernate
Class HibernateBambooEntityWithOid
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.core.BambooEntityWithOid
-
- com.atlassian.bamboo.hibernate.HibernateBambooEntityWithOid
-
- All Implemented Interfaces:
BambooIdProvider
,BambooObject
,EntityWithOid
,ImmutableEntityWithOid
,Cloneable
- Direct Known Subclasses:
AbstractPlan
,ChainStageImpl
,DefaultProject
,MutableDeploymentProjectImpl
@MappedSuperclass public abstract class HibernateBambooEntityWithOid extends BambooEntityWithOid
A class providing basic id mapping for Hibernate entities. Use instead ofBambooEntityWithOid
.
-
-
Constructor Summary
Constructors Constructor Description HibernateBambooEntityWithOid()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getId()
BambooEntityOid
getOid()
OID assigned to this object.void
setId(long id)
void
setOid(BambooEntityOid oid)
Assign a newBambooEntityOid
to this object.-
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getLastModificationDate, hashCode, setClock, setCreationDate, setLastModificationDate
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getEntityType
-
-
-
-
Method Detail
-
getId
public long getId()
- Specified by:
getId
in interfaceBambooIdProvider
- Overrides:
getId
in classcom.atlassian.core.bean.EntityObject
-
setId
public void setId(long id)
- Specified by:
setId
in interfaceBambooObject
- Overrides:
setId
in classcom.atlassian.core.bean.EntityObject
-
getOid
public BambooEntityOid getOid()
Description copied from interface:ImmutableEntityWithOid
OID assigned to this object. TheBambooEntityOid.getEntityType()
should be the same as this object'sImmutableEntityWithOid.getEntityType()
.- Specified by:
getOid
in interfaceImmutableEntityWithOid
- Overrides:
getOid
in classBambooEntityWithOid
-
setOid
public void setOid(BambooEntityOid oid)
Description copied from interface:EntityWithOid
Assign a newBambooEntityOid
to this object. TheBambooEntityOid.getEntityType()
should be the same as this object'sImmutableEntityWithOid.getEntityType()
.- Specified by:
setOid
in interfaceEntityWithOid
- Overrides:
setOid
in classBambooEntityWithOid
-
-