Examples of CallableStatementProxy


Examples of com.alibaba.druid.proxy.jdbc.CallableStatementProxy

                                                                                                     throws SQLException {
        String dbType = connection.getDirectDataSource().getDbType();
        WallContext.create(dbType);
        try {
            sql = check(sql);
            CallableStatementProxy stmt = chain.connection_prepareCall(connection, sql, resultSetType,
                                                                       resultSetConcurrency);
            setSqlStatAttribute(stmt);
            return stmt;
        } finally {
            WallContext.clearContext();
View Full Code Here

Examples of com.alibaba.druid.proxy.jdbc.CallableStatementProxy

                                                         int resultSetHoldability) throws SQLException {
        String dbType = connection.getDirectDataSource().getDbType();
        WallContext.create(dbType);
        try {
            sql = check(sql);
            CallableStatementProxy stmt = chain.connection_prepareCall(connection, sql, resultSetType,
                                                                       resultSetConcurrency, resultSetHoldability);
            setSqlStatAttribute(stmt);
            return stmt;
        } finally {
            WallContext.clearContext();
View Full Code Here

Examples of com.alibaba.druid.proxy.jdbc.CallableStatementProxy

                                                                                                                   throws SQLException {
        String dbType = connection.getDirectDataSource().getDbType();
        WallContext.create(dbType);
        try {
            sql = check(sql);
            CallableStatementProxy stmt = chain.connection_prepareCall(connection, sql);
            setSqlStatAttribute(stmt);
            return stmt;
        } finally {
            WallContext.clearContext();
        }
View Full Code Here

Examples of com.alibaba.druid.proxy.jdbc.CallableStatementProxy

                                                                                                     throws SQLException {
        String dbType = connection.getDirectDataSource().getDbType();
        WallContext.create(dbType);
        try {
            sql = check(sql);
            CallableStatementProxy stmt = chain.connection_prepareCall(connection, sql, resultSetType,
                                                                       resultSetConcurrency);
            setSqlStatAttribute(stmt);
            return stmt;
        } finally {
            WallContext.clearContext();
View Full Code Here

Examples of com.alibaba.druid.proxy.jdbc.CallableStatementProxy

                                                         int resultSetHoldability) throws SQLException {
        String dbType = connection.getDirectDataSource().getDbType();
        WallContext.create(dbType);
        try {
            sql = check(sql);
            CallableStatementProxy stmt = chain.connection_prepareCall(connection, sql, resultSetType,
                                                                       resultSetConcurrency, resultSetHoldability);
            setSqlStatAttribute(stmt);
            return stmt;
        } finally {
            WallContext.clearContext();
View Full Code Here

Examples of com.alibaba.druid.proxy.jdbc.CallableStatementProxy

            event.putContext(TRACE_STMT_SQL, sql);
            fireEvent(event);
        }

        try {
            CallableStatementProxy statement = chain.connection_prepareCall(connection, sql);

            long timespan = System.currentTimeMillis() - startMillis;
            {
                TraceAfterEvent event = new TraceAfterEvent("ConnectionPrecallAfter", new Date(startMillis), timespan);
                event.putContext(TRACE_CONN_INFO, connection.getProperties().clone());
                event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime());
                event.putContext(TRACE_CONN_ID, connection.getId());
                event.putContext(TRACE_STMT_ID, statement.getId());
                event.putContext(TRACE_STMT_SQL, sql);
                fireEvent(event);
            }

            return statement;
View Full Code Here

Examples of com.alibaba.druid.proxy.jdbc.CallableStatementProxy

            event.putContext(TRACE_STMT_RS_CONCURRENCY, resultSetConcurrency);
            fireEvent(event);
        }

        try {
            CallableStatementProxy statement = chain.connection_prepareCall(connection, sql, resultSetType,
                                                                            resultSetConcurrency);

            long timespan = System.currentTimeMillis() - startMillis;
            {
                TraceAfterEvent event = new TraceAfterEvent("ConnectionPrecallAfter", new Date(startMillis), timespan);
                event.putContext(TRACE_CONN_INFO, connection.getProperties().clone());
                event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime());
                event.putContext(TRACE_CONN_ID, connection.getId());
                event.putContext(TRACE_STMT_ID, statement.getId());
                event.putContext(TRACE_STMT_SQL, sql);
                event.putContext(TRACE_STMT_RS_TYPE, resultSetType);
                event.putContext(TRACE_STMT_RS_CONCURRENCY, resultSetConcurrency);
                fireEvent(event);
            }
View Full Code Here

Examples of com.alibaba.druid.proxy.jdbc.CallableStatementProxy

            event.putContext(TRACE_STMT_RS_HOLDABILITY, resultSetHoldability);
            fireEvent(event);
        }

        try {
            CallableStatementProxy statement = chain.connection_prepareCall(connection, sql, resultSetType,
                                                                            resultSetConcurrency, resultSetHoldability);

            long timespan = System.currentTimeMillis() - startMillis;
            {
                TraceAfterEvent event = new TraceAfterEvent("ConnectionPrecallAfter", new Date(startMillis), timespan);
                event.putContext(TRACE_CONN_INFO, connection.getProperties().clone());
                event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime());
                event.putContext(TRACE_CONN_ID, connection.getId());
                event.putContext(TRACE_STMT_ID, statement.getId());
                event.putContext(TRACE_STMT_SQL, sql);
                event.putContext(TRACE_STMT_RS_TYPE, resultSetType);
                event.putContext(TRACE_STMT_RS_CONCURRENCY, resultSetConcurrency);
                event.putContext(TRACE_STMT_RS_HOLDABILITY, resultSetHoldability);
                fireEvent(event);
View Full Code Here

Examples of com.alibaba.druid.proxy.jdbc.CallableStatementProxy

            event.putContext(TRACE_STMT_SQL, sql);
            fireEvent(event);
        }

        try {
            CallableStatementProxy statement = chain.connection_prepareCall(connection, sql);

            long timespan = System.currentTimeMillis() - startMillis;
            {
                TraceAfterEvent event = new TraceAfterEvent("ConnectionPrecallAfter", new Date(startMillis), timespan);
                event.putContext(TRACE_CONN_INFO, connection.getProperties().clone());
                event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime());
                event.putContext(TRACE_CONN_ID, connection.getId());
                event.putContext(TRACE_STMT_ID, statement.getId());
                event.putContext(TRACE_STMT_SQL, sql);
                fireEvent(event);
            }

            return statement;
View Full Code Here

Examples of com.alibaba.druid.proxy.jdbc.CallableStatementProxy

            event.putContext("stmt.resultSetConcurrency", resultSetConcurrency);
            fireEvent(event);
        }

        try {
            CallableStatementProxy statement = chain.connection_prepareCall(connection, sql, resultSetType,
                                                                            resultSetConcurrency);

            long timespan = System.currentTimeMillis() - startMillis;
            {
                TraceAfterEvent event = new TraceAfterEvent("ConnectionPrecallAfter", new Date(startMillis), timespan);
                event.putContext(TRACE_CONN_INFO, connection.getProperties().clone());
                event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime());
                event.putContext(TRACE_CONN_ID, connection.getId());
                event.putContext(TRACE_STMT_ID, statement.getId());
                event.putContext(TRACE_STMT_SQL, sql);
                event.putContext("stmt.resultSetType", resultSetType);
                event.putContext("stmt.resultSetConcurrency", resultSetConcurrency);
                fireEvent(event);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.