ENTITY - TYPE - public interface SynchronizationPersistenceAdapter<ENTITY,TYPE>
| Modifier and Type | Method and Description |
|---|---|
void |
clearTransactionsSettings() |
ENTITY |
create(TYPE type,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Creates an entity of given type, with set of initial attributes
|
void |
disableTransactions() |
java.util.Map<java.lang.String,java.lang.Object> |
read(ENTITY entity,
java.util.Set<java.lang.String> attributes)
Reads attributes of a given entity
|
java.util.Map<java.lang.String,java.lang.Object> |
readLocalized(ENTITY entity,
java.util.Set<java.lang.String> attributes,
java.util.Set<Language> languages)
Reads localized attributes of a given entity
|
void |
remove(ENTITY entity)
Removes a given entity
|
void |
resetUnitOfWork() |
void |
update(ENTITY entity,
java.util.Map.Entry<java.lang.String,java.lang.Object> attributes)
Updates a given entity with attribute value pair as its part of or other attribute
|
void |
update(ENTITY entity,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Updates a given entity with map of attribute at once
|
ENTITY create(TYPE type, java.util.Map<java.lang.String,java.lang.Object> attributes) throws SynchronizationPersistenceException
type - attributes - SynchronizationPersistenceExceptionjava.util.Map<java.lang.String,java.lang.Object> read(ENTITY entity, java.util.Set<java.lang.String> attributes) throws SynchronizationPersistenceException
entity - attributes - of a given entitySynchronizationPersistenceExceptionjava.util.Map<java.lang.String,java.lang.Object> readLocalized(ENTITY entity, java.util.Set<java.lang.String> attributes, java.util.Set<Language> languages) throws SynchronizationPersistenceException
entity - attributes - of a given entitylanguages - for which values should be readSynchronizationPersistenceExceptionvoid remove(ENTITY entity) throws SynchronizationPersistenceException, RecoverableSynchronizationPersistenceException
entity - SynchronizationPersistenceExceptionRecoverableSynchronizationPersistenceExceptionvoid update(ENTITY entity, java.util.Map.Entry<java.lang.String,java.lang.Object> attributes) throws SynchronizationPersistenceException
entity - attributes - SynchronizationPersistenceExceptionvoid update(ENTITY entity, java.util.Map<java.lang.String,java.lang.Object> attributes) throws SynchronizationPersistenceException
entity - attributes - SynchronizationPersistenceExceptionvoid resetUnitOfWork()
void disableTransactions()
void clearTransactionsSettings()
Copyright © 2018 SAP SE. All Rights Reserved.