Package org.fto.jthink.jdbc

Examples of org.fto.jthink.jdbc.SQLExecutorListener


    /* 创建SQLExecutor */
    sqlExecutor = transaction.getSQLExecutorFactory(connId).create();
   
    /* 设置SQLExecutor监听器 */
    sqlExecutor.addSQLExecutorListener(new SQLExecutorListener(){
      /* 监听器的事件方法,当在执行SQL语句时调用此方法 */
      public void executeSQLCommand(SQLExecutorEvent evt) {
        logger.debug(evt.getSQL().getSQLString());
      }
     
View Full Code Here


    /* 返回定义的JDBC事务工厂,并创建事务 */
    transaction = (JDBCTransaction)((TransactionFactory)resManager.getResource(transId)).create();
    /* 创建SQLExecutor */
    sqlExecutor = transaction.getSQLExecutorFactory(connId).create();
    /* 设置SQLExecutor监听器 */
    sqlExecutor.addSQLExecutorListener(new SQLExecutorListener(){
      /* 监听器的事件方法,当在执行SQL语句时调用此方法 */
      public void executeSQLCommand(SQLExecutorEvent evt) {
        logger.debug(evt.getSQL().getSQLString());
      }
    });
View Full Code Here

    /* 返回定义的JDBC事务工厂,并创建事务 */
    transaction = (JDBCTransaction)((TransactionFactory)resManager.getResource(transId)).create();
    /* 创建SQLExecutor */
    sqlExecutor = transaction.getSQLExecutorFactory(connId).create();
    /* 设置SQLExecutor监听器 */
    sqlExecutor.addSQLExecutorListener(new SQLExecutorListener(){
      /* 监听器的事件方法,当在执行SQL语句时调用此方法 */
      public void executeSQLCommand(SQLExecutorEvent evt) {
        logger.debug(evt.getSQL().getSQLString());
      }
    });
View Full Code Here

TOP

Related Classes of org.fto.jthink.jdbc.SQLExecutorListener

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.