Java 类com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperConfig.SaveBehavior 实例源码

项目:aws-dynamodb-encryption-java    文件:TransformerHolisticTests.java   
public void generateStandardData(EncryptionMaterialsProvider prov) {
    DynamoDBMapper mapper = new DynamoDBMapper(client,
            new DynamoDBMapperConfig(SaveBehavior.CLOBBER), new AttributeEncryptor(prov));
    mapper.save(new HashKeyOnly("Foo"));
    mapper.save(new HashKeyOnly("Bar"));
    mapper.save(new HashKeyOnly("Baz"));

    mapper.save(new KeysOnly(0, 1));
    mapper.save(new KeysOnly(0, 2));
    mapper.save(new KeysOnly(0, 3));
    mapper.save(new KeysOnly(1, 1));
    mapper.save(new KeysOnly(1, 2));
    mapper.save(new KeysOnly(1, 3));
    mapper.save(new KeysOnly(5, 1));
    mapper.save(new KeysOnly(6, 2));
    mapper.save(new KeysOnly(7, 3));

    mapper.save(ENCRYPTED_TEST_VALUE_2);
    mapper.save(MIXED_TEST_VALUE_2);
    mapper.save(SIGNED_TEST_VALUE_2);
    mapper.save(UNTOUCHED_TEST_VALUE_2);

    dumpTables();
}
项目:aws-dynamodb-encryption-java    文件:TransformerHolisticTests.java   
@Test
public void testV0SymCompatibility() {
    DynamoDBMapper mapper = new DynamoDBMapper(client,
            new DynamoDBMapperConfig(SaveBehavior.CLOBBER), new AttributeEncryptor(symProv));
    insertV0SymData(client);
    assertVersionCompatibility(mapper);
}
项目:aws-dynamodb-encryption-java    文件:TransformerHolisticTests.java   
@Test
public void testV0AsymCompatibility() {
    DynamoDBMapper mapper = new DynamoDBMapper(client,
            new DynamoDBMapperConfig(SaveBehavior.CLOBBER), new AttributeEncryptor(asymProv));
    insertV0AsymData(client);
    assertVersionCompatibility(mapper);
}
项目:aws-dynamodb-encryption-java    文件:TransformerHolisticTests.java   
@Test
public void testV0FixedWrappingTransformSymCompatibility() {
    DynamoDBMapper mapper = new DynamoDBMapper(client,
            new DynamoDBMapperConfig(SaveBehavior.CLOBBER), new AttributeEncryptor(symProv));
    insertV0FixedWrappingTransformSymData(client);
    assertVersionCompatibility(mapper);
}
项目:aws-dynamodb-encryption-java    文件:TransformerHolisticTests.java   
@Test
public void testV0FixedWrappingTransformAsymCompatibility() {
    DynamoDBMapper mapper = new DynamoDBMapper(client,
            new DynamoDBMapperConfig(SaveBehavior.CLOBBER), new AttributeEncryptor(asymProv));
    insertV0FixedWrappingTransformAsymData(client);
    assertVersionCompatibility(mapper);
}
项目:aws-dynamodb-encryption-java    文件:TransformerHolisticTests.java   
@Test
public void testV0FixedDoubleSymCompatibility() {
    DynamoDBMapper mapper = new DynamoDBMapper(client,
            new DynamoDBMapperConfig(SaveBehavior.CLOBBER), new AttributeEncryptor(symProv));
    insertV0FixedDoubleSymData(client);
    assertVersionCompatibility_2(mapper);
}
项目:aws-dynamodb-encryption-java    文件:TransformerHolisticTests.java   
@Test
public void testV0FixedDoubleAsymCompatibility() {
    DynamoDBMapper mapper = new DynamoDBMapper(client,
            new DynamoDBMapperConfig(SaveBehavior.CLOBBER), new AttributeEncryptor(asymProv));
    insertV0FixedDoubleAsymData(client);
    assertVersionCompatibility_2(mapper);
}
项目:micro-genie    文件:DynamoMapperRepository.java   
/***
 * Create a DynamoMapper repository. This defaults the SaveBehavior to {@link SaveBehavior#UPDATE}
 * 
 * @param dynamoClient
 * @return mapperRepository - {@link DynamoMapperRepository}
 */
public static DynamoMapperRepository create(final AmazonDynamoDBClient dynamoClient) {
    return DynamoMapperRepository.create(dynamoClient, new DynamoDBMapperConfig(SaveBehavior.UPDATE));
}