All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.xmlmiddleware.conversions.ConvertBigDecimal

java.lang.Object
   |
   +----org.xmlmiddleware.conversions.ConvertBigDecimal

public class ConvertBigDecimal
extends Object
Converts from BigDecimals to other data types.

The following rules from the ODBC specification are followed; the JDBC specification does not address these in spite of allowing the conversions they apply to:

To convert to/from String, use an implementation of the StringFormatter interface.

Version:
2.0
Author:
Ronald Bourret, 2001

Constructor Index

 o ConvertBigDecimal()

Method Index

 o toBigDecimal(BigDecimal)
 o toBoolean(BigDecimal)
 o toBooleanObject(BigDecimal)
 o toByte(BigDecimal)
 o toByteObject(BigDecimal)
 o toDouble(BigDecimal)
 o toDoubleObject(BigDecimal)
 o toFloat(BigDecimal)
 o toFloatObject(BigDecimal)
 o toInteger(BigDecimal)
 o toIntegerObject(BigDecimal)
 o toLong(BigDecimal)
 o toLongObject(BigDecimal)
 o toShort(BigDecimal)
 o toShortObject(BigDecimal)

Constructors

 o ConvertBigDecimal
 public ConvertBigDecimal()

Methods

 o toDouble
 public static double toDouble(BigDecimal b) throws XMLMiddlewareException
 o toDoubleObject
 public static Double toDoubleObject(BigDecimal b) throws XMLMiddlewareException
 o toFloat
 public static float toFloat(BigDecimal b) throws XMLMiddlewareException
 o toFloatObject
 public static Float toFloatObject(BigDecimal b) throws XMLMiddlewareException
 o toBigDecimal
 public static BigDecimal toBigDecimal(BigDecimal b)
 o toLong
 public static long toLong(BigDecimal b) throws XMLMiddlewareException
 o toLongObject
 public static Long toLongObject(BigDecimal b) throws XMLMiddlewareException
 o toInteger
 public static int toInteger(BigDecimal b) throws XMLMiddlewareException
 o toIntegerObject
 public static Integer toIntegerObject(BigDecimal b) throws XMLMiddlewareException
 o toShort
 public static short toShort(BigDecimal b) throws XMLMiddlewareException
 o toShortObject
 public static Short toShortObject(BigDecimal b) throws XMLMiddlewareException
 o toByte
 public static byte toByte(BigDecimal b) throws XMLMiddlewareException
 o toByteObject
 public static Byte toByteObject(BigDecimal b) throws XMLMiddlewareException
 o toBoolean
 public static boolean toBoolean(BigDecimal b) throws XMLMiddlewareException
 o toBooleanObject
 public static Boolean toBooleanObject(BigDecimal b) throws XMLMiddlewareException

All Packages  Class Hierarchy  This Package  Previous  Next  Index