com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore Java Examples

The following examples show how to use com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MapperTransactionsIntegrationTest.java    From dynamodb-transactions with Apache License 2.0 5 votes vote down vote up
@DynamoDBIgnore
public Map<String, AttributeValue> getExpectedValues() {
    Map<String, AttributeValue> expected = new HashMap<String, AttributeValue>();
    expected.put("something", new AttributeValue().withS(getSomething()));
    if (getSomeSet() != null) {
        // we need to sort the values, because AttributeValue internally
        // copies our set to an ordered list
        ArrayList<String> valuesList = new ArrayList<String>(getSomeSet());
        Collections.sort(valuesList);
        expected.put("someSet", new AttributeValue().withSS(valuesList));
    }
    expected.putAll(getKey());
    return expected;
}
 
Example #2
Source File: MapperTransactionsIntegrationTest.java    From dynamodb-transactions with Apache License 2.0 5 votes vote down vote up
@DynamoDBIgnore
public Map<String, AttributeValue> getExpectedValues() {
    Map<String, AttributeValue> expected = new HashMap<String, AttributeValue>();
    expected.put("version", new AttributeValue().withN(getVersion().toString()));
    expected.putAll(getKey());
    return expected;
}
 
Example #3
Source File: CatalogItem.java    From dynamo-cassandra-proxy with Apache License 2.0 4 votes vote down vote up
@DynamoDBIgnore
public String getSomeProp() { return someProp; }
 
Example #4
Source File: NumberAttributeTestClass.java    From aws-dynamodb-encryption-java with Apache License 2.0 4 votes vote down vote up
@DynamoDBIgnore
public String getIgnored() {
    return ignored;
}
 
Example #5
Source File: DynamoDBPersistentPropertyImpl.java    From spring-data-dynamodb with Apache License 2.0 4 votes vote down vote up
@Override
public boolean isWritable() {
	return !isAnnotationPresent(DynamoDBIgnore.class);
}
 
Example #6
Source File: DynamoDBPersistentPropertyImpl.java    From spring-data-dynamodb with Apache License 2.0 4 votes vote down vote up
@Override
public boolean isTransient() {
	return isAnnotationPresent(Transient.class) || super.isTransient() || isAnnotationPresent(DynamoDBIgnore.class);
}
 
Example #7
Source File: DynamoDBPersistentPropertyImplUnitTests.java    From spring-data-dynamodb with Apache License 2.0 4 votes vote down vote up
@DynamoDBIgnore
public String getIgnoredProp() {
	return ignoredProp;
}
 
Example #8
Source File: CatalogItem.java    From wildfly-camel with Apache License 2.0 4 votes vote down vote up
@DynamoDBIgnore
public String getSomeProp() { return someProp;}
 
Example #9
Source File: MapperTransactionsIntegrationTest.java    From dynamodb-transactions with Apache License 2.0 4 votes vote down vote up
@DynamoDBIgnore
public Map<String, AttributeValue> getKey() {
    return Collections.singletonMap(ID_ATTRIBUTE, new AttributeValue().withS(getId()));
}
 
Example #10
Source File: MapperTransactionsIntegrationTest.java    From dynamodb-transactions with Apache License 2.0 4 votes vote down vote up
@DynamoDBIgnore
public Map<String, AttributeValue> getKey() {
    return Collections.singletonMap(ID_ATTRIBUTE, new AttributeValue().withS(getId()));
}