All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.paradoxical.cassieq.dataAccess.RepositoryBase Maven / Gradle / Ivy

package io.paradoxical.cassieq.dataAccess;

import com.datastax.driver.core.ResultSet;
import com.datastax.driver.core.Row;

import java.util.function.Function;

public class RepositoryBase {
    public  T getOne(ResultSet resultSet, Function mapper) {
        Row row = resultSet.one();

        if(row == null){
            return null;
        }

        return mapper.apply(row);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy