@Entity public class AccountancyEntry extends AbstractEntity<AccountancyEntryIdentifier>
ProductPaymentEntry
.Modifier | Constructor and Description |
---|---|
protected |
AccountancyEntry()
Deprecated.
|
|
AccountancyEntry(org.joda.money.Money value)
Creates a new
PersistentAccountancyEntry with a specific value. |
|
AccountancyEntry(org.joda.money.Money value,
String description)
Creates a new
PersistentAccountancyEntry with a specific value and a user defined time. |
Modifier and Type | Method and Description |
---|---|
LocalDateTime |
getDate() |
String |
getDescription() |
AccountancyEntryIdentifier |
getIdentifier()
Returns the
SalespointIdentifier . |
org.joda.money.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.joda.money.Money value)
PersistentAccountancyEntry
with a specific value.value
- The value that is stored in this entry.public AccountancyEntry(org.joda.money.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 LocalDateTime getDate()
DateTime
when this entry was posted.void setDate(LocalDateTime dateTime)
public final org.joda.money.Money getValue()
public final String getDescription()
public final AccountancyEntryIdentifier getIdentifier()
AbstractEntity
SalespointIdentifier
.getIdentifier
in class AbstractEntity<AccountancyEntryIdentifier>
AccountancyEntryIdentifier
to uniquely identify this entry.Copyright © 2014 Pivotal Software, Inc.. All rights reserved.