Package org.xmlBlaster.contrib.db

Examples of org.xmlBlaster.contrib.db.I_ResultCb


            doPostStatement();
         return 1;
      }

      try {
          connRet = this.dbPool.select(conn, stmt, autoCommit, new I_ResultCb() {
             public void result(Connection conn, ResultSet rs) throws Exception {
                if (log.isLoggable(Level.FINE)) log.fine("Processing result set for '" + stmt + "'");
                String groupColName = changeEvent.getGroupColName();
                try {
                   ByteArrayOutputStream bout = null;
View Full Code Here


      if (log.isLoggable(Level.FINE)) log.fine("Checking for MD5 changes ...");
      this.changeCount = 0;
      Connection conn = null;

      try {
         conn = this.dbPool.select(conn, this.changeDetectStatement, new I_ResultCb() {
            public void result(Connection conn, ResultSet rs) throws Exception {
               if (log.isLoggable(Level.FINE)) log.fine("Processing result set");
           
               if (rs == null) {
                  changeCount = 0;
View Full Code Here

      try {
         conn = this.dbPool.reserve(); // This has been added 2005-08-27 (Michele Laghi)
         // FIXME this !!!!!
         // conn.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE); // TOO RESTRICTIVE IN MOST CASES !!!
        
         conn = this.dbPool.select(conn, this.changeDetectStatement, new I_ResultCb() {
            public void result(Connection conn, ResultSet rs) throws Exception {
               if (log.isLoggable(Level.FINE)) log.fine("Processing result set");
           
               // Check for missing/dropped table
               if (rs == null) {
View Full Code Here

                destination = (String)attrs.get("_destination");
            this.initialUpdater.publishCreate(0, sqlInfo, newReplKey, destination);
            if (schema != null)
               table = schema + "." + table;
            String sql = new String("SELECT * FROM " + table);
            I_ResultCb resultHandler = new RsToSqlInfo(this.initialUpdater, sqlInfo, this.cancelledUpdates, this.transformer, newReplKey, this.rowsPerMessage, destination);
            this.dbPool.select(conn, sql, autoCommit, resultHandler);
         }
         conn.commit();
      }
      catch (Exception ex) {
View Full Code Here

TOP

Related Classes of org.xmlBlaster.contrib.db.I_ResultCb

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.