Codota Logo
DeleteAttributesRequest.withAttributes
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
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

this.em.getSimpleDb().deleteAttributes(
    new DeleteAttributesRequest().withDomainName(domainName).withItemName(id)
        .withAttributes(attsToDelete2));
        .withAttributes(attsToDelete));
com.amazonaws.services.simpledb.modelDeleteAttributesRequestwithAttributes

Javadoc

A list of Attributes. Similar to columns on a spreadsheet, attributes represent categories of data that can be assigned to items.

Popular methods of DeleteAttributesRequest

  • <init>
    Constructs a new DeleteAttributesRequest object. Callers should use the setter or fluent setter (wit
  • withDomainName
    The name of the domain in which to perform the operation.
  • 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

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • startActivity (Activity)
  • findViewById (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • JTextField (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now