javatools.sql
Class SQL2Java

java.lang.Object
  |
  +--javatools.sql.SQL2Java

public class SQL2Java
extends java.lang.Object

It is a preliminary class. It contains ONE function.


Constructor Summary
SQL2Java()
          Creates new SQL2Java
 
Method Summary
static java.lang.Object convert(java.lang.String value, int type)
          Converts a string into an object, using a specified SQL type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQL2Java

public SQL2Java()
Creates new SQL2Java

Method Detail

convert

public static java.lang.Object convert(java.lang.String value,
                                       int type)
                                throws java.lang.ClassCastException
Converts a string into an object, using a specified SQL type.

Parameters:
value - The value to be converted.
type - The SQL type to use.
Returns:
The converted value.
Throws:
java.lang.ClassCastException - If the cast cannot be done.