Package de.xima.fc.entities
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 de.xima.fc.entities.AClientDependentEntity
COL_CLIENTID, mandantFields inherited from class de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, idFields inherited from interface de.xima.fc.entities.interfaces.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 de.xima.fc.entities.interfaces.IMandantDependent
ATTR_MANDANT, COL_CLIENT_IDFields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAMEFields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_IDFields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_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()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) voidvoidsetUUIDObject(UUID uuid) Methods inherited from class de.xima.fc.entities.AClientDependentEntity
getMandant, setMandantMethods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toStringMethods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setIdMethods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface de.xima.fc.entities.interfaces.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
- Specified by:
getIdin interfacede.xima.cmn.dao.interfaces.IEntity<Long>
-
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
- Specified by:
getUUIDin interfaceIUUIDEntity- Returns:
- UUID (Universal Unique Identifier) that identifies this type of entity. Usually is unique within a
context, e.g.
Mandant,Projekt, ...
-
setUUID
- Specified by:
setUUIDin interfaceIUUIDEntity
-
getUUIDObject
- Specified by:
getUUIDObjectin interfaceIUUIDEntity
-
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)
-