List of usage examples for android.database DatabaseUtils appendValueToSql
public static final void appendValueToSql(StringBuilder sql, Object value)
From source file:com.eTilbudsavis.etasdk.DbHelper.java
private static String escape(Object o) { if (o instanceof Integer) { return Integer.toString((Integer) o); }/*from www . j ava 2s .co m*/ StringBuilder sb = new StringBuilder(); DatabaseUtils.appendValueToSql(sb, o); return sb.toString(); }