Example usage for com.amazonaws.services.simpledb.model UpdateCondition UpdateCondition

List of usage examples for com.amazonaws.services.simpledb.model UpdateCondition UpdateCondition

Introduction

In this page you can find the example usage for com.amazonaws.services.simpledb.model UpdateCondition UpdateCondition.

Prototype

public UpdateCondition(String name, String value, Boolean exists) 

Source Link

Document

Constructs a new UpdateCondition object.

Usage

From source file:br.com.ingenieux.mojo.simpledb.cmd.PutAttributesCommand.java

License:Apache License

private UpdateCondition getUpdateCondition(ObjectNode expectNode) {
    String nameParameter = expectNode.get("name").asText();
    String valueParameter = null;
    Boolean existsParameter = null;

    if (null != expectNode.get("value"))
        valueParameter = expectNode.get("value").asText();

    if (null != expectNode.get("exists"))
        existsParameter = Boolean.valueOf("" + expectNode.get("exists"));

    return new UpdateCondition(nameParameter, valueParameter, existsParameter);
}

From source file:org.grails.datastore.mapping.simpledb.util.SimpleDBTemplateImpl.java

License:Apache License

protected UpdateCondition getOptimisticVersionCondition(String expectedVersion) {
    return new UpdateCondition("version", expectedVersion, Boolean.TRUE);
}