Package com.amazonaws.services.dynamodb.model

Examples of com.amazonaws.services.dynamodb.model.DeleteTableRequest


  @Test
  public void deleteTableWithoutName() {
    String name = createTableName();
    createTable(name);
    try {
      DeleteTableResult res = getClient().deleteTable(new DeleteTableRequest());
      Assert.assertTrue(false);// Should have thrown an exception
    } catch (AmazonServiceException ase) {
    }
    Assert.assertTrue(getClient().listTables().getTableNames().contains(name));
  }
View Full Code Here


        }
    }

    @After
    public void tearDown() throws Exception {
        DeleteTableRequest del = new DeleteTableRequest();
        del.setTableName("Testing");
    try {
      getClient().deleteTable(del);
    } catch (ResourceNotFoundException rnfe) {

    }
View Full Code Here

  protected void deleteAllTables() {
    String lastTableName = null;
    while (true) {
      ListTablesResult res = getClient().listTables(new ListTablesRequest().withExclusiveStartTableName(lastTableName));
      for (String tableName : res.getTableNames()) {
        getClient().deleteTable(new DeleteTableRequest(tableName));
      }
      lastTableName = res.getLastEvaluatedTableName();
      if (lastTableName == null) {
        break;
      }
View Full Code Here

TOP

Related Classes of com.amazonaws.services.dynamodb.model.DeleteTableRequest

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.