/** * Packs a Post object into a ContentValues map for use with SQL inserts. * * @param post * @return */ private static ContentValues postToContentValues(Post post) { ContentValues values = new ContentValues(); values.put(PostORM.COLUMN_ID, post.getId()); values.put(PostORM.COLUMN_TITLE, post.getTitle()); values.put(PostORM.COLUMN_PREVIEW, post.getPreview()); values.put(PostORM.COLUMN_BODY, post.getBody()); values.put(PostORM.COLUMN_URL, post.getUrl()); values.put(PostORM.COLUMN_DATE, _dateFormat.format(post.getDate())); return values; }