Class MeterLogEntity
java.lang.Object
org.camunda.bpm.engine.impl.persistence.entity.MeterLogEntity
- All Implemented Interfaces:
Serializable
,DbEntity
,HasDbReferences
- Author:
- Daniel Meyer
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMeterLogEntity
(String name, long value, Date timestamp) MeterLogEntity
(String name, String reporter, long value, Date timestamp) -
Method Summary
Modifier and TypeMethodDescriptiongetId()
getName()
Returns a representation of the object, as would be stored in the database.Scope: IN-MEMORY referencesScope: IN-MEMORY referenceslong
getValue()
void
void
setMilliseconds
(Long milliseconds) void
void
setReporter
(String reporter) void
setTimestamp
(Date timestamp) void
setValue
(long value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.camunda.bpm.engine.impl.db.HasDbReferences
getDependentEntities
-
Field Details
-
id
-
timestamp
-
milliseconds
-
name
-
reporter
-
value
protected long value
-
-
Constructor Details
-
MeterLogEntity
-
MeterLogEntity
-
MeterLogEntity
public MeterLogEntity()
-
-
Method Details
-
getId
-
setId
-
getTimestamp
-
setTimestamp
-
getMilliseconds
-
setMilliseconds
-
getName
-
setName
-
getValue
public long getValue() -
setValue
public void setValue(long value) -
getReporter
-
setReporter
-
getPersistentState
Description copied from interface:DbEntity
Returns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.- Specified by:
getPersistentState
in interfaceDbEntity
-
getReferencedEntityIds
Description copied from interface:HasDbReferences
Scope: IN-MEMORY references
- Specified by:
getReferencedEntityIds
in interfaceHasDbReferences
- Returns:
- the ids of the entities that this entity references. Should only return ids for entities of the same type
-
getReferencedEntitiesIdAndClass
Description copied from interface:HasDbReferences
Scope: IN-MEMORY references
- Specified by:
getReferencedEntitiesIdAndClass
in interfaceHasDbReferences
- Returns:
- a map of the ids and the entities' classes that this entity references. It's used when trying to determine if there was an Optimistic Locking occurrence on an INSERT or UPDATE of an object of this type.
-