Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created October 18, 2017 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitherejoe/55581826e7aed71cff7b4ca55585d1f7 to your computer and use it in GitHub Desktop.
Save hitherejoe/55581826e7aed71cff7b4ca55585d1f7 to your computer and use it in GitHub Desktop.
@Dao
abstract class CachedBufferooDao {
@Query(BufferooConstants.QUERY_BUFFEROOS)
abstract fun getBufferoos(): List<CachedBufferoo>
@Query(BufferooConstants.DELETE_ALL_BUFFEROOS)
abstract fun clearBufferoos()
@Insert(onConflict = OnConflictStrategy.REPLACE)
abstract fun insertBufferoo(cachedBufferoo: CachedBufferoo)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment