Tabnine Logo
DeleteAttributesRequest.withDomainName
Code IndexAdd Tabnine to your IDE (free)

How to use
withDomainName
method
in
com.amazonaws.services.simpledb.model.DeleteAttributesRequest

Best Java code snippets using com.amazonaws.services.simpledb.model.DeleteAttributesRequest.withDomainName (Showing top 5 results out of 315)

origin: appoxy/simplejpa

  public Object call() throws Exception {
    String domainName = em.getOrCreateDomain(toDelete.getClass());
    if(logger.isLoggable(Level.FINE)) logger.fine("deleting item with id: " + id);
    em.invokeEntityListener(toDelete, PreRemove.class);
    this.em.getSimpleDb().deleteAttributes(new DeleteAttributesRequest()
      .withDomainName(domainName)
      .withItemName(id));
    em.invokeEntityListener(toDelete, PostRemove.class);
    return toDelete;
  }
}
origin: com.proofpoint.galaxy/galaxy-coordinator

@Override
public void deleteExpectedState(UUID slotId)
{
  Preconditions.checkNotNull(slotId, "id is null");
  if (isDomainCreated()) {
    List<Attribute> attributes = newArrayList();
    attributes.add(new Attribute("state", null));
    attributes.add(new Attribute("binary", null));
    attributes.add(new Attribute("config", null));
    try {
      simpleDb.deleteAttributes(new DeleteAttributesRequest().withDomainName(domainName).withItemName(slotId.toString()).withAttributes(attributes));
      expectedStateStoreUp();
    }
    catch (Exception e) {
      expectedStateStoreDown(e);
    }
  }
}
origin: airlift/airship

@Override
public void deleteExpectedState(UUID slotId)
{
  Preconditions.checkNotNull(slotId, "id is null");
  if (isDomainCreated()) {
    List<Attribute> attributes = newArrayList();
    attributes.add(new Attribute("state", null));
    attributes.add(new Attribute("binary", null));
    attributes.add(new Attribute("config", null));
    try {
      simpleDb.deleteAttributes(new DeleteAttributesRequest().withDomainName(domainName).withItemName(slotId.toString()).withAttributes(attributes));
      expectedStateStoreUp();
    }
    catch (Exception e) {
      expectedStateStoreDown(e);
    }
  }
}
origin: appoxy/simplejpa

private void putAndDelete(String domainName, String oldAttributeName, String newAttributeName, List<Item> items) throws AmazonClientException {
  AmazonSimpleDB db = factory.getSimpleDb();
  for (Item item : items) {
    GetAttributesResult getOldResults = db.getAttributes(new GetAttributesRequest().withDomainName(domainName).withConsistentRead(true).withItemName(
        item.getName()).withAttributeNames(oldAttributeName));
    List<Attribute> oldAtts = getOldResults.getAttributes();
    if (oldAtts.size() > 0) {
      Attribute oldAtt = oldAtts.get(0);
      List<ReplaceableAttribute> atts = new ArrayList<ReplaceableAttribute>();
      atts.add(new ReplaceableAttribute(newAttributeName, oldAtt.getValue(), true));
      db.putAttributes(new PutAttributesRequest().withDomainName(domainName).withItemName(item.getName()).withAttributes(atts));
      db.deleteAttributes(new DeleteAttributesRequest().withDomainName(domainName).withItemName(item.getName()).withAttributes(oldAtts));
    }
  }
}
origin: appoxy/simplejpa

new DeleteAttributesRequest().withDomainName(domainName).withItemName(id)
    .withAttributes(attsToDelete2));
new DeleteAttributesRequest().withDomainName(domainName).withItemName(id)
    .withAttributes(attsToDelete));
com.amazonaws.services.simpledb.modelDeleteAttributesRequestwithDomainName

Javadoc

The name of the domain in which to perform the operation.

Popular methods of DeleteAttributesRequest

  • <init>
    Constructs a new DeleteAttributesRequest object. Callers should use the setter or fluent setter (wit
  • withAttributes
    A list of Attributes. Similar to columns on a spreadsheet, attributes represent categories of data t
  • withItemName
    The name of the item. Similar to rows on a spreadsheet, items represent individual objects that cont
  • getAttributes
    A list of Attributes. Similar to columns on a spreadsheet, attributes represent categories of data t
  • getDomainName
    The name of the domain in which to perform the operation.
  • getExpected
    The update condition which, if specified, determines whether the specified attributes will be delete
  • getItemName
    The name of the item. Similar to rows on a spreadsheet, items represent individual objects that cont
  • setAttributes
    A list of Attributes. Similar to columns on a spreadsheet, attributes represent categories of data t
  • setDomainName
    The name of the domain in which to perform the operation.
  • setExpected
    The update condition which, if specified, determines whether the specified attributes will be delete
  • setItemName
    The name of the item. Similar to rows on a spreadsheet, items represent individual objects that cont
  • setItemName

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Permission (java.security)
    Legacy security code; do not use.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now