org.positronicnet.orm

BatchScopeAction

class BatchScopeAction extends BatchAction with ScopeBatchTranslation

A subclass of BatchAction that allows callers to batch up Save and Delete operations in the ORM. You can still also add raw ContentProviderOperations, including those of other types, most notably "assert".

Note that a Save operation will translate into either an insert or update, as appropriate.

Note also that if you add a Save of, say, an unsaved RawContact to a batch, and then add Saves of ContactData objects which refer to the RawContact, references to the ID of the RawContact will automatically be turned into back-references. This allows a collection of related objects to be inserted in a single batch, per recommended best practice for dealing with Contacts (and probably other things).

Linear Supertypes
ScopeBatchTranslation, BatchAction, ContentResolverAction, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. BatchScopeAction
  2. ScopeBatchTranslation
  3. BatchAction
  4. ContentResolverAction
  5. AnyRef
  6. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BatchScopeAction (authority: 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 add (op: org.positronicnet.orm.ScopeAction[_]): Unit

    Definition Classes
    ScopeBatchTranslation
  7. def add (op: ContentProviderOperation): Boolean

    Add an operation to this batch

    Add an operation to this batch

    Definition Classes
    BatchAction
  8. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  9. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def eq (arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  12. def finalize (): Unit

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

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

    Definition Classes
    AnyRef → Any
  15. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  16. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  19. def onFailure (thunk: ⇒ Unit): BatchAction

    Fluid interface for adding a failure callback to this batch operation.

    Fluid interface for adding a failure callback to this batch operation. The thrown exception is logged.

    Definition Classes
    BatchAction
  20. def onSuccess (thunk: ⇒ Unit): BatchAction

    Fluid interface for adding a success callback to this batch operation.

    Fluid interface for adding a success callback to this batch operation.

    Definition Classes
    BatchAction
  21. def synchronized [T0] (arg0: ⇒ T0): T0

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

    Definition Classes
    AnyRef → Any
  23. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. def withSuccessfulResults (callback: (Array[ContentProviderResult]) ⇒ Unit): BatchAction

    Fluid interface for adding a success callback to this batch operation.

    Fluid interface for adding a success callback to this batch operation. The argument is the returned array of ContentProviderResults.

    Definition Classes
    BatchAction
  27. def withThrownException (callback: (Exception) ⇒ Unit): BatchAction

    Fluid interface for adding a failure callback to this batch operation.

    Fluid interface for adding a failure callback to this batch operation. The argument is the exception that was thrown; this will typically be either an OperationApplicationException or a RemoteException.

    The thrown exception will have already been logged whatever else the callback decides to do with it.

    Definition Classes
    BatchAction

Inherited from ScopeBatchTranslation

Inherited from BatchAction

Inherited from ContentResolverAction

Inherited from AnyRef

Inherited from Any