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

org.simpleflatmapper.datastax.impl.DatastaxKeySourceGetter Maven / Gradle / Ivy

There is a newer version: 8.2.3
Show newest version
package org.simpleflatmapper.datastax.impl;

import com.datastax.driver.core.GettableByIndexData;
import org.simpleflatmapper.datastax.DatastaxColumnKey;
import org.simpleflatmapper.map.context.KeySourceGetter;

public class DatastaxKeySourceGetter implements KeySourceGetter {
    public static final DatastaxKeySourceGetter INSTANCE = new DatastaxKeySourceGetter();
    private DatastaxKeySourceGetter() {
    }
    @Override
    public Object getValue(DatastaxColumnKey key, GettableByIndexData source)  {
        return source.getObject(key.getIndex());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy