org.simpleflatmapper.datastax.impl.getter.DatastaxDateGetter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sfm-datastax Show documentation
Show all versions of sfm-datastax Show documentation
Cassandra Datastax SFM supports.
package org.simpleflatmapper.datastax.impl.getter;
import com.datastax.driver.core.GettableByIndexData;
import org.simpleflatmapper.datastax.DataHelper;
import org.simpleflatmapper.reflect.Getter;
public class DatastaxDateGetter implements Getter {
private final int index;
public DatastaxDateGetter(int index) {
this.index = index;
}
@Override
public Object get(GettableByIndexData target) throws Exception {
return DataHelper.getDate(index, target);
}
}