org.jpox.util
Class SQLFormat

java.lang.Object
  extended byorg.jpox.util.SQLFormat

public class SQLFormat
extends java.lang.Object

Utility class providing SQL formatting methods.

Version:
$Revision: 1.2 $

Constructor Summary
SQLFormat()
           
 
Method Summary
static java.lang.String format(java.math.BigDecimal bd)
          Formats the given BigDecimal value into a SQL floating-point literal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLFormat

public SQLFormat()
Method Detail

format

public static java.lang.String format(java.math.BigDecimal bd)
Formats the given BigDecimal value into a SQL floating-point literal. BigDecimal.toString() is not well suited to this purpose because it never uses E-notation, which causes some values with large exponents to be output as long strings with tons of zeroes in them.

Parameters:
bd - The number to format.
Returns:
The formatted String.


Copyright © -2007 . All Rights Reserved.