Action on ContentResolvers that applies a batch of
android.content.ContentProviderOperation
s.
Queries on ContentProviders.
Query on an arbitrary content source.
Generic interface to "content repositories", including databases and ContentResolvers.
Action on the content resolver, considered as an actor
Abstract wrapper for any value that can be stored in a field of a data source in a ContentRepository --- currently, a SQLite database or Android ContentProvider.
Wrapper around standard Android cursors, available as a base class for extensions.
Booleans as ContentValues.
Doubles as ContentValues
Floats as ContentValues
Ints as ContentValues
Longs as ContentValues
Strings as ContentValues
Wrapper around cursors to support foreach
and map
, so you can do, e.
Companion object for the org.positronicnet.org.ContentValue class.
Simple AppFacility for interacting with Android ContentProviders using the Positronic Net ContentQuery convenience shorthands, or the orm.
The
org.positronicnet.content
package provides common infrastructure, and a common fluid interface, for accessing both SQLite Databases (via the Database class) and AndroidContentProvider
s (via org.positronicnet.content.PositronicContentResolver). This interface is also used by the orm package, which provides a common higher-level structure for accessing the same resources, where it proves convenient.The user-visible facilities of the infrastructure consist largely of the fluid interface for queries. A brief example: Suppose you have a Database declared as follows:
Then
TodoDatabase("todo_items")
will yield a ContentQuery object which can be used to manipulate the rows of thetodo_items
table in the following ways:org.positronicnet.content.PositronicContentResolver can be used to deal with Android ContentProviders in a similar style.