org.sfm.datastax.impl.getter.DatastaxToStringGetter 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.sfm.datastax.impl.getter;
import com.datastax.driver.core.GettableByIndexData;
import org.sfm.reflect.Getter;
public class DatastaxToStringGetter implements Getter {
private final Getter getter;
public DatastaxToStringGetter(Getter getter) {
this.getter = getter;
}
@Override
public String get(GettableByIndexData target) throws Exception {
return String.valueOf(getter.get(target));
}
}