org.positronicnet.content

ContentProviderQuery

class ContentProviderQuery [IdType] extends ContentQuery[Uri, IdType]

Queries on ContentProviders. See org.positronicnet.content.PositronicContentResolver

Linear Supertypes
ContentQuery[Uri, IdType], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ContentProviderQuery
  2. ContentQuery
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ContentProviderQuery (source: BaseContentResolverRepo[IdType], uri: Uri, orderString: String, whereString: String, whereValues: Array[String])

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def buildContentValues (assigns: (String, ContentValue)*): ContentValues

    Attributes
    protected
    Definition Classes
    ContentQuery
  8. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def conditionKey : (String, Seq[String])

    All conditions on this ContentQuery.

    All conditions on this ContentQuery. Useful to determine when two are equivalent.

    Definition Classes
    ContentQuery
  10. def contentUri : Uri

  11. def count : Long

    Returns a count of records matching this query's conditions.

    Returns a count of records matching this query's conditions. May not be supported by all repositories; in particular, it is not supported by ContentProviders.

    Definition Classes
    ContentProviderQueryContentQuery
  12. def delete : Int

    Delete all records which match this ContentQuery

    Delete all records which match this ContentQuery

    Definition Classes
    ContentQuery
  13. def dinkedCopy (source: BaseContentResolverRepo[IdType] = this.source, uri: Uri = this.uri, orderString: String = this.orderString, whereString: String = this.whereString, whereValues: Array[String] = this.whereValues): ContentProviderQuery[IdType]

    Attributes
    protected
  14. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  15. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def facility : AppFacility

    Definition Classes
    ContentProviderQueryContentQuery
  17. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  19. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  20. def insert (assigns: (String, ContentValue)*): IdType

    Inserts a new record, with values of the columns named by the Strings to each associated ContentValue.

    Inserts a new record, with values of the columns named by the Strings to each associated ContentValue. E.g.,

        qry.insert( "description" -> "write documentation",
                    "status" -> "in_progress",
                    "urgency_level" -> 3 )
    

    using the same shorthand for pairs as is commonly used for Map constructors.

    Definition Classes
    ContentQuery
  21. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  22. def limit (s: String): Nothing

    Returns a new query whose results will be limited to the given number of rows.

    Returns a new query whose results will be limited to the given number of rows. May not be supported by all repositories; in particular, it is not supported by ContentProviders.

    Definition Classes
    ContentProviderQueryContentQuery
  23. def limit (l: Int): ContentQuery[Uri, IdType]

    Returns a new query whose results will be limited to the given number of rows.

    Returns a new query whose results will be limited to the given number of rows. May not be supported by all repositories; in particular, it is not supported by ContentProviders.

    Definition Classes
    ContentQuery
  24. def log (stmtType: String, contentValues: ContentValues = null, cols: Array[String] = null): AnyVal

    Attributes
    protected
    Definition Classes
    ContentQuery
  25. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  26. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  27. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  28. def order (s: String): ContentProviderQuery[IdType]

    Returns a new ContentQuery, equivalent to this one, except that results will be ordered as per the given String.

    Returns a new ContentQuery, equivalent to this one, except that results will be ordered as per the given String. Interpretation of the Strings is as per the underlying APIs, e.g., as for a SQL order by when querying a database.

    Definition Classes
    ContentProviderQueryContentQuery
  29. def select (cols: String*): PositronicCursor

    Return a PositronicCursor for the values of the given columns, in records matching this query, respecting its order and limit.

    Return a PositronicCursor for the values of the given columns, in records matching this query, respecting its order and limit.

    (This is a wrapper around standard Android Cursors, which provides a few extra features; its wrappedCursorAs method can be used to get the underlying raw Cursor, if you want it.)

    Definition Classes
    ContentQuery
  30. def selectDefaultColumns : PositronicCursor

    Return a PositronicCursor for the values of the underlying resource's default set of columns, in records matching this query, respecting its order and limit.

    Return a PositronicCursor for the values of the underlying resource's default set of columns, in records matching this query, respecting its order and limit.

    (This is a wrapper around standard Android Cursors, which provides a few extra features; its wrappedCursorAs method can be used to get the underlying raw Cursor, if you want it.)

    Definition Classes
    ContentQuery
  31. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  32. def toString (): String

    Definition Classes
    ContentQuery → AnyRef → Any
  33. def update (assigns: (String, ContentValue)*): Int

    Updates each record matched by the query, setting values of the columns named by the Strings to each associated ContentValue.

    Updates each record matched by the query, setting values of the columns named by the Strings to each associated ContentValue. E.g.,

        qry.update( "status" -> "in_progress",
                    "urgency_level" -> 3 )
    

    using the same shorthand for pairs as is commonly used for Map constructors.

    Definition Classes
    ContentQuery
  34. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  35. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  36. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. def where (s: String, vals: ContentValue*): ContentProviderQuery[IdType]

    Returns a new ContentQuery with the same semantics as this one, except that it adds extra conditions.

    Returns a new ContentQuery with the same semantics as this one, except that it adds extra conditions. If the condition contains '?' placeholders, they will be replaced with ContentValue arguments, e.g.

        qry = otherQuery.where( "created_at > ? and status = ?",
                                myDate.getTime, "in_progress" )
    
    Definition Classes
    ContentProviderQueryContentQuery
  38. def whereEq (pairs: (String, ContentValue)*): ContentProviderQuery[IdType]

    Returns a new ContentQuery with the same semantics as this one, except that it adds the condition that each of the fields named by the Strings in the arguments should be equal to the associated ContentValue.

    Returns a new ContentQuery with the same semantics as this one, except that it adds the condition that each of the fields named by the Strings in the arguments should be equal to the associated ContentValue. E.g.,

        qry = otherQuery.where( "status" -> "in_progress",
                                "urgency_level" -> 3 )
    

    using the same shorthand for pairs as is commonly used for Map constructors.

    Definition Classes
    ContentProviderQueryContentQuery
  39. def withUpdatedWhere [T] (pairs: Seq[(String, ContentValue)])(handler: (String, Array[String]) ⇒ T): T

    Attributes
    protected
    Definition Classes
    ContentQuery
  40. def withUpdatedWhere [T] (s: String, arr: Array[ContentValue])(handler: (String, Array[String]) ⇒ T): T

    Attributes
    protected
    Definition Classes
    ContentQuery

Inherited from ContentQuery[Uri, IdType]

Inherited from AnyRef

Inherited from Any