Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- StorIOSQLite storIOSQLite = DefaultStorIOSQLite.builder()
- .sqliteOpenHelper(someSQLiteOpenHelper)
- .addTypeMapping(Tweet.class, SQLiteTypeMapping.<Tweet>builder()
- .putResolver(new TweetStorIOSQLitePutResolver()) // object that knows how to perform Put Operation (insert or update)
- .getResolver(new TweetStorIOSQLiteGetResolver()) // object that knows how to perform Get Operation
- .deleteResolver(new TweetStorIOSQLiteDeleteResolver()) // object that knows how to perform Delete Operation
- .build())
- .addTypeMapping(...)
- // other options
- .build(); // This instance of StorIOSQLite will know how to work with Tweet objects
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement