Examples of DBZone


Examples of se.unlogic.eagledns.zoneproviders.db.beans.DBZone

    TransactionHandler transactionHandler = null;

    try {
      transactionHandler = zoneDAO.createTransaction();

      DBZone dbZone = this.zoneDAO.get(new HighLevelQuery<DBZone>(this.zoneIDQueryParameterFactory.getParameter(zoneID), (Field)null),transactionHandler);

      if(dbZone == null){

        log.warn("Unable to find secondary zone with zoneID " + zoneID + " in DB, ignoring zone update");

        return;
      }

      dbZone.parse(zone.getZoneCopy(), true);

      zoneDAO.update(dbZone,transactionHandler, null);

      transactionHandler.commit();
View Full Code Here

Examples of se.unlogic.eagledns.zoneproviders.db.beans.DBZone

    for(Zone zone : zones){

      System.out.println("Converting zone " + zone.getSOA().getName().toString() + "...");

      dbZones.add(new DBZone(zone,false));
    }

    DataSource dataSource = new SimpleDataSource(driver, url, username, password);

    SimpleAnnotatedDAOFactory annotatedDAOFactory = new SimpleAnnotatedDAOFactory();
View Full Code Here

Examples of se.unlogic.eagledns.zoneproviders.db.beans.DBZone

    TransactionHandler transactionHandler = null;

    try {
      transactionHandler = zoneDAO.createTransaction();

      DBZone dbZone = this.zoneDAO.get(new HighLevelQuery<DBZone>(this.zoneIDQueryParameterFactory.getParameter(zoneID),(Field)null),transactionHandler);


      if(dbZone == null){

        log.warn("Unable to find secondary zone with zoneID " + zoneID + " in DB, ignoring zone update");

        return;
      }

      dbZone.parse(zone.getZoneCopy(), true);

      zoneDAO.update(dbZone,transactionHandler, null);

      recordDAO.delete(new HighLevelQuery<DBRecord>(recordZoneQueryParameterFactory.getParameter(dbZone),(Field)null), transactionHandler);

      if(dbZone.getRecords() != null){

        for(DBRecord dbRecord : dbZone.getRecords()){

          dbRecord.setZone(dbZone);

          this.recordDAO.add(dbRecord, transactionHandler, null);
        }
View Full Code Here

Examples of se.unlogic.eagledns.zoneproviders.db.beans.DBZone

    for(Zone zone : zones){

      System.out.println("Converting zone " + zone.getSOA().getName().toString() + "...");

      dbZones.add(new DBZone(zone,false));
    }

    DataSource dataSource = new SimpleDataSource(driver, url, username, password);

    SimpleAnnotatedDAOFactory annotatedDAOFactory = new SimpleAnnotatedDAOFactory();
View Full Code Here

Examples of se.unlogic.eagledns.zoneproviders.db.beans.DBZone

    TransactionHandler transactionHandler = null;

    try {
      transactionHandler = zoneDAO.createTransaction();

      DBZone dbZone = this.zoneDAO.get(new HighLevelQuery<DBZone>(this.zoneIDQueryParameterFactory.getParameter(zoneID),(Field)null),transactionHandler);


      if(dbZone == null){

        log.warn("Unable to find secondary zone with zoneID " + zoneID + " in DB, ignoring zone update");

        return;
      }

      dbZone.parse(zone.getZoneCopy(), true);

      zoneDAO.update(dbZone,transactionHandler, null);

      recordDAO.delete(new HighLevelQuery<DBRecord>(recordZoneQueryParameterFactory.getParameter(dbZone),(Field)null), transactionHandler);

      if(dbZone.getRecords() != null){

        for(DBRecord dbRecord : dbZone.getRecords()){

          dbRecord.setZone(dbZone);

          this.recordDAO.add(dbRecord, transactionHandler, null);
        }
View Full Code Here

Examples of se.unlogic.eagledns.zoneproviders.db.beans.DBZone

    TransactionHandler transactionHandler = null;

    try {
      transactionHandler = zoneDAO.createTransaction();

      DBZone dbZone = this.zoneDAO.get(new HighLevelQuery<DBZone>(this.zoneIDQueryParameterFactory.getParameter(zoneID), (Field)null),transactionHandler);

      if(dbZone == null){

        log.warn("Unable to find secondary zone with zoneID " + zoneID + " in DB, ignoring zone update");

        return;
      }

      dbZone.parse(zone.getZoneCopy(), true);

      zoneDAO.update(dbZone,transactionHandler, null);

      transactionHandler.commit();
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.