public class MeasurementVO extends java.lang.Object implements MeasurementI, BaseValueObjectI
int
, double
, money
, text
or boolean
related to a Strategy and a particular timeModifier and Type | Class and Description |
---|---|
static class |
MeasurementVO.VOConverter
Converts instances of value object type
MeasurementVO to corresponding entity type Measurement . |
Constructor and Description |
---|
MeasurementVO(long id,
java.lang.String name,
java.time.ZonedDateTime dateTime,
java.lang.Integer intValue,
java.lang.Double doubleValue,
java.math.BigDecimal moneyValue,
java.lang.String textValue,
java.lang.Boolean booleanValue,
long strategyId) |
MeasurementVO(long id,
java.lang.String name,
java.time.ZonedDateTime dateTime,
long strategyId) |
Modifier and Type | Method and Description |
---|---|
Measurement |
convertVOToEntity(GenericDao genericDao)
converts a value object to its corresponding entity
|
boolean |
equals(java.lang.Object o) |
java.lang.Boolean |
getBooleanValue() |
java.time.ZonedDateTime |
getDateTime() |
java.lang.Double |
getDoubleValue() |
long |
getId() |
java.lang.Integer |
getIntValue() |
java.math.BigDecimal |
getMoneyValue() |
java.lang.String |
getName() |
java.lang.String |
getObjectType() |
long |
getStrategyId()
Represents a running Strategy within the system.
|
java.lang.String |
getTextValue() |
int |
hashCode() |
java.lang.String |
toString() |
public MeasurementVO(long id, java.lang.String name, java.time.ZonedDateTime dateTime, long strategyId)
public MeasurementVO(long id, java.lang.String name, java.time.ZonedDateTime dateTime, java.lang.Integer intValue, java.lang.Double doubleValue, java.math.BigDecimal moneyValue, java.lang.String textValue, java.lang.Boolean booleanValue, long strategyId)
public java.lang.String getObjectType()
public long getId()
getId
in interface BaseValueObjectI
getId
in interface MeasurementI
public java.lang.String getName()
getName
in interface MeasurementI
public java.time.ZonedDateTime getDateTime()
getDateTime
in interface MeasurementI
public java.lang.Integer getIntValue()
getIntValue
in interface MeasurementI
public java.lang.Double getDoubleValue()
getDoubleValue
in interface MeasurementI
public java.math.BigDecimal getMoneyValue()
getMoneyValue
in interface MeasurementI
public java.lang.String getTextValue()
getTextValue
in interface MeasurementI
public java.lang.Boolean getBooleanValue()
getBooleanValue
in interface MeasurementI
public long getStrategyId()
public java.lang.String toString()
toString
in interface BaseValueObjectI
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Measurement convertVOToEntity(GenericDao genericDao)