jodd.db.type
Class LongSqlType

java.lang.Object
  extended by jodd.db.type.SqlType<T>
      extended by jodd.db.type.NullAwareSqlType<java.lang.Long>
          extended by jodd.db.type.LongSqlType

public class LongSqlType
extends NullAwareSqlType<java.lang.Long>


Field Summary
 
Fields inherited from class jodd.db.type.SqlType
sqlType
 
Constructor Summary
LongSqlType()
           
 
Method Summary
 java.lang.Long get(java.sql.ResultSet rs, int index, int dbSqlType)
          Returns value from result set.
 void set(java.sql.PreparedStatement st, int index, java.lang.Long value, int dbSqlType)
          Sets prepared statement value.
 
Methods inherited from class jodd.db.type.NullAwareSqlType
readValue, storeValue
 
Methods inherited from class jodd.db.type.SqlType
prepareGetValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongSqlType

public LongSqlType()
Method Detail

get

public java.lang.Long get(java.sql.ResultSet rs,
                          int index,
                          int dbSqlType)
                   throws java.sql.SQLException
Returns value from result set.

Specified by:
get in class SqlType<java.lang.Long>
Parameters:
rs - result set
index - column index
dbSqlType - java.sql.Types hint
Throws:
java.sql.SQLException

set

public void set(java.sql.PreparedStatement st,
                int index,
                java.lang.Long value,
                int dbSqlType)
         throws java.sql.SQLException
Sets prepared statement value.

Specified by:
set in class SqlType<java.lang.Long>
Throws:
java.sql.SQLException


Copyright © 2003-2010 Jodd Team