protected void doValidate()

in src/main/java/com/amazonaws/services/dynamodbv2/transactions/Request.java [164:190]


        protected void doValidate(String txId, TransactionManager txManager) {
            validateAttributes(this, request.getKey(), txId, txManager);
            if(request.getAttributeUpdates() != null) {
                validateAttributes(this, request.getAttributeUpdates(), txId, txManager);
            }
            if(request.getReturnConsumedCapacity() != null) {
                throw new InvalidRequestException("ReturnConsumedCapacity is not currently supported", txId, request.getTableName(), null, this);
            }
            if(request.getReturnItemCollectionMetrics() != null) {
                throw new InvalidRequestException("ReturnItemCollectionMetrics is not currently supported", txId, request.getTableName(), null, this);
            }
            if(request.getExpected() != null) {
                throw new InvalidRequestException("Requests with conditions are not currently supported", txId, request.getTableName(), getKey(txManager), this);
            }
            if(request.getConditionExpression() != null) {
                throw new InvalidRequestException("Requests with conditions are not currently supported", txId, request.getTableName(), getKey(txManager), this);
            }
            if(request.getUpdateExpression() != null) {
                throw new InvalidRequestException("Requests with expressions are not currently supported", txId, request.getTableName(), getKey(txManager), this);
            }
            if(request.getExpressionAttributeNames() != null) {
                throw new InvalidRequestException("Requests with expressions are not currently supported", txId, getTableName(), getKey(txManager), this);
            }
            if(request.getExpressionAttributeValues() != null) {
                throw new InvalidRequestException("Requests with expressions are not currently supported", txId, getTableName(), getKey(txManager), this);
            }
        }