org.talend.esb.sam.server.ui
Class JsonRowMapper

java.lang.Object
  extended by org.talend.esb.sam.server.ui.JsonRowMapper
All Implemented Interfaces:
org.springframework.jdbc.core.RowMapper<com.google.gson.JsonObject>

public class JsonRowMapper
extends Object
implements org.springframework.jdbc.core.RowMapper<com.google.gson.JsonObject>

Intelligent mapper that tries to read all fields from ResultSet

Author:
zubairov

Constructor Summary
JsonRowMapper()
           
 
Method Summary
 com.google.gson.JsonObject mapRow(ResultSet rs, int rowNum)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonRowMapper

public JsonRowMapper()
Method Detail

mapRow

public com.google.gson.JsonObject mapRow(ResultSet rs,
                                         int rowNum)
                                  throws SQLException
Specified by:
mapRow in interface org.springframework.jdbc.core.RowMapper<com.google.gson.JsonObject>
Throws:
SQLException


Copyright © 2011-2012 Talend Inc.. All Rights Reserved.