class UpdateProcessor extends AnyRef
- Alphabetic
- By Inheritance
- UpdateProcessor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new UpdateProcessor(context: DynamicsContext)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- val context: DynamicsContext
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
findIdAndMkBody(pkcol: String, j: Dictionary[String]): Option[(String, String)]
Returning None means the pk was not found in the js object.
Returning None means the pk was not found in the js object. Only handles single value PKs. Removes pk if found. Mutates input object. Body is returned as a string via
JSON.stringify
. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mkBatch(inputs: Vector[InputContext[Object]], pkcol: String, mkRequest: (String, String) ⇒ HttpRequest[IO]): IO[String]
Run the updates but in batch mode.
Run the updates but in batch mode. (id,body) => HttpRequest.
-
def
mkBatchFromRequests(requests: Vector[(HttpRequest[IO], String)], useChangeSet: Boolean = true): IO[String]
Run the updates but in batch mode.
Run the updates but in batch mode. Inputs are: (request, source identifier)
-
def
mkOne(input: InputContext[Object], pkcol: String, update: (String, String) ⇒ IO[String]): IO[String]
Run an update based on an input js.Object record and print a result.
Run an update based on an input js.Object record and print a result. This function looks or the PK in the record, extracts it, removes it from the record, stringifies the resulting object as the body then calls the update function provided by the caller.
- pkcol
PK attribute name in input record. Must be a single valued PK.
- update
Function to perform the update: (id, body) => F[message body result as string].
- returns
F[String] that can represent update success or failure.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
updateOneResultReporter(source: String, id: String): PartialFunction[Either[Throwable, String], String]
Report out on an update attempt.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )