Examples of logQuery()


Examples of org.apache.cayenne.log.JdbcEventLogger.logQuery()

        String queryStr = queryBuilder.createSqlString(query);
        JdbcEventLogger logger = adapter.getJdbcEventLogger();
        boolean isLoggable = logger.isLoggable();

        // log batch SQL execution
        logger.logQuery(queryStr, Collections.EMPTY_LIST);

        // run batch
        query.reset();

        PreparedStatement statement = con.prepareStatement(queryStr);
View Full Code Here

Examples of org.apache.cayenne.log.JdbcEventLogger.logQuery()

        boolean useOptimisticLock = query.isUsingOptimisticLocking();

        String queryStr = queryBuilder.createSqlString(query);

        // log batch SQL execution
        logger.logQuery(queryStr, Collections.EMPTY_LIST);

        // run batch queries one by one
        query.reset();

        PreparedStatement statement = (generatesKeys) ? connection.prepareStatement(
View Full Code Here

Examples of org.apache.cayenne.log.JdbcEventLogger.logQuery()

        String queryStr = queryBuilder.createSqlString(query);
        JdbcEventLogger logger = adapter.getJdbcEventLogger();
        boolean isLoggable = logger.isLoggable();

        // log batch SQL execution
        logger.logQuery(queryStr, Collections.EMPTY_LIST);

        // run batch
        query.reset();

        PreparedStatement statement = con.prepareStatement(queryStr);
View Full Code Here

Examples of org.apache.cayenne.log.JdbcEventLogger.logQuery()

        boolean useOptimisticLock = query.isUsingOptimisticLocking();

        String queryStr = queryBuilder.createSqlString(query);

        // log batch SQL execution
        logger.logQuery(queryStr, Collections.EMPTY_LIST);

        // run batch queries one by one
        query.reset();

        PreparedStatement statement = (generatesKeys) ? connection.prepareStatement(
View Full Code Here

Examples of org.apache.cayenne.log.JdbcEventLogger.logQuery()

        String queryStr = queryBuilder.createSqlString(query);
        JdbcEventLogger logger = adapter.getJdbcEventLogger();
        boolean isLoggable = logger.isLoggable();

        // log batch SQL execution
        logger.logQuery(queryStr, Collections.EMPTY_LIST);

        // run batch
        query.reset();

        PreparedStatement statement = con.prepareStatement(queryStr);
View Full Code Here

Examples of org.apache.cayenne.log.JdbcEventLogger.logQuery()

        boolean useOptimisticLock = query.isUsingOptimisticLocking();

        String queryStr = queryBuilder.createSqlString(query);

        // log batch SQL execution
        logger.logQuery(queryStr, Collections.EMPTY_LIST);

        // run batch queries one by one
        query.reset();

        PreparedStatement statement = (generatesKeys) ? connection.prepareStatement(
View Full Code Here

Examples of org.apache.cayenne.log.JdbcEventLogger.logQuery()

    @Override
    protected long longPkFromDatabase(DataNode node, DbEntity entity) throws Exception {

        JdbcEventLogger logger = adapter.getJdbcEventLogger();
        if (logger.isLoggable()) {
            logger.logQuery(SELECT_QUERY, Collections
                    .singletonList(entity.getName()));
        }

        Connection c = node.getDataSource().getConnection();
        try {
View Full Code Here

Examples of org.mule.module.db.internal.domain.logger.BulkQueryLogger.logQuery()

                statement.addBatch(sql);
                queryLogger.addQuery(sql);
            }

            queryLogger.logQuery();

            return statement.executeBatch();
        }
        finally
        {
View Full Code Here

Examples of org.mule.module.db.internal.domain.logger.PreparedBulkQueryLogger.logQuery()

                doProcessParameters(preparedStatement, query.getQueryTemplate(), params, queryLogger);
                preparedStatement.addBatch();
                queryLogger.addParameterSet();
            }

            queryLogger.logQuery();

            return preparedStatement.executeBatch();
        }
        finally
        {
View Full Code Here

Examples of org.mule.module.db.internal.domain.logger.SingleQueryLogger.logQuery()

        if (statement instanceof PreparedStatement)
        {
            doProcessParameters((PreparedStatement) statement, query.getQueryTemplate(), query.getParamValues(), queryLogger);
        }

        queryLogger.logQuery();
    }
}
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.