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 String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class de.xima.fc.entities.AClientDependentEntity
COL_CLIENTID, mandant
Fields inherited from class de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersion
Fields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, id
Fields inherited from interface de.xima.fc.entities.interfaces.IDescriptionProviding
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION, COL_DESCRIPTION
Fields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_ID
Fields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSION
Fields inherited from interface de.xima.fc.entities.interfaces.IMandantDependent
ATTR_MANDANT, COL_CLIENT_ID
Fields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAME
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
Fields 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 TypeMethodDescriptionlong
getId()
long
getName()
int
int
long
int
Days of the week at which the counter should be reset.getUUID()
boolean
void
setCounterValue
(long counterValue) void
setDateCreated
(Date dateCreated) void
setDateEdited
(Date dateEdited) void
setDescription
(String description) void
!!!void
setInitialValue
(long initialValue) void
void
setResetAutomatically
(boolean resetAutomatically) void
setResetDay
(int resetDay) void
setResetMonth
(int resetMonth) void
setResetTime
(LocalTime resetTime) void
setResetTimeDate
(Date resetTime) void
setResetType
(ECounterResetType resetType) void
setResetValue
(long resetConditionValue) void
setResetWeekday
(int resetWeekday) void
setResetWeekdays
(DayOfWeek[] resetWeekdays) void
void
setUUIDObject
(UUID uuid) Methods inherited from class de.xima.fc.entities.AClientDependentEntity
getMandant, setMandant
Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toString
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface de.xima.fc.entities.interfaces.ICounter
getResetHour, getResetMinute
Methods 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:
getId
in interfacede.xima.cmn.dao.interfaces.IEntity<Long>
-
setId
Description copied from class:AbstractEntity
!!!WARNING: Currently values biggerInteger.MAX_VALUE
or lower thenInteger.MIN_VALUE
will be altered to null!!!- Specified by:
setId
in interfacede.xima.cmn.dao.interfaces.IEntity<Long>
- Overrides:
setId
in classAbstractEntity
- Parameters:
id
-Long
the database-id to set
-
getUUID
- Specified by:
getUUID
in 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:
setUUID
in interfaceIUUIDEntity
-
getUUIDObject
- Specified by:
getUUIDObject
in interfaceIUUIDEntity
-
setUUIDObject
-
getName
- Specified by:
getName
in interfaceINameProviding
- Returns:
- The name of this object.
-
setName
-
getDescription
- Specified by:
getDescription
in interfaceIDescriptionProviding
- Returns:
- A human-readable description for this object.
-
setDescription
-
getBeschreibung
- Specified by:
getBeschreibung
in interfaceIDescriptionProviding
-
getCounterValue
public long getCounterValue()- Specified by:
getCounterValue
in interfaceICounter
- Returns:
- current value of the counter
-
setCounterValue
public void setCounterValue(long counterValue) -
getInitialValue
public long getInitialValue()- Specified by:
getInitialValue
in interfaceICounter
- Returns:
- value the counter should be reset to (directly or automatically)
-
setInitialValue
public void setInitialValue(long initialValue) -
getDateCreated
- Specified by:
getDateCreated
in interfaceICounter
- Returns:
- when the counter was created
-
setDateCreated
-
getDateEdited
- Specified by:
getDateEdited
in interfaceICounter
- Returns:
- when the counter was last edited
-
setDateEdited
-
isResetAutomatically
public boolean isResetAutomatically()- Specified by:
isResetAutomatically
in 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:
getResetType
in interfaceICounter
- Returns:
- type of condition for resetting the counter automatically
-
setResetType
-
getResetValue
public long getResetValue()- Specified by:
getResetValue
in 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:
getResetTime
in 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:
getResetWeekday
in 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:
getResetDay
in 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:
getResetMonth
in 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)
-