Java Code Examples for javax.money.MonetaryAmount#toString()

The following examples show how to use javax.money.MonetaryAmount#toString() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MonetaryAmountAttributeConverter.java    From pizzeria with MIT License 4 votes vote down vote up
@Override
public String convertToDatabaseColumn(MonetaryAmount attribute) {
    return attribute.toString();
}
 
Example 2
Source File: LongColumnFastMoneyMajorMapper.java    From jadira with Apache License 2.0 4 votes vote down vote up
@Override
public String toNonNullString(MonetaryAmount value) {
	return value.toString();
}
 
Example 3
Source File: LongColumnFastMoneyMinorMapper.java    From jadira with Apache License 2.0 4 votes vote down vote up
@Override
public String toNonNullString(MonetaryAmount value) {
	return value.toString();
}
 
Example 4
Source File: BigDecimalColumnMoneyMapper.java    From jadira with Apache License 2.0 4 votes vote down vote up
@Override
public String toNonNullString(MonetaryAmount value) {
	return value.toString();
}
 
Example 5
Source File: LongColumnMoneyMinorMapper.java    From jadira with Apache License 2.0 4 votes vote down vote up
@Override
public String toNonNullString(MonetaryAmount value) {
    return value.toString();
}
 
Example 6
Source File: LongColumnMoneyMajorMapper.java    From jadira with Apache License 2.0 4 votes vote down vote up
@Override
public String toNonNullString(MonetaryAmount value) {
	return value.toString();
}
 
Example 7
Source File: BigDecimalColumnFastMoneyMapper.java    From jadira with Apache License 2.0 4 votes vote down vote up
@Override
public String toNonNullString(MonetaryAmount value) {
	return value.toString();
}
 
Example 8
Source File: MonetaryAmountAttributeConverter.java    From salespoint with Apache License 2.0 4 votes vote down vote up
@Override
public String convertToDatabaseColumn(MonetaryAmount amount) {
	return amount == null ? null : amount.toString();
}
 
Example 9
Source File: MonetaryFormatTable.java    From javamoney-examples with Apache License 2.0 4 votes vote down vote up
@Override
public String queryFrom(MonetaryAmount amount) {
	return amount.toString();
}