Search in sources :

Example 1 with DefaultLobHandler

use of org.springframework.jdbc.support.lob.DefaultLobHandler in project perun by CESNET.

the class Auditer method setPerunPool.

public void setPerunPool(DataSource perunPool) throws InternalErrorException {
    this.jdbc = new JdbcPerunTemplate(perunPool);
    if (Compatibility.isOracle()) {
        OracleLobHandler oracleLobHandler = new OracleLobHandler();
        oracleLobHandler.setNativeJdbcExtractor(new CommonsDbcpNativeJdbcExtractor());
        lobHandler = oracleLobHandler;
    } else {
        lobHandler = new DefaultLobHandler();
    }
}
Also used : JdbcPerunTemplate(org.springframework.jdbc.core.JdbcPerunTemplate) OracleLobHandler(org.springframework.jdbc.support.lob.OracleLobHandler) DefaultLobHandler(org.springframework.jdbc.support.lob.DefaultLobHandler) CommonsDbcpNativeJdbcExtractor(org.springframework.jdbc.support.nativejdbc.CommonsDbcpNativeJdbcExtractor)

Aggregations

JdbcPerunTemplate (org.springframework.jdbc.core.JdbcPerunTemplate)1 DefaultLobHandler (org.springframework.jdbc.support.lob.DefaultLobHandler)1 OracleLobHandler (org.springframework.jdbc.support.lob.OracleLobHandler)1 CommonsDbcpNativeJdbcExtractor (org.springframework.jdbc.support.nativejdbc.CommonsDbcpNativeJdbcExtractor)1