Package com.amazonaws.services.simpledb.model

Examples of com.amazonaws.services.simpledb.model.PutAttributesRequest.withAttributes()


    for (Field field : ClassInfo.getClassInfo(clazz).updateFields) {
      try {
        String value = objectFieldToString(obj, field);
        if(value != null){
          ReplaceableAttribute attr = new ReplaceableAttribute(getAttributeName(field), value, true);
          req.withAttributes(attr);
        }else {
          if (ClassInfo.isEmbeddedNative(field)){
            SdbNativeSerializer.embed(req, ClassInfo.getSingleColumnName(field), value);           
          }
        }
View Full Code Here


  public boolean save()
  {
    boolean result = false;
    PutAttributesRequest par = new PutAttributesRequest();
    par.setItemName(path);
    par.withAttributes(new ReplaceableAttribute("ReadRevisionNumber", "" + ReadRevisionNumber, true));
    par.withAttributes(new ReplaceableAttribute("WriteRevisionNumber", "" + WriteRevisionNumber, true));
    String[] pathComp = getPathComps(path);
    if(pathComp != null)
    {
      par.withAttributes(new ReplaceableAttribute("Levels", "" + pathComp.length, true));
View Full Code Here

  {
    boolean result = false;
    PutAttributesRequest par = new PutAttributesRequest();
    par.setItemName(path);
    par.withAttributes(new ReplaceableAttribute("ReadRevisionNumber", "" + ReadRevisionNumber, true));
    par.withAttributes(new ReplaceableAttribute("WriteRevisionNumber", "" + WriteRevisionNumber, true));
    String[] pathComp = getPathComps(path);
    if(pathComp != null)
    {
      par.withAttributes(new ReplaceableAttribute("Levels", "" + pathComp.length, true));
      for(int i = 0; i<pathComp.length; i++)
View Full Code Here

    par.withAttributes(new ReplaceableAttribute("ReadRevisionNumber", "" + ReadRevisionNumber, true));
    par.withAttributes(new ReplaceableAttribute("WriteRevisionNumber", "" + WriteRevisionNumber, true));
    String[] pathComp = getPathComps(path);
    if(pathComp != null)
    {
      par.withAttributes(new ReplaceableAttribute("Levels", "" + pathComp.length, true));
      for(int i = 0; i<pathComp.length; i++)
      {
        par.withAttributes(new ReplaceableAttribute("Level"+i, "" + pathComp[i], true));
      }
      par.setDomainName(myDomain);
View Full Code Here

    if(pathComp != null)
    {
      par.withAttributes(new ReplaceableAttribute("Levels", "" + pathComp.length, true));
      for(int i = 0; i<pathComp.length; i++)
      {
        par.withAttributes(new ReplaceableAttribute("Level"+i, "" + pathComp[i], true));
      }
      par.setDomainName(myDomain);
      DataObject.sdb.putAttributes(par);
    }
    return result;
View Full Code Here

  public boolean create()
  {
    boolean result = false;
    PutAttributesRequest par = new PutAttributesRequest();
    par.setItemName(path);
    par.withAttributes(new ReplaceableAttribute("ReadRevisionNumber", "1", true));
    par.withAttributes(new ReplaceableAttribute("WriteRevisionNumber", "1", true));
    String[] pathComp = getPathComps(path);
    if(pathComp != null)
    {
      par.withAttributes(new ReplaceableAttribute("Levels", "" + pathComp.length, true));
View Full Code Here

  {
    boolean result = false;
    PutAttributesRequest par = new PutAttributesRequest();
    par.setItemName(path);
    par.withAttributes(new ReplaceableAttribute("ReadRevisionNumber", "1", true));
    par.withAttributes(new ReplaceableAttribute("WriteRevisionNumber", "1", true));
    String[] pathComp = getPathComps(path);
    if(pathComp != null)
    {
      par.withAttributes(new ReplaceableAttribute("Levels", "" + pathComp.length, true));
      for(int i = 0; i<pathComp.length; i++)
View Full Code Here

    par.withAttributes(new ReplaceableAttribute("ReadRevisionNumber", "1", true));
    par.withAttributes(new ReplaceableAttribute("WriteRevisionNumber", "1", true));
    String[] pathComp = getPathComps(path);
    if(pathComp != null)
    {
      par.withAttributes(new ReplaceableAttribute("Levels", "" + pathComp.length, true));
      for(int i = 0; i<pathComp.length; i++)
      {
        par.withAttributes(new ReplaceableAttribute("Level"+i, "" + pathComp[i], true));
      }
      par.setDomainName(myDomain);
View Full Code Here

    if(pathComp != null)
    {
      par.withAttributes(new ReplaceableAttribute("Levels", "" + pathComp.length, true));
      for(int i = 0; i<pathComp.length; i++)
      {
        par.withAttributes(new ReplaceableAttribute("Level"+i, "" + pathComp[i], true));
      }
      par.setDomainName(myDomain);
      DataObject.sdb.putAttributes(par);
    }
    return result;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.