Package org.apache.cayenne.log

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


        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

        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

        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

        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

        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

    @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

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.