List of usage examples for com.amazonaws.services.simpledb.model DeleteDomainRequest DeleteDomainRequest
public DeleteDomainRequest(String domainName)
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)); }