Package de.hybris.platform.catalog
Interface SynchronizationPersistenceAdapter<ENTITY,TYPE>
-
- Type Parameters:
ENTITY-TYPE-
- All Known Implementing Classes:
LegacySynchronizationPersistenceAdapter,ServiceLayerSynchronizationPersistenceAdapter
public interface SynchronizationPersistenceAdapter<ENTITY,TYPE>Abstraction for persistence layer for catalog synchronization.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearTransactionsSettings()ENTITYcreate(TYPE type, java.util.Map<java.lang.String,java.lang.Object> attributes)Creates an entity of given type, with set of initial attributesvoiddisableTransactions()java.util.Map<java.lang.String,java.lang.Object>read(ENTITY entity, java.util.Set<java.lang.String> attributes)Reads attributes of a given entityjava.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 entityvoidremove(ENTITY entity)Removes a given entityvoidresetUnitOfWork()voidupdate(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 attributevoidupdate(ENTITY entity, java.util.Map<java.lang.String,java.lang.Object> attributes)Updates a given entity with map of attribute at once
-
-
-
Method Detail
-
create
ENTITY create(TYPE type, java.util.Map<java.lang.String,java.lang.Object> attributes) throws SynchronizationPersistenceException
Creates an entity of given type, with set of initial attributes- Parameters:
type-attributes-- Returns:
- an entity of given type.
- Throws:
SynchronizationPersistenceException
-
read
java.util.Map<java.lang.String,java.lang.Object> read(ENTITY entity, java.util.Set<java.lang.String> attributes) throws SynchronizationPersistenceException
Reads attributes of a given entity- Parameters:
entity-attributes- of a given entity- Returns:
- attributes of a given entity and theirs values
- Throws:
SynchronizationPersistenceException
-
readLocalized
java.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
Reads localized attributes of a given entity- Parameters:
entity-attributes- of a given entitylanguages- for which values should be read- Returns:
- attributes of a given entity and theirs values
- Throws:
SynchronizationPersistenceException
-
remove
void remove(ENTITY entity) throws SynchronizationPersistenceException, RecoverableSynchronizationPersistenceException
Removes a given entity- Parameters:
entity-- Throws:
SynchronizationPersistenceExceptionRecoverableSynchronizationPersistenceException
-
update
void update(ENTITY entity, java.util.Map.Entry<java.lang.String,java.lang.Object> attributes) throws SynchronizationPersistenceException
Updates a given entity with attribute value pair as its part of or other attribute- Parameters:
entity-attributes-- Throws:
SynchronizationPersistenceException
-
update
void update(ENTITY entity, java.util.Map<java.lang.String,java.lang.Object> attributes) throws SynchronizationPersistenceException
Updates a given entity with map of attribute at once- Parameters:
entity-attributes-- Throws:
SynchronizationPersistenceException
-
resetUnitOfWork
void resetUnitOfWork()
-
disableTransactions
void disableTransactions()
-
clearTransactionsSettings
void clearTransactionsSettings()
-
-