org.ujoframework.orm
Class TypeService

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

public class TypeService
extends java.lang.Object

A type service for popular Java types and more.

Author:
Ponec

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 ENUM
           
static char EXPORT_ENUM
           
static char EXPORTABLE
           
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
TypeService()
           
 
Method Summary
 char getTypeCode(MetaColumn column)
          The method returns a data type code include relation
 java.lang.Object getValue(MetaColumn mColumn, java.sql.CallableStatement rs, int column)
          GetValue from the stored precedure by position
 java.lang.Object getValue(MetaColumn mColumn, java.sql.ResultSet rs)
          GetValue from the result set by position
 java.lang.Object getValue(MetaColumn mColumn, java.sql.ResultSet rs, int column)
          GetValue from the result set by position
 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

EXPORTABLE

public static final char EXPORTABLE
See Also:
Constant Field Values

EXPORT_ENUM

public static final char EXPORT_ENUM
See Also:
Constant Field Values

ENUM

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

TypeService

public TypeService()
Method Detail

getTypeCode

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


getValue

public 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 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

getValue

public java.lang.Object getValue(MetaColumn mColumn,
                                 java.sql.CallableStatement rs,
                                 int column)
                          throws java.sql.SQLException
GetValue from the stored precedure by position

Throws:
java.sql.SQLException

setValue

public 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 © 2010. All Rights Reserved.