Package org.chenile.jpautils.entity
Class AbstractJpaStateEntity
java.lang.Object
org.chenile.jpautils.entity.BaseJpaEntity
org.chenile.jpautils.entity.AbstractJpaStateEntity
- All Implemented Interfaces:
StateEntity
,ChenileEntity
,ExtendedStateEntity
@MappedSuperclass
public abstract class AbstractJpaStateEntity
extends BaseJpaEntity
implements ExtendedStateEntity
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private Date
Time after which the SLA for this state entity is deemed as RED (late)private int
private Date
Time after which the SLA for this state entity is deemed as YELLOW (tending late)private State
private Date
Fields inherited from class org.chenile.jpautils.entity.BaseJpaEntity
createdBy, createdTime, id, tenant, testEntity, version
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
void
setCurrentState
(State currentState) void
setSlaLate
(int slaLate) void
setSlaRedDate
(Date slaRedDate) void
setSlaTendingLate
(int slaTendingLate) void
setStateEntryTime
(Date stateEntryTime) Methods inherited from class org.chenile.jpautils.entity.BaseJpaEntity
getCreatedBy, getCreatedTime, getId, getLastModifiedBy, getLastModifiedTime, getPrefix, getVersion, initializeIfRequired, setCreatedBy, setCreatedTime, setId, setLastModifiedBy, setLastModifiedTime, setVersion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.chenile.utils.entity.model.ChenileEntity
getCreatedBy, getCreatedTime, getId, getLastModifiedBy, getLastModifiedTime, getVersion, setCreatedBy, setCreatedTime, setId, setLastModifiedBy, setLastModifiedTime, setVersion
-
Field Details
-
stateEntryTime
-
slaYellowDate
Time after which the SLA for this state entity is deemed as YELLOW (tending late) -
slaRedDate
Time after which the SLA for this state entity is deemed as RED (late) -
slaTendingLate
private int slaTendingLate -
slaLate
private int slaLate -
state
-
-
Constructor Details
-
AbstractJpaStateEntity
public AbstractJpaStateEntity()
-
-
Method Details
-
getSlaRedDate
-
setSlaRedDate
-
setCurrentState
- Specified by:
setCurrentState
in interfaceStateEntity
-
getCurrentState
- Specified by:
getCurrentState
in interfaceStateEntity
-
getStateEntryTime
- Specified by:
getStateEntryTime
in interfaceExtendedStateEntity
-
setStateEntryTime
- Specified by:
setStateEntryTime
in interfaceExtendedStateEntity
-
getSlaTendingLate
public int getSlaTendingLate()- Specified by:
getSlaTendingLate
in interfaceExtendedStateEntity
-
setSlaTendingLate
public void setSlaTendingLate(int slaTendingLate) - Specified by:
setSlaTendingLate
in interfaceExtendedStateEntity
-
getSlaLate
public int getSlaLate()- Specified by:
getSlaLate
in interfaceExtendedStateEntity
-
setSlaLate
public void setSlaLate(int slaLate) - Specified by:
setSlaLate
in interfaceExtendedStateEntity
-