Skip to content

Instantly share code, notes, and snippets.

@fzakaria
Created October 20, 2014 22:25
Show Gist options
  • Save fzakaria/7bd58bf63f982c90baa8 to your computer and use it in GitHub Desktop.
Save fzakaria/7bd58bf63f982c90baa8 to your computer and use it in GitHub Desktop.
class SqliteModelAccessor<T> implements ModelStoreAccessor<T> {
// Implement interface for a (TEXT, TEXT) SQLite table
}
@Autowired
class SqliteAccessorFactory(ModelResultSetTransformer transformer) {
enum PropertyDatabaseFile {
EPHEMERAL_DATABASE_FILE,
REPLICATED_DATABASE_FILE
}
public SqlitePropertyAccessor registerDatabaseTable(PropertyDatabaseFile dbFile, String tableName) {
// Return SqlitePropertyAccessor configured for accessing table tableName in database dbFile
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment