com.jpattern.orm.persistor.type.jdbc
Class BytesJdbcIO

java.lang.Object
  extended by com.jpattern.orm.persistor.type.jdbc.BytesJdbcIO
All Implemented Interfaces:
JdbcIO<byte[]>

public class BytesJdbcIO
extends Object
implements JdbcIO<byte[]>

Author:
ufo

Constructor Summary
BytesJdbcIO()
           
 
Method Summary
 Class<byte[]> getDBClass()
           
 byte[] getValueFromResultSet(ResultSet rs, int rsColumnIndex)
           
 byte[] getValueFromResultSet(ResultSet rs, String rsColumnName)
           
 void setValueToPreparedStatement(byte[] value, PreparedStatement ps, int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BytesJdbcIO

public BytesJdbcIO()
Method Detail

getValueFromResultSet

public byte[] getValueFromResultSet(ResultSet rs,
                                    String rsColumnName)
                             throws SQLException
Specified by:
getValueFromResultSet in interface JdbcIO<byte[]>
Throws:
SQLException

getValueFromResultSet

public byte[] getValueFromResultSet(ResultSet rs,
                                    int rsColumnIndex)
                             throws SQLException
Specified by:
getValueFromResultSet in interface JdbcIO<byte[]>
Throws:
SQLException

setValueToPreparedStatement

public void setValueToPreparedStatement(byte[] value,
                                        PreparedStatement ps,
                                        int index)
                                 throws SQLException
Specified by:
setValueToPreparedStatement in interface JdbcIO<byte[]>
Throws:
SQLException

getDBClass

public Class<byte[]> getDBClass()
Specified by:
getDBClass in interface JdbcIO<byte[]>


Copyright © 2013. All Rights Reserved.