All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.dataspray.singletable.builder.UpdateExpressionBuilder Maven / Gradle / Ivy

Go to download

DynamoDB best practices encourages a single-table design that allows multiple record types to reside within the same table. The goal of this library is to improve the experience of Java developers and make it safer to define non-conflicting schema of each record, serializing and deserializing automatically and working with secondary indexes.

The newest version!
package io.dataspray.singletable.builder;

import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;

public interface UpdateExpressionBuilder {

    P updateExpression(String expression);

    P updateExpression(MappingExpression mappingExpression);

    P upsert(T item);

    P upsert(T item, ImmutableSet skipFieldNames);

    P set(String fieldName, Object object);

    P set(ImmutableList fieldPath, Object object);

    P setIncrement(String fieldName, Number increment);

    P add(String fieldName, Object object);

    P add(ImmutableList fieldPath, Object object);

    P remove(String fieldName);

    P remove(ImmutableList fieldPath);

    P delete(String fieldName, Object object);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy