org.sfm.datastax.BoundStatementMapper Maven / Gradle / Ivy
package org.sfm.datastax;
import com.datastax.driver.core.BoundStatement;
import com.datastax.driver.core.SettableByIndexData;
import org.sfm.map.Mapper;
import org.sfm.utils.ErrorHelper;
public class BoundStatementMapper {
private final Mapper mapper;
public BoundStatementMapper(Mapper mapper) {
this.mapper = mapper;
}
public BoundStatement mapTo(T object, BoundStatement boundStatement) {
try {
mapper.mapTo(object, boundStatement, null);
} catch (Exception e) {
ErrorHelper.rethrow(e);
}
return boundStatement;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy