Example usage for com.amazonaws.services.simpledb.model DeleteDomainRequest DeleteDomainRequest

List of usage examples for com.amazonaws.services.simpledb.model DeleteDomainRequest DeleteDomainRequest

Introduction

In this page you can find the example usage for com.amazonaws.services.simpledb.model DeleteDomainRequest DeleteDomainRequest.

Prototype

public DeleteDomainRequest(String domainName) 

Source Link

Document

Constructs a new DeleteDomainRequest object.

Usage

From source file:org.teiid.resource.adapter.simpledb.SimpleDBConnectionImpl.java

License:Open Source License

@Override
public void deleteDomain(String domainName) throws TranslatorException {
    try {/*w ww.ja  v  a 2 s .c  o  m*/
        this.client.deleteDomain(new DeleteDomainRequest(domainName));
        if (this.domains.contains(domainName)) {
            this.domains.remove(domainName);
        }
    } catch (AmazonServiceException e) {
        throw new TranslatorException(e);
    } catch (AmazonClientException e) {
        throw new TranslatorException(e);
    }
}

From source file:wwutil.jsoda.SimpleDBService.java

License:Mozilla Public License

public void deleteTable(String tableName) {
    sdbClient.deleteDomain(new DeleteDomainRequest(tableName));
}