public class WriteModifiers extends SpaceProxyOperationModifiers
Modifier and Type | Field and Description |
---|---|
static WriteModifiers |
MEMORY_ONLY_SEARCH
Look only in memory for existence of entry with the same ID - do not use the underlying external data source.
|
static WriteModifiers |
NONE
Empty - use operation default behavior.
|
static WriteModifiers |
ONE_WAY
Operation is executed in one way mode, meaning no return value will be provided.
|
static WriteModifiers |
PARTIAL_UPDATE
Update only non-null properties, ignore null properties.
|
static WriteModifiers |
RETURN_PREV_ON_UPDATE
If the entry already exists in the space, return the old entry in the result.
|
static WriteModifiers |
UPDATE_ONLY
If the entry does not exists in the space throw an EntryNotInSpaceException.
|
static WriteModifiers |
UPDATE_OR_WRITE
If the entry does not exists in the space it is written, otherwise it is updated.
|
static WriteModifiers |
WRITE_ONLY
If the entry already exists in the space throw an EntryAlreadyInSpaceException.
|
Constructor and Description |
---|
WriteModifiers() |
WriteModifiers(WriteModifiers... modifiers)
Creates a new modifiers from the specified modifiers.
|
WriteModifiers(WriteModifiers modifiers1,
WriteModifiers modifiers2)
Creates a new modifiers from the specified modifiers.
|
WriteModifiers(WriteModifiers modifiers1,
WriteModifiers modifiers2,
WriteModifiers modifiers3)
Creates a new modifiers from the specified modifiers.
|
Modifier and Type | Method and Description |
---|---|
WriteModifiers |
add(WriteModifiers modifiers)
Creates a new modifiers instance which is a union of the specified modifiers and this instance.
|
boolean |
contains(WriteModifiers modifiers)
Checks if the specified modifier is set.
|
protected WriteModifiers |
create(int modifiers) |
protected Map<Integer,SpaceProxyOperationModifiers> |
getCache() |
boolean |
isPartialUpdate()
Checks if this instance contains the
PARTIAL_UPDATE setting. |
boolean |
isReturnPrevOnUpdate()
Checks if this instance contains the
RETURN_PREV_ON_UPDATE setting. |
boolean |
isUpdateOnly()
Checks if this instance contains the
UPDATE_ONLY setting. |
boolean |
isUpdateOrWrite()
Checks if this instance contains the
UPDATE_OR_WRITE setting. |
boolean |
isWriteOnly()
Checks if this instance contains the
WRITE_ONLY setting. |
WriteModifiers |
remove(WriteModifiers modifiers)
Creates a new modifiers instance which excludes the specified modifiers from this instance.
|
add, contains, createIfNeeded, equals, getCode, hashCode, readExternal, remove, writeExternal
public static final WriteModifiers NONE
public static final WriteModifiers WRITE_ONLY
UPDATE_OR_WRITE
, UPDATE_ONLY
, PARTIAL_UPDATE
.SpaceId}
public static final WriteModifiers UPDATE_ONLY
UPDATE_OR_WRITE
, WRITE_ONLY
.SpaceId}
public static final WriteModifiers UPDATE_OR_WRITE
WRITE_ONLY
, UPDATE_ONLY
.SpaceId}
public static final WriteModifiers PARTIAL_UPDATE
WRITE_ONLY
.SpaceId}
public static final WriteModifiers RETURN_PREV_ON_UPDATE
public static final WriteModifiers ONE_WAY
public static final WriteModifiers MEMORY_ONLY_SEARCH
public WriteModifiers()
public WriteModifiers(WriteModifiers modifiers1, WriteModifiers modifiers2)
modifiers1
- modifiers2
- public WriteModifiers(WriteModifiers modifiers1, WriteModifiers modifiers2, WriteModifiers modifiers3)
modifiers1
- modifiers2
- modifiers3
- public WriteModifiers(WriteModifiers... modifiers)
modifiers
- public boolean contains(WriteModifiers modifiers)
modifiers
- public WriteModifiers add(WriteModifiers modifiers)
modifiers
- Modifiers to add.public WriteModifiers remove(WriteModifiers modifiers)
modifiers
- Modifiers to remove.public boolean isWriteOnly()
WRITE_ONLY
setting.WRITE_ONLY
setting, false otherwise.public boolean isUpdateOnly()
UPDATE_ONLY
setting.UPDATE_ONLY
setting, false otherwise.public boolean isUpdateOrWrite()
UPDATE_OR_WRITE
setting.UPDATE_OR_WRITE
setting, false otherwise.public boolean isPartialUpdate()
PARTIAL_UPDATE
setting.PARTIAL_UPDATE
setting, false otherwise.public boolean isReturnPrevOnUpdate()
RETURN_PREV_ON_UPDATE
setting.RETURN_PREV_ON_UPDATE
setting, false otherwise.protected WriteModifiers create(int modifiers)
create
in class SpaceProxyOperationModifiers
protected Map<Integer,SpaceProxyOperationModifiers> getCache()
getCache
in class SpaceProxyOperationModifiers
Copyright © GigaSpaces.