Package com.randomnoun.common.spring
Class ClobRowMapper
java.lang.Object
com.randomnoun.common.spring.ClobRowMapper
public class ClobRowMapper
extends Object
implements org.springframework.jdbc.core.RowMapper<Map<String,Object>>
This class is intended to replace the standard RowMapper provided by Spring
to allow CLOBs to be treated as String objects transparently (i.e. the Map
which represents a row returned by this class will not contain any
oracle.sql.CLOB objects).
LobHandlers aren't required in recent Oracle drivers, so this entire class is probably obsolete these days.
- Author:
- knoxg
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClobRowMapper
(org.springframework.jdbc.core.JdbcTemplate jt) Creates a new ClobRowMapper object. -
Method Summary
Modifier and TypeMethodDescriptionMap rows to a disconnected HashMap representation
-
Field Details
-
logger
Logger for this class
-
-
Constructor Details
-
ClobRowMapper
Creates a new ClobRowMapper object.
-
-
Method Details
-
detectDatabase
-
mapRow
Map rows to a disconnected HashMap representation- Specified by:
mapRow
in interfaceorg.springframework.jdbc.core.RowMapper<Map<String,
Object>> - Throws:
SQLException
-