Interface EntitySaver
- All Known Subinterfaces:
MapperOperatorContract
- All Known Implementing Classes:
BaseMapperOperator,DefaultMapperOperator
public interface EntitySaver
Defines the contract for decomposing and persisting domain entities into a flattened
configuration memory.
*
Note: This is an experimental feature and is currently considered unstable. It serves as a core component of the mapping system, responsible for the serialization phase where complex objects are transformed into path-based key-value pairs.
- Since:
- 0.3
- Author:
- a8kj7sea
-
Method Summary
Modifier and TypeMethodDescription<T> voidsave(DataMemory<String> memory, String path, T entity) Serializes and saves an entity into the providedDataMemoryunder a specific path.
-
Method Details
-
save
Serializes and saves an entity into the providedDataMemoryunder a specific path.- Type Parameters:
T- the type of the entity being saved.- Parameters:
memory- the target memory implementation where data will be stored.path- the base configuration path (e.g., "database.mysql") under which the entity's fields will be flattened.entity- the domain object instance to persist.
-