當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。