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
A class providing basic id mapping for Hibernate entities. Use instead of
BambooEntityWithOid.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetId()getOid()OID assigned to this object.voidsetId(long id) voidsetOid(BambooEntityOid oid) Assign a newBambooEntityOidto this object.Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getLastModificationDate, hashCode, setClock, setCreationDate, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getEntityType
-
Constructor Details
-
HibernateBambooEntityWithOid
public HibernateBambooEntityWithOid()
-
-
Method Details
-
getId
public long getId()- Specified by:
getIdin interfaceBambooIdProvider- Overrides:
getIdin classcom.atlassian.core.bean.EntityObject
-
setId
public void setId(long id) - Specified by:
setIdin interfaceBambooObject- Overrides:
setIdin classcom.atlassian.core.bean.EntityObject
-
getOid
Description copied from interface:ImmutableEntityWithOidOID assigned to this object. TheBambooEntityOid.getEntityType()should be the same as this object'sImmutableEntityWithOid.getEntityType().- Specified by:
getOidin interfaceImmutableEntityWithOid- Overrides:
getOidin classBambooEntityWithOid
-
setOid
Description copied from interface:EntityWithOidAssign a newBambooEntityOidto this object. TheBambooEntityOid.getEntityType()should be the same as this object'sImmutableEntityWithOid.getEntityType().- Specified by:
setOidin interfaceEntityWithOid- Overrides:
setOidin classBambooEntityWithOid
-