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
Modifier and TypeMethodDescriptionvoidCreates an entity of given type, with set of initial attributesvoidReads attributes of a given entityReads localized attributes of a given entityvoidRemoves a given entityvoidvoidUpdates a given entity with attribute value pair as its part of or other attributevoidUpdates a given entity with map of attribute at once
-
Method Details
-
create
Creates an entity of given type, with set of initial attributes- Parameters:
type-attributes-- Returns:
- an entity of given type.
- Throws:
SynchronizationPersistenceException
-
read
Map<String,Object> read(ENTITY entity, Set<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
Map<String,Object> readLocalized(ENTITY entity, Set<String> attributes, 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, Map.Entry<String, Object> attributes) throws SynchronizationPersistenceExceptionUpdates a given entity with attribute value pair as its part of or other attribute- Parameters:
entity-attributes-- Throws:
SynchronizationPersistenceException
-
update
void update(ENTITY entity, Map<String, Object> attributes) throws SynchronizationPersistenceExceptionUpdates a given entity with map of attribute at once- Parameters:
entity-attributes-- Throws:
SynchronizationPersistenceException
-
resetUnitOfWork
void resetUnitOfWork() -
disableTransactions
void disableTransactions() -
clearTransactionsSettings
void clearTransactionsSettings()
-