ua.gradsoft.xwikisql
Class SqlTypes

java.lang.Object
  extended by ua.gradsoft.xwikisql.SqlTypes

public class SqlTypes
extends java.lang.Object

static class for work with sql types.

Author:
rssh

Constructor Summary
SqlTypes()
           
 
Method Summary
static int getTypeByName(java.lang.String name)
           
static java.math.BigDecimal objectToBigDecimal(SqlErrorable errorable, java.lang.Object o)
           
static java.lang.Boolean objectToBoolean(SqlErrorable errorable, java.lang.Object o)
           
static java.util.Date objectToDate(SqlErrorable errorSource, java.lang.Object o)
           
static java.lang.Double objectToDouble(SqlErrorable errorable, java.lang.Object o)
           
static java.lang.Integer objectToInteger(SqlErrorable errorable, java.lang.Object o)
           
static java.lang.Long objectToLong(SqlErrorable errorable, java.lang.Object o)
           
static java.lang.String objectToString(SqlPlugin plugin, SqlErrorable errorable, java.lang.Object o)
           
static java.lang.String typeName(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlTypes

public SqlTypes()
Method Detail

typeName

public static java.lang.String typeName(int type)

getTypeByName

public static int getTypeByName(java.lang.String name)

objectToDate

public static java.util.Date objectToDate(SqlErrorable errorSource,
                                          java.lang.Object o)

objectToBoolean

public static java.lang.Boolean objectToBoolean(SqlErrorable errorable,
                                                java.lang.Object o)

objectToDouble

public static java.lang.Double objectToDouble(SqlErrorable errorable,
                                              java.lang.Object o)

objectToBigDecimal

public static java.math.BigDecimal objectToBigDecimal(SqlErrorable errorable,
                                                      java.lang.Object o)

objectToLong

public static java.lang.Long objectToLong(SqlErrorable errorable,
                                          java.lang.Object o)

objectToInteger

public static java.lang.Integer objectToInteger(SqlErrorable errorable,
                                                java.lang.Object o)

objectToString

public static java.lang.String objectToString(SqlPlugin plugin,
                                              SqlErrorable errorable,
                                              java.lang.Object o)