@Entity public class AccountancyEntry extends AbstractEntity<AccountancyEntryIdentifier>
ProductPaymentEntry.| Modifier | Constructor and Description |
|---|---|
protected |
AccountancyEntry()
Deprecated.
|
|
AccountancyEntry(org.javamoney.moneta.Money value)
Creates a new
PersistentAccountancyEntry with a specific value. |
|
AccountancyEntry(org.javamoney.moneta.Money value,
String description)
Creates a new
PersistentAccountancyEntry with a specific value and a user defined time. |
| Modifier and Type | Method and Description |
|---|---|
Optional<LocalDateTime> |
getDate() |
String |
getDescription() |
AccountancyEntryIdentifier |
getIdentifier()
Returns the
SalespointIdentifier. |
org.javamoney.moneta.Money |
getValue()
The Money object is always non-null.
|
boolean |
hasDate()
Returns whether the
AccountancyEntry already has a Date set. |
(package private) void |
setDate(LocalDateTime dateTime) |
String |
toString() |
equals, getId, hashCode, isNew@Deprecated protected AccountancyEntry()
public AccountancyEntry(org.javamoney.moneta.Money value)
PersistentAccountancyEntry with a specific value.value - The value that is stored in this entry.public AccountancyEntry(org.javamoney.moneta.Money value,
String description)
PersistentAccountancyEntry with a specific value and a user defined time.value - The value that is stored in this entry.description - A user-supplied description for this entry.public boolean hasDate()
AccountancyEntry already has a Date set.public final Optional<LocalDateTime> getDate()
DateTime when this entry was posted.void setDate(LocalDateTime dateTime)
public final org.javamoney.moneta.Money getValue()
public final String getDescription()
public final AccountancyEntryIdentifier getIdentifier()
AbstractEntitySalespointIdentifier.getIdentifier in class AbstractEntity<AccountancyEntryIdentifier>AccountancyEntryIdentifier to uniquely identify this entry.Copyright © 2016 Pivotal Software, Inc.. All rights reserved.