Class ClientCounter
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>, de.xima.cmn.dao.interfaces.ILockableEntity<Long>, ICounter, IDescriptionProviding, ILockingVersionProviding, IMandantDependent, INameProviding, ITransferable, ITransferableEntity, ITransferableLockableEntity, IUUIDEntity, Serializable, Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
Counter entity in
Mandant scope- Since:
- 7.0.0
- Author:
- XIMA Media GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class AClientDependentEntity
COL_CLIENTID, mandantFields inherited from class AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class AbstractEntity
COL_ID, idFields inherited from interface IDescriptionProviding
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION, COL_DESCRIPTIONFields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_IDFields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSIONFields inherited from interface IMandantDependent
ATTR_CLIENT, ATTR_MANDANT, COL_CLIENT_IDFields inherited from interface INameProviding
ATTR_NAME, COL_NAMEFields inherited from interface ITransferableEntity
IMPORT_ID, INVALID_IDFields inherited from interface IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetId()longgetName()intintlongintDays of the week at which the counter should be reset.getUUID()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.booleanvoidsetCounterValue(long counterValue) voidsetDateCreated(Date dateCreated) voidsetDateEdited(Date dateEdited) voidsetDescription(String description) void!!!voidsetInitialValue(long initialValue) voidvoidsetResetAutomatically(boolean resetAutomatically) voidsetResetDay(int resetDay) voidsetResetMonth(int resetMonth) voidsetResetTime(LocalTime resetTime) voidsetResetTimeDate(Date resetTime) voidsetResetType(ECounterResetType resetType) voidsetResetValue(long resetConditionValue) voidsetResetWeekday(int resetWeekday) voidsetResetWeekdays(DayOfWeek[] resetWeekdays) voidSets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid) Methods inherited from class AClientDependentEntity
getMandant, setMandantMethods inherited from class AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toStringMethods inherited from class AbstractEntity
asIntValue, isPersisted, setIdMethods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCodeMethods inherited from interface Comparable
compareToMethods inherited from interface ICounter
getResetHour, getResetMinuteMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersisted
-
Field Details
-
ATTR_COUNTER_VALUE
- See Also:
-
ATTR_INITIAL_VALUE
- See Also:
-
ATTR_DATE_CREATED
- See Also:
-
ATTR_DATE_EDITED
- See Also:
-
ATTR_RESET_PERIODICALLY
- See Also:
-
ATTR_RESET_CONDITION_TYPE
- See Also:
-
ATTR_RESET_CONDITION_VALUE
- See Also:
-
ATTR_RESET_TIME
- See Also:
-
ATTR_RESET_WEEKDAY
- See Also:
-
ATTR_RESET_DAY
- See Also:
-
ATTR_RESET_MONTH
- See Also:
-
COL_COUNTER_VALUE
- See Also:
-
COL_INITIAL_VALUE
- See Also:
-
COL_DATE_CREATED
- See Also:
-
COL_DATE_EDITED
- See Also:
-
COL_RESET_AUTOMATICALLY
- See Also:
-
COL_RESET_TYPE
- See Also:
-
COL_RESET_VALUE
- See Also:
-
COL_RESET_TIME
- See Also:
-
COL_RESET_WEEKDAY
- See Also:
-
COL_RESET_DAY
- See Also:
-
COL_RESET_MONTH
- See Also:
-
-
Constructor Details
-
ClientCounter
public ClientCounter()
-
-
Method Details
-
getId
-
setId
Description copied from class:AbstractEntity!!!WARNING: Currently values biggerInteger.MAX_VALUEor lower thenInteger.MIN_VALUEwill be altered to null!!!- Specified by:
setIdin interfacede.xima.cmn.dao.interfaces.IEntity<Long>- Overrides:
setIdin classAbstractEntity- Parameters:
id-Longthe database-id to set
-
getUUID
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
getUUIDin interfaceIUUIDEntity- Returns:
- The UUID of the entity.
-
setUUID
Description copied from interface:IUUIDEntitySets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
setUUIDin interfaceIUUIDEntity- Parameters:
uuid- The UUID of the entity.
-
getUUIDObject
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
getUUIDObjectin interfaceIUUIDEntity- Returns:
- The UUID of the entity.
-
setUUIDObject
-
getName
- Specified by:
getNamein interfaceINameProviding- Returns:
- The name of this object.
-
setName
-
getDescription
- Specified by:
getDescriptionin interfaceIDescriptionProviding- Returns:
- A human-readable description for this object.
-
setDescription
-
getBeschreibung
- Specified by:
getBeschreibungin interfaceIDescriptionProviding
-
getCounterValue
public long getCounterValue()- Specified by:
getCounterValuein interfaceICounter- Returns:
- current value of the counter
-
setCounterValue
public void setCounterValue(long counterValue) -
getInitialValue
public long getInitialValue()- Specified by:
getInitialValuein interfaceICounter- Returns:
- value the counter should be reset to (directly or automatically)
-
setInitialValue
public void setInitialValue(long initialValue) -
getDateCreated
- Specified by:
getDateCreatedin interfaceICounter- Returns:
- when the counter was created
-
setDateCreated
-
getDateEdited
- Specified by:
getDateEditedin interfaceICounter- Returns:
- when the counter was last edited
-
setDateEdited
-
isResetAutomatically
public boolean isResetAutomatically()- Specified by:
isResetAutomaticallyin interfaceICounter- Returns:
- whether or not the counter should reset itself automatically according to its reset configuration
-
setResetAutomatically
public void setResetAutomatically(boolean resetAutomatically) -
getResetType
- Specified by:
getResetTypein interfaceICounter- Returns:
- type of condition for resetting the counter automatically
-
setResetType
-
getResetValue
public long getResetValue()- Specified by:
getResetValuein interfaceICounter- Returns:
- value that needs to be met in order to trigger a counter reset. Only applicable for reset types
ECounterResetType.VALUE_GREATER_EQUAL&ECounterResetType.VALUE_LESSER_EQUAL
-
setResetValue
public void setResetValue(long resetConditionValue) -
getResetTime
- Specified by:
getResetTimein interfaceICounter- Returns:
- time of the day at which the counter should be reset. Only applicable for reset types
ECounterResetType.TIME_DAILY,ECounterResetType.TIME_WEEKLY,ECounterResetType.TIME_MONTHLY&ECounterResetType.TIME_YEARLY
-
setResetTime
-
getResetTimeDate
- Returns:
- The reset time as a date
-
setResetTimeDate
-
getResetWeekday
public int getResetWeekday()- Specified by:
getResetWeekdayin interfaceICounter- Returns:
- Days of the week at which the counter should be reset, returned as a an XORed int
-
setResetWeekday
public void setResetWeekday(int resetWeekday) -
getResetWeekdays
Days of the week at which the counter should be reset. Only applicable for reset typeECounterResetType.TIME_WEEKLY -
setResetWeekdays
-
getResetDay
public int getResetDay()- Specified by:
getResetDayin interfaceICounter- Returns:
- Day of the month at which the counter should be reset. Only applicable for reset types
ECounterResetType.TIME_MONTHLY&ECounterResetType.TIME_YEARLY
-
setResetDay
public void setResetDay(int resetDay) -
getResetMonth
public int getResetMonth()- Specified by:
getResetMonthin interfaceICounter- Returns:
- Month of the year at which the counter should be reset. Only applicable for reset type
ECounterResetType.TIME_YEARLY
-
setResetMonth
public void setResetMonth(int resetMonth)
-