Examples of PreparedBulkQueryLogger


Examples of org.mule.module.db.internal.domain.logger.PreparedBulkQueryLogger

        {
            throw new IllegalArgumentException("Bulk update must be executed on a prepared statement");
        }

        PreparedStatement preparedStatement = (PreparedStatement) statement;
        PreparedBulkQueryLogger queryLogger = queryLoggerFactory.createBulkQueryLogger(logger, query.getQueryTemplate(), paramValues.size());
        try
        {
            for (List<QueryParamValue> params : paramValues)
            {
                doProcessParameters(preparedStatement, query.getQueryTemplate(), params, queryLogger);
                preparedStatement.addBatch();
                queryLogger.addParameterSet();
            }

            queryLogger.logQuery();

            return preparedStatement.executeBatch();
        }
        finally
        {
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.