当前位置: 首页>>代码示例>>Java>>正文


Java SaveBehavior类代码示例

本文整理汇总了Java中com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperConfig.SaveBehavior的典型用法代码示例。如果您正苦于以下问题:Java SaveBehavior类的具体用法?Java SaveBehavior怎么用?Java SaveBehavior使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SaveBehavior类属于com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperConfig包,在下文中一共展示了SaveBehavior类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: generateStandardData

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperConfig.SaveBehavior; //导入依赖的package包/类
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();
}
 
开发者ID:awslabs,项目名称:aws-dynamodb-encryption-java,代码行数:25,代码来源:TransformerHolisticTests.java

示例2: testV0SymCompatibility

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperConfig.SaveBehavior; //导入依赖的package包/类
@Test
public void testV0SymCompatibility() {
    DynamoDBMapper mapper = new DynamoDBMapper(client,
            new DynamoDBMapperConfig(SaveBehavior.CLOBBER), new AttributeEncryptor(symProv));
    insertV0SymData(client);
    assertVersionCompatibility(mapper);
}
 
开发者ID:awslabs,项目名称:aws-dynamodb-encryption-java,代码行数:8,代码来源:TransformerHolisticTests.java

示例3: testV0AsymCompatibility

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperConfig.SaveBehavior; //导入依赖的package包/类
@Test
public void testV0AsymCompatibility() {
    DynamoDBMapper mapper = new DynamoDBMapper(client,
            new DynamoDBMapperConfig(SaveBehavior.CLOBBER), new AttributeEncryptor(asymProv));
    insertV0AsymData(client);
    assertVersionCompatibility(mapper);
}
 
开发者ID:awslabs,项目名称:aws-dynamodb-encryption-java,代码行数:8,代码来源:TransformerHolisticTests.java

示例4: testV0FixedWrappingTransformSymCompatibility

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperConfig.SaveBehavior; //导入依赖的package包/类
@Test
public void testV0FixedWrappingTransformSymCompatibility() {
    DynamoDBMapper mapper = new DynamoDBMapper(client,
            new DynamoDBMapperConfig(SaveBehavior.CLOBBER), new AttributeEncryptor(symProv));
    insertV0FixedWrappingTransformSymData(client);
    assertVersionCompatibility(mapper);
}
 
开发者ID:awslabs,项目名称:aws-dynamodb-encryption-java,代码行数:8,代码来源:TransformerHolisticTests.java

示例5: testV0FixedWrappingTransformAsymCompatibility

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperConfig.SaveBehavior; //导入依赖的package包/类
@Test
public void testV0FixedWrappingTransformAsymCompatibility() {
    DynamoDBMapper mapper = new DynamoDBMapper(client,
            new DynamoDBMapperConfig(SaveBehavior.CLOBBER), new AttributeEncryptor(asymProv));
    insertV0FixedWrappingTransformAsymData(client);
    assertVersionCompatibility(mapper);
}
 
开发者ID:awslabs,项目名称:aws-dynamodb-encryption-java,代码行数:8,代码来源:TransformerHolisticTests.java

示例6: testV0FixedDoubleSymCompatibility

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperConfig.SaveBehavior; //导入依赖的package包/类
@Test
public void testV0FixedDoubleSymCompatibility() {
    DynamoDBMapper mapper = new DynamoDBMapper(client,
            new DynamoDBMapperConfig(SaveBehavior.CLOBBER), new AttributeEncryptor(symProv));
    insertV0FixedDoubleSymData(client);
    assertVersionCompatibility_2(mapper);
}
 
开发者ID:awslabs,项目名称:aws-dynamodb-encryption-java,代码行数:8,代码来源:TransformerHolisticTests.java

示例7: testV0FixedDoubleAsymCompatibility

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperConfig.SaveBehavior; //导入依赖的package包/类
@Test
public void testV0FixedDoubleAsymCompatibility() {
    DynamoDBMapper mapper = new DynamoDBMapper(client,
            new DynamoDBMapperConfig(SaveBehavior.CLOBBER), new AttributeEncryptor(asymProv));
    insertV0FixedDoubleAsymData(client);
    assertVersionCompatibility_2(mapper);
}
 
开发者ID:awslabs,项目名称:aws-dynamodb-encryption-java,代码行数:8,代码来源:TransformerHolisticTests.java

示例8: create

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperConfig.SaveBehavior; //导入依赖的package包/类
/***
 * 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));
}
 
开发者ID:shagwood,项目名称:micro-genie,代码行数:10,代码来源:DynamoMapperRepository.java


注:本文中的com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperConfig.SaveBehavior类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。