org.deegree.commons.tom.primitive
Class SQLValueMangler

java.lang.Object
  extended by org.deegree.commons.tom.primitive.SQLValueMangler

public class SQLValueMangler
extends java.lang.Object

Converts between internal object values and SQL objects.

Version:
$Revision: 27849 $, $Date: 2010-11-08 19:43:49 +0100 (Mo, 08. Nov 2010) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
SQLValueMangler()
           
 
Method Summary
static java.lang.Object internalToSQL(java.lang.Object value)
          Converts the given PrimitiveValue value to the corresponding SQL object type.
static java.lang.Object internalToSQL(java.lang.Object o, int sqlTypeCode)
           
static java.lang.Object internalToSQL(PrimitiveValue pv)
          Converts the given PrimitiveValue value to the corresponding SQL object type.
static PrimitiveValue sqlToInternal(java.sql.ResultSet rs, int columnIndex, PrimitiveType pt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLValueMangler

public SQLValueMangler()
Method Detail

internalToSQL

public static java.lang.Object internalToSQL(java.lang.Object value)
Converts the given PrimitiveValue value to the corresponding SQL object type.

Parameters:
value -
Returns:

internalToSQL

public static java.lang.Object internalToSQL(PrimitiveValue pv)
Converts the given PrimitiveValue value to the corresponding SQL object type.

Parameters:
value -
Returns:

internalToSQL

public static java.lang.Object internalToSQL(java.lang.Object o,
                                             int sqlTypeCode)

sqlToInternal

public static PrimitiveValue sqlToInternal(java.sql.ResultSet rs,
                                           int columnIndex,
                                           PrimitiveType pt)
                                    throws java.sql.SQLException
Parameters:
rs -
columnIndex -
pt -
Returns:
corresponding primitive value, can be null
Throws:
java.sql.SQLException


Copyright © 2011. All Rights Reserved.