Package org.xmlBlaster.contrib.db

Examples of org.xmlBlaster.contrib.db.DbInfo


      boolean persist = this.info.getBoolean(PERSIST_KEY, false);
      if (persist) {
         String id = this.info.get(I_Info.ID, null);
         if (id == null)
            log.severe("No 'id' has been defined for this detector. Can not use persistent data");
         this.persistentInfo = new DbInfo(DbWatcher.getDbInfoPool(this.info), id, this.info);
         String timestamp = this.persistentInfo.get(LAST_TIMESTAMP_KEY, null);
         log.warning("The time id='" + id + "' name='" + LAST_TIMESTAMP_KEY + "' has not been found. Will take current system time");
         if (timestamp != null)
            in = timestamp;
      }
View Full Code Here


      addIfNotSet("db.drivers", dbDrivers);
     
      I_DbPool newPool = new DbPool();
     
      newPool.init(this);
      this.persistentInfo = new DbInfo(newPool, "replication", this);
      return newPool;
   }
View Full Code Here

      this.dbSpecific.checkTriggerConsistency(doFix);
      this.sendInitialTableContent = this.info.getBoolean("replication.sendInitialTableContent", true);
      // this.persistentMap = new PersistentMap(CONTRIB_PERSISTENT_MAP);
      // this.persistentMap = new Info(CONTRIB_PERSISTENT_MAP);
      this.dbPool = DbWatcher.getDbPool(this.info);
      this.persistentInfo = new DbInfo(DbWatcher.getDbInfoPool(this.info), "replication", this.info);

      // we now recreate the triggers if the version has changed
      String oldVersionName = this.dbSpecific.getName() + ".previousVersion";
      String oldVersion = this.persistentInfo.get(oldVersionName, null);
      String currentVersion = this.info.get("replication.version", "0.0");
View Full Code Here

      setupProperties(null, tmpInfo, extraUser);
      boolean forceCreationAndInit = true;
      I_DbSpecific dbSpecific = ReplicationConverter.getDbSpecific(tmpInfo, forceCreationAndInit);
      I_DbPool pool = (I_DbPool)tmpInfo.getObject("db.pool");

      DbInfo persistentInfo = new DbInfo(pool, "replication", tmpInfo);
      String name = readerInfo.get("replication.prefix", "repl_") + ".oldReplKey";
      persistentInfo.put(name, "0");

      Connection conn = null;
      try {
         conn = pool.reserve();
         boolean doWarn = false; // we don't want warnings on SQL Exceptions here.
View Full Code Here

      setupProperties(null, tmpInfo, extraUser);
      boolean forceCreationAndInit = true;
      I_DbSpecific dbSpecific = ReplicationConverter.getDbSpecific(tmpInfo, forceCreationAndInit);
      I_DbPool pool = (I_DbPool)tmpInfo.getObject("db.pool");

      DbInfo persistentInfo = new DbInfo(pool, "replication", tmpInfo);
      String name = readerInfo.get("replication.prefix", "repl_") + ".oldReplKey";
      persistentInfo.put(name, "0");

      Connection conn = null;
      try {
         this.dbHelper = new DbMetaHelper(pool);
         conn = pool.reserve();
View Full Code Here

TOP

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

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.