UNPKG

nosqldb-oraclejs

Version:

Oracle NoSQL Database JS Driver

522 lines (172 loc) 11.5 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Class: Operation</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Class: Operation</h1> <section> <header> <h2><span class="attribs"><span class="type-signature"></span></span>Operation<span class="signature">(tableName, type, row, returnChoice, abortIfUnsuccessful, matchVersion)</span><span class="type-signature"></span></h2> <div class="class-description">Operation</div> </header> <article> <div class="container-overview"> <h2>Constructor</h2> <h4 class="name" id="Operation"><span class="type-signature"></span>new Operation<span class="signature">(tableName, type, row, returnChoice, abortIfUnsuccessful, matchVersion)</span><span class="type-signature"></span></h4> <div class="description"> Defines an update operation to be passed to Store.executeOperations(). </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>tableName</code></td> <td class="type"> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>type</code></td> <td class="type"> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>row</code></td> <td class="type"> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>returnChoice</code></td> <td class="type"> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>abortIfUnsuccessful</code></td> <td class="type"> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>matchVersion</code></td> <td class="type"> </td> <td class="description last"></td> </tr> </tbody> </table> <h5 class="subsection-title">Properties:</h5> <table class="props"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Attributes</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>tableName</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="attributes"> </td> <td class="description last">The table name on which this operation is executed on.</td> </tr> <tr> <td class="name"><code>type</code></td> <td class="type"> <span class="param-type">OperationType</span> </td> <td class="attributes"> </td> <td class="description last">Determines which update operation to be executed.</td> </tr> <tr> <td class="name"><code>row</code></td> <td class="type"> <span class="param-type"><a href="Row.html">Row</a></span> </td> <td class="attributes"> </td> <td class="description last">For put operations it represents the row to be stored. For delete operations it represents the key of the row to be deleted.</td> </tr> <tr> <td class="name"><code>returnChoice</code></td> <td class="type"> <span class="param-type"><a href="ReturnChoice.html">ReturnChoice</a></span> </td> <td class="attributes"> </td> <td class="description last">Specifies whether to return the row value, version, both or neither.</td> </tr> <tr> <td class="name"><code>abortIfUnsuccessful</code></td> <td class="type"> <span class="param-type">bool</span> </td> <td class="attributes"> </td> <td class="description last">If true, this operation should cause the execute transaction to abort when the operation fails, where failure is the condition when the delete or put method returns null.</td> </tr> <tr> <td class="name"><code>matchVersion</code></td> <td class="type"> <span class="param-type"><a href="Version.html">Version</a></span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last">The version to be matched for: PUT_IF_VERSION or DELETE_IF_VERSION.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="types.js.html">types.js</a>, <a href="types.js.html#line439">line 439</a> </li></ul></dd> </dl> </div> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Configuration.html">Configuration</a></li><li><a href="ConnectionError.html">ConnectionError</a></li><li><a href="Consistency.html">Consistency</a></li><li><a href="DeleteResult.html">DeleteResult</a></li><li><a href="Durability.html">Durability</a></li><li><a href="ExecutionFuture.html">ExecutionFuture</a></li><li><a href="ExecutionId.html">ExecutionId</a></li><li><a href="FieldRange.html">FieldRange</a></li><li><a href="GetResult.html">GetResult</a></li><li><a href="Iterator.html">Iterator</a></li><li><a href="IteratorError.html">IteratorError</a></li><li><a href="KeyPair.html">KeyPair</a></li><li><a href="KeyPairResult.html">KeyPairResult</a></li><li><a href="Logger.html">Logger</a></li><li><a href="ModuleInfo.html">ModuleInfo</a></li><li><a href="MultiGetKeyResult.html">MultiGetKeyResult</a></li><li><a href="MultiGetResult.html">MultiGetResult</a></li><li><a href="NoSQLDBError.html">NoSQLDBError</a></li><li><a href="Operation.html">Operation</a></li><li><a href="ParameterError.html">ParameterError</a></li><li><a href="ProxyConfiguration.html">ProxyConfiguration</a></li><li><a href="PutResult.html">PutResult</a></li><li><a href="Readable.html">Readable</a></li><li><a href="ReadOptions.html">ReadOptions</a></li><li><a href="ReplicaAckPolicy.html">ReplicaAckPolicy</a></li><li><a href="ReturnChoice.html">ReturnChoice</a></li><li><a href="ReturnKey.html">ReturnKey</a></li><li><a href="ReturnRow.html">ReturnRow</a></li><li><a href="Row.html">Row</a></li><li><a href="SimpleConsistency.html">SimpleConsistency</a></li><li><a href="StatementResult.html">StatementResult</a></li><li><a href="Store.html">Store</a></li><li><a href="StoreError.html">StoreError</a></li><li><a href="SyncPolicy.html">SyncPolicy</a></li><li><a href="TimeConsistency.html">TimeConsistency</a></li><li><a href="TimeToLive.html">TimeToLive</a></li><li><a href="UpdateResult.html">UpdateResult</a></li><li><a href="VerifyProperties.html">VerifyProperties</a></li><li><a href="Version.html">Version</a></li><li><a href="VersionConsistency.html">VersionConsistency</a></li><li><a href="WriteOptions.html">WriteOptions</a></li></ul><h3>Events</h3><ul><li><a href="Iterator.html#event:close">close</a></li><li><a href="Iterator.html#event:data">data</a></li><li><a href="Iterator.html#event:done">done</a></li><li><a href="Iterator.html#event:error">error</a></li><li><a href="Readable.html#event:data">data</a></li><li><a href="Readable.html#event:end">end</a></li><li><a href="Readable.html#event:error">error</a></li><li><a href="Store.html#event:close">close</a></li><li><a href="Store.html#event:error">error</a></li><li><a href="Store.html#event:open">open</a></li></ul><h3>Global</h3><ul><li><a href="global.html#AuthenticationFailureException">AuthenticationFailureException</a></li><li><a href="global.html#AuthenticationRequiredException">AuthenticationRequiredException</a></li><li><a href="global.html#ConsistencyException">ConsistencyException</a></li><li><a href="global.html#DurabilityException">DurabilityException</a></li><li><a href="global.html#FaultException">FaultException</a></li><li><a href="global.html#IllegalArgumentException">IllegalArgumentException</a></li><li><a href="global.html#readConfiguration">readConfiguration</a></li><li><a href="global.html#RequestLimitException">RequestLimitException</a></li><li><a href="global.html#RequestTimeoutException">RequestTimeoutException</a></li><li><a href="global.html#startProxy">startProxy</a></li><li><a href="global.html#stopProxy">stopProxy</a></li><li><a href="global.html#TableOpExecutionException">TableOpExecutionException</a></li><li><a href="global.html#TimeUnit">TimeUnit</a></li><li><a href="global.html#UnauthorizedException">UnauthorizedException</a></li><li><a href="global.html#UnknownException">UnknownException</a></li></ul> </nav> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.3</a> on Thu Aug 01 2019 14:19:18 GMT+0530 (India Standard Time) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>