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

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

Best Java code snippets using com.amazonaws.services.simpledb.model.DeleteAttributesRequest.withItemName (Showing top 5 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: 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.modelDeleteAttributesRequestwithItemName

Javadoc

The name of the item. Similar to rows on a spreadsheet, items represent individual objects that contain one or more value-attribute pairs.

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
  • withDomainName
    The name of the domain in which to perform the operation.
  • 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

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • orElseThrow (Optional)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JPanel (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
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