br.com.anteros.nosql.persistence.mongodb.mapping.MongoValueMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Anteros-NoSql-Persistence-MongoDB Show documentation
Show all versions of Anteros-NoSql-Persistence-MongoDB Show documentation
Anteros NoSQL Persistence MongoDB.
package br.com.anteros.nosql.persistence.mongodb.mapping;
import java.util.Map;
import br.com.anteros.nosql.persistence.metadata.NoSQLDescriptionField;
import br.com.anteros.nosql.persistence.session.NoSQLSession;
import br.com.anteros.nosql.persistence.session.cache.NoSQLEntityCache;
import br.com.anteros.nosql.persistence.session.mapping.AbstractNoSQLObjectMapper;
import br.com.anteros.nosql.persistence.session.mapping.NoSQLCustomMapper;
class MongoValueMapper implements NoSQLCustomMapper {
@Override
public void fromDocument(final NoSQLSession> session, final Object dbObject, final NoSQLDescriptionField descriptionField, final Object entity,
final NoSQLEntityCache cache, final AbstractNoSQLObjectMapper mapper) {
mapper.getConverters().fromDocument(dbObject, descriptionField, entity);
}
@Override
public void toDocument(final Object entity, final NoSQLDescriptionField descriptionField, final Object dbObject, final Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy