Package com.amazonaws.services.dynamodb.datamodeling

Examples of com.amazonaws.services.dynamodb.datamodeling.DynamoDBMapper.load()


      rangeKey = getRangeKey(key);
      Object hashKey = getHashKey(key);
      if (hashKey != null){
        DynamoDBMapper mapper = new DynamoDBMapper(dynamoDBClient);
       if (rangeKey != null)
        object = mapper.load(persistentClass, hashKey, rangeKey);
      else
        object = mapper.load(persistentClass, hashKey);
      }
      else
        throw new GoraException("Error while retrieving keys from object: " + key.toString());
View Full Code Here


      if (hashKey != null){
        DynamoDBMapper mapper = new DynamoDBMapper(dynamoDBClient);
       if (rangeKey != null)
        object = mapper.load(persistentClass, hashKey, rangeKey);
      else
        object = mapper.load(persistentClass, hashKey);
      }
      else
        throw new GoraException("Error while retrieving keys from object: " + key.toString());
    } catch (IllegalArgumentException e) {
      e.printStackTrace();
View Full Code Here

      if (rangeKey == null)
        rangeKey = getRangeKey(obj);
      if (hashKey != null){
        DynamoDBMapper mapper = new DynamoDBMapper(dynamoDBClient);
        if (rangeKey != null)
          mapper.load(persistentClass, hashKey.toString(), rangeKey.toString());
        else
          mapper.load(persistentClass, hashKey.toString());
          mapper.save(obj);
      }
      else
View Full Code Here

      if (hashKey != null){
        DynamoDBMapper mapper = new DynamoDBMapper(dynamoDBClient);
        if (rangeKey != null)
          mapper.load(persistentClass, hashKey.toString(), rangeKey.toString());
        else
          mapper.load(persistentClass, hashKey.toString());
          mapper.save(obj);
      }
      else
        throw new GoraException("Error while retrieving keys from object: " + obj.toString());
    }catch(NullPointerException npe){
View Full Code Here

          Object [] params = null;
          hashKey = met.invoke(key, params);
          break;
        }
      }
      if (hashKey == null) object = (T) mapper.load(persistentClass, key);
      if (rangeKey == null)
        object = (T) mapper.load(persistentClass, hashKey);
      else
        object = (T) mapper.load(persistentClass, hashKey, rangeKey);
View Full Code Here

          break;
        }
      }
      if (hashKey == null) object = (T) mapper.load(persistentClass, key);
      if (rangeKey == null)
        object = (T) mapper.load(persistentClass, hashKey);
      else
        object = (T) mapper.load(persistentClass, hashKey, rangeKey);

      if (object == null) return false;
View Full Code Here

      }
      if (hashKey == null) object = (T) mapper.load(persistentClass, key);
      if (rangeKey == null)
        object = (T) mapper.load(persistentClass, hashKey);
      else
        object = (T) mapper.load(persistentClass, hashKey, rangeKey);

      if (object == null) return false;

      // setting key for dynamodbMapper
      mapper.delete(object);
View Full Code Here

      rangeKey = getRangeKey(key);
      Object hashKey = getHashKey(key);
      if (hashKey != null){
        DynamoDBMapper mapper = new DynamoDBMapper(dynamoDBClient);
       if (rangeKey != null)
        object = mapper.load(persistentClass, hashKey, rangeKey);
      else
        object = mapper.load(persistentClass, hashKey);
      }
      else
        throw new GoraException("Error while retrieving keys from object: " + key.toString());
View Full Code Here

      if (hashKey != null){
        DynamoDBMapper mapper = new DynamoDBMapper(dynamoDBClient);
       if (rangeKey != null)
        object = mapper.load(persistentClass, hashKey, rangeKey);
      else
        object = mapper.load(persistentClass, hashKey);
      }
      else
        throw new GoraException("Error while retrieving keys from object: " + key.toString());
    } catch (IllegalArgumentException e) {
      e.printStackTrace();
View Full Code Here

      if (rangeKey == null)
        rangeKey = getRangeKey(obj);
      if (hashKey != null){
        DynamoDBMapper mapper = new DynamoDBMapper(dynamoDBClient);
        if (rangeKey != null)
          mapper.load(persistentClass, hashKey.toString(), rangeKey.toString());
        else
          mapper.load(persistentClass, hashKey.toString());
          mapper.save(obj);
      }
      else
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.