Package com.amazonaws.services.simpledb.model

Examples of com.amazonaws.services.simpledb.model.DeleteDomainRequest


    public DeleteDomainCommand(AmazonSimpleDB sdbClient, SdbConfiguration configuration, Exchange exchange) {
        super(sdbClient, configuration, exchange);
    }

    public void execute() {
        DeleteDomainRequest request = new DeleteDomainRequest()
            .withDomainName(determineDomainName());
        log.trace("Sending request [{}] for exchange [{}]...", request, exchange);
       
        this.sdbClient.deleteDomain(request);
       
View Full Code Here


    boolean foundJobs = false, foundTriggers = false;
    for (String name : amazonSimpleDb.listDomains().getDomainNames()) {
      if (name.equals(jobDomain)) {
        if (recreate) {
          amazonSimpleDb.deleteDomain(new DeleteDomainRequest(
              jobDomain));
        } else {
          foundJobs = true;
        }
      }
      if (name.equals(triggerDomain)) {
        if (recreate) {
          amazonSimpleDb.deleteDomain(new DeleteDomainRequest(
              triggerDomain));
        } else {
          foundTriggers = true;
        }
      }
View Full Code Here

    public void createDomain(String domain) {
        sdbClient.createDomain(new CreateDomainRequest(domain));
    }
   
    public void deleteDomain(String domain) {
        sdbClient.deleteDomain(new DeleteDomainRequest(domain));
    }
View Full Code Here

    public void deleteAll() throws AmazonClientException {
        EntityManagerSimpleJPA em = (EntityManagerSimpleJPA) factory.createEntityManager();
        AmazonSimpleDB db = em.getSimpleDb();
       
        String domainName = em.getDomainName(MyTestObject.class);
        db.deleteDomain(new DeleteDomainRequest().withDomainName(domainName));

        domainName = em.getDomainName(MyTestObject2.class);
        db.deleteDomain(new DeleteDomainRequest().withDomainName(domainName));

        domainName = em.getDomainName(MyInheritanceObject1.class);
        db.deleteDomain(new DeleteDomainRequest().withDomainName(domainName));
       
        em.close();
    }
View Full Code Here

                .withAttributes(new ReplaceableAttribute("name", "value", true)));
         
          Assert.assertNotNull(DomainHelper.findItemById(sdbClient, domainName, "exist"));
        }
        finally {
          sdbClient.deleteDomain(new DeleteDomainRequest().withDomainName(domainName));
        }
  }
View Full Code Here

          List<Item> items = DomainHelper.listAllItems(sdbClient, domainName);
          Assert.assertEquals(3, items.size());
        }
        finally {
          sdbClient.deleteDomain(new DeleteDomainRequest().withDomainName(domainName));
        }
  }
View Full Code Here

          result = DomainHelper.selectItems(sdbClient, String.format("select * from `%s` LIMIT 3", domainName), result.getNextToken());
          Assert.assertEquals(1, result.getItems().size());
          Assert.assertNull(result.getNextToken());
        }
        finally {
          sdbClient.deleteDomain(new DeleteDomainRequest().withDomainName(domainName));
        }
  } 
View Full Code Here

          result = DomainHelper.selectItems(sdbClient, domainName, "name = 'value' LIMIT 3", result.getNextToken());
          Assert.assertEquals(1, result.getItems().size());
          Assert.assertNull(result.getNextToken());
        }
        finally {
          sdbClient.deleteDomain(new DeleteDomainRequest().withDomainName(domainName));
        }
  }   
View Full Code Here

   * @param domainName
   */
  protected void dropDomain(final String domainName, final AmazonSimpleDB sdb) {
    try {
      LOGGER.debug("Dropping domain: {}", domainName);
      DeleteDomainRequest request = new DeleteDomainRequest(domainName);
      sdb.deleteDomain(request);
      LOGGER.debug("Dropped domain: {}", domainName);
    } catch(AmazonClientException amazonException) {
      throw SimpleDbExceptionTranslator.getTranslatorInstance().translateAmazonClientException(amazonException);
    }
View Full Code Here

    public void createModelTable(String modelName) {
        sdbClient.createDomain(new CreateDomainRequest(jsoda.getModelTable(modelName)));
    }

    public void deleteTable(String tableName) {
        sdbClient.deleteDomain(new DeleteDomainRequest(tableName));
    }
View Full Code Here

TOP

Related Classes of com.amazonaws.services.simpledb.model.DeleteDomainRequest

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.