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
FieldsModifier and TypeFieldDescriptionprivate intprivate DateTime after which the SLA for this state entity is deemed as RED (late)private intprivate DateTime after which the SLA for this state entity is deemed as YELLOW (tending late)private Stateprivate DateFields inherited from class org.chenile.jpautils.entity.BaseJpaEntity
createdBy, createdTime, id, tenant, testEntity, version -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintvoidsetCurrentState(State currentState) voidsetSlaLate(int slaLate) voidsetSlaRedDate(Date slaRedDate) voidsetSlaTendingLate(int slaTendingLate) voidsetStateEntryTime(Date stateEntryTime) Methods inherited from class org.chenile.jpautils.entity.BaseJpaEntity
getCreatedBy, getCreatedTime, getId, getLastModifiedBy, getLastModifiedTime, getPrefix, getVersion, initializeIfRequired, setCreatedBy, setCreatedTime, setId, setLastModifiedBy, setLastModifiedTime, setVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
setCurrentStatein interfaceStateEntity
-
getCurrentState
- Specified by:
getCurrentStatein interfaceStateEntity
-
getStateEntryTime
- Specified by:
getStateEntryTimein interfaceExtendedStateEntity
-
setStateEntryTime
- Specified by:
setStateEntryTimein interfaceExtendedStateEntity
-
getSlaTendingLate
public int getSlaTendingLate()- Specified by:
getSlaTendingLatein interfaceExtendedStateEntity
-
setSlaTendingLate
public void setSlaTendingLate(int slaTendingLate) - Specified by:
setSlaTendingLatein interfaceExtendedStateEntity
-
getSlaLate
public int getSlaLate()- Specified by:
getSlaLatein interfaceExtendedStateEntity
-
setSlaLate
public void setSlaLate(int slaLate) - Specified by:
setSlaLatein interfaceExtendedStateEntity
-