org.ujoframework.orm
Class TypeBook

java.lang.Object
  extended by org.ujoframework.orm.TypeBook

public final class TypeBook
extends java.lang.Object

A book of popular Java types.

Author:
pavel

Field Summary
static char BIG_DECI
           
static char BIG_INTE
           
static char BLOB
           
static char BOOLEAN
           
static char BYTE
           
static char BYTES
           
static char CLOB
           
static char DATE_SQL
           
static char DATE_UTIL
           
static char DOUBLE
           
static char FLOAT
           
static char CHAR
           
static char INT
           
static char LONG
           
static char SHORT
           
static char STRING
           
static char TIME_SQL
           
static char TIMESTAMP
           
static char UNDEFINED
           
 
Constructor Summary
TypeBook()
           
 
Method Summary
static char getTypeCode(MetaColumn column)
          The method returns a data type code include relation
static java.lang.Object getValue(MetaColumn mColumn, java.sql.ResultSet rs)
          GetValue from the result set by position
static java.lang.Object getValue(MetaColumn mColumn, java.sql.ResultSet rs, int column)
          GetValue from the result set by position
static void setValue(MetaColumn mColumn, java.sql.PreparedStatement rs, java.lang.Object value, int i)
          GetValue from the result set by position
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDEFINED

public static final char UNDEFINED
See Also:
Constant Field Values

BOOLEAN

public static final char BOOLEAN
See Also:
Constant Field Values

BYTE

public static final char BYTE
See Also:
Constant Field Values

CHAR

public static final char CHAR
See Also:
Constant Field Values

SHORT

public static final char SHORT
See Also:
Constant Field Values

INT

public static final char INT
See Also:
Constant Field Values

LONG

public static final char LONG
See Also:
Constant Field Values

FLOAT

public static final char FLOAT
See Also:
Constant Field Values

DOUBLE

public static final char DOUBLE
See Also:
Constant Field Values

BIG_DECI

public static final char BIG_DECI
See Also:
Constant Field Values

BIG_INTE

public static final char BIG_INTE
See Also:
Constant Field Values

STRING

public static final char STRING
See Also:
Constant Field Values

BYTES

public static final char BYTES
See Also:
Constant Field Values

DATE_UTIL

public static final char DATE_UTIL
See Also:
Constant Field Values

DATE_SQL

public static final char DATE_SQL
See Also:
Constant Field Values

TIME_SQL

public static final char TIME_SQL
See Also:
Constant Field Values

TIMESTAMP

public static final char TIMESTAMP
See Also:
Constant Field Values

BLOB

public static final char BLOB
See Also:
Constant Field Values

CLOB

public static final char CLOB
See Also:
Constant Field Values
Constructor Detail

TypeBook

public TypeBook()
Method Detail

getTypeCode

public static char getTypeCode(MetaColumn column)
The method returns a data type code include relation


getValue

public static java.lang.Object getValue(MetaColumn mColumn,
                                        java.sql.ResultSet rs)
                                 throws java.sql.SQLException
GetValue from the result set by position

Throws:
java.sql.SQLException

getValue

public static java.lang.Object getValue(MetaColumn mColumn,
                                        java.sql.ResultSet rs,
                                        int column)
                                 throws java.sql.SQLException
GetValue from the result set by position

Throws:
java.sql.SQLException

setValue

public static void setValue(MetaColumn mColumn,
                            java.sql.PreparedStatement rs,
                            java.lang.Object value,
                            int i)
                     throws java.sql.SQLException
GetValue from the result set by position

Throws:
java.sql.SQLException


Copyright © 2009. All Rights Reserved.