Class MoneyUtil
java.lang.Object
com.aoindustries.aoserv.client.billing.MoneyUtil
Helper functions for
Money.- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Moneynull-safe getDto for Money.static Moneynull-safe money conversion.static Moneystatic MoneygetMoney(Currency currency, BigDecimal value) null-safe money conversion.static Moneystatic Moneystatic voidwriteMoney(Money money, StreamableOutput out) static voidwriteNullMoney(Money money, StreamableOutput out)
-
Method Details
-
getDto
null-safe getDto for Money. -
getMoney
null-safe money conversion. -
getMoney
null-safe money conversion. -
getMoney
public static Money getMoney(ResultSet result, String currencyColumnLabel, String valueColumnLabel) throws SQLException Gets aMoneytype from two columns of aResultSet. Supportsnull. If value is non-null then currency must also be non-null.- Throws:
SQLException
-
writeMoney
- Throws:
IOException
-
writeNullMoney
- Throws:
IOException
-
readMoney
- Throws:
IOException
-
readNullMoney
- Throws:
IOException
-
