Package com.alibaba.druid.support.spring

Examples of com.alibaba.druid.support.spring.DruidLobCreator


    protected void tearDown() throws Exception {
        dataSource.close();
    }

    public void test_lobCreator() throws Exception {
        DruidLobCreator lobCreator = new DruidLobCreator();

        Connection conn = dataSource.getConnection();
        PreparedStatement ps = conn.prepareStatement("select 1");
        lobCreator.setBlobAsBytes(ps, 1, new byte[0]);
        lobCreator.setBlobAsBinaryStream(ps, 2, new ByteArrayInputStream(new byte[0]), 0);
        lobCreator.setClobAsAsciiStream(ps, 3, new ByteArrayInputStream(new byte[0]), 0);
        lobCreator.setClobAsCharacterStream(ps, 4, new StringReader(""), 0);
        lobCreator.setClobAsString(ps, 5, "");
        ps.close();

        conn.close();
    }
View Full Code Here

TOP

Related Classes of com.alibaba.druid.support.spring.DruidLobCreator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.