Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. StorIOSQLite storIOSQLite = DefaultStorIOSQLite.builder()
  2. .sqliteOpenHelper(someSQLiteOpenHelper)
  3. .addTypeMapping(Tweet.class, SQLiteTypeMapping.<Tweet>builder()
  4. .putResolver(new TweetStorIOSQLitePutResolver()) // object that knows how to perform Put Operation (insert or update)
  5. .getResolver(new TweetStorIOSQLiteGetResolver()) // object that knows how to perform Get Operation
  6. .deleteResolver(new TweetStorIOSQLiteDeleteResolver()) // object that knows how to perform Delete Operation
  7. .build())
  8. .addTypeMapping(...)
  9. // other options
  10. .build(); // This instance of StorIOSQLite will know how to work with Tweet objects
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement