public class ConstraintsInterceptor extends Object implements WriteQueryRequestInterceptor
| Modifier and Type | Method and Description |
|---|---|
static ConstraintsInterceptor |
newConstraints() |
com.google.common.util.concurrent.ListenableFuture<WriteQueryData> |
onWriteRequestAsync(WriteQueryData queryData) |
ConstraintsInterceptor |
withImmutableColumn(ColumnName<?> columnName) |
ConstraintsInterceptor |
withImmutableColumn(String columnName) |
ConstraintsInterceptor |
withNotNullColumn(ColumnName<?> columnName) |
ConstraintsInterceptor |
withNotNullColumn(String columnName) |
public static ConstraintsInterceptor newConstraints()
public ConstraintsInterceptor withNotNullColumn(ColumnName<?> columnName)
columnName - the column name of the not null columnpublic ConstraintsInterceptor withNotNullColumn(String columnName)
columnName - the column name of the not null columnpublic ConstraintsInterceptor withImmutableColumn(ColumnName<?> columnName)
columnName - the column name of the immutable column. Please consider, that every write operation without ifNotExists() will count as an updatepublic ConstraintsInterceptor withImmutableColumn(String columnName)
columnName - the column name of the immutable column. Please consider, that every write operation without ifNotExists() will count as an updatepublic com.google.common.util.concurrent.ListenableFuture<WriteQueryData> onWriteRequestAsync(WriteQueryData queryData) throws ConstraintException
onWriteRequestAsync in interface WriteQueryRequestInterceptorqueryData - the request dataConstraintExceptionCopyright © 2012–2015 1&1. All rights reserved.