@Retention(value=RUNTIME) @Target(value=FIELD) public @interface Money
When placed on an entity field of type Money or BigMoney, the following properties will be stored
for that property:
To customize the behavior of this annotation, the following properties may be set:
storeDisplayableAmount: Set to true to store a displayable currency amount for human-readability in the
App Engine Datastore Viewer (defaults to true).indexDisplayableAmount: Set to
to index the displayableAmount property (defaults to false).displayableAmountFieldName: The property-name to store the displayableAmount in Appengine Datastore
Entities. (defaults to 'displayableAmount').encodedAmountFieldName: The
property-name to store the encodedAmount value in Appengine Datastore Entities. (defaults to 'encodedAmount').indexEncodedAmount: Set to true to index the
encodedAmount property (defaults to true).indexCurrencyCode: Set to
true to index the currencyCode property (defaults to false).currencyCodeFieldName: The property-name to store the currencyCode value in Appengine Datastore
Entities. (defaults to 'currencyCode').| Modifier and Type | Optional Element and Description |
|---|---|
String |
currencyCodeFieldName |
String |
displayableAmountFieldName |
String |
encodedAmountFieldName |
boolean |
indexCurrencyCode |
boolean |
indexDisplayableAmount |
boolean |
indexEncodedAmount |
boolean |
storeDisplayableAmount |
public abstract boolean storeDisplayableAmount
public abstract boolean indexDisplayableAmount
public abstract String displayableAmountFieldName
public abstract String encodedAmountFieldName
public abstract boolean indexEncodedAmount
public abstract String currencyCodeFieldName
public abstract boolean indexCurrencyCode
Copyright © 2013-2014–2015 Sappenin Inc.. All rights reserved.