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
-
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
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
-
Constructor Details
-
HibernateBambooEntityWithOid
public HibernateBambooEntityWithOid()
-
-
Method Details
-
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
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
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
-