Skip to content

Instantly share code, notes, and snippets.

@smaspe
Created July 8, 2013 13:59
Show Gist options
  • Save smaspe/5949014 to your computer and use it in GitHub Desktop.
Save smaspe/5949014 to your computer and use it in GitHub Desktop.
public class TypeHandler {
public String getSQLType() {
return "TEXT";
}
public Object getSQLValue(Object object) {
return object;
}
public Object fromCursor(String name, Cursor content) {
return content.getString(content.getColumnIndex(name));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment