IMapper Methods |
The IMapper type exposes the following members.
Name | Description | |
---|---|---|
ConvertCqlArgumentTValue, TDatabase |
Allows you to convert an argument/bind variable value being used in a CQL statement using the same converters that are being used by the client
internally, including any user-defined conversions if you configured them. Will convert a value of Type TValue to a value of
Type TDatabase or throw an InvalidOperationException if no converter is available.
| |
CreateBatch |
Creates a new batch.
| |
CreateBatch(BatchType) |
Creates a new batch.
| |
DeleteIfT(Cql) |
Deletes from the table for the POCO type specified (T) using the Cql query specified.
Prepends "DELETE FROM tablename " to the CQL statement you specify, getting the tablename appropriately from the POCO Type T.
Returns information whether it was applied or not. If it was not applied, it returns details of the existing values. | |
DeleteIfT(String, Object) |
Deletes from the table for the POCO type specified (T) using the CQL string specified and query parameters specified.
Prepends "DELETE FROM tablename " to the CQL statement you specify, getting the tablename appropriately from the POCO Type T.
Returns information whether it was applied or not. If it was not applied, it returns details of the existing values. | |
DeleteIfAsyncT(Cql) |
Deletes from the table for the POCO type specified (T) using the Cql query specified.
Prepends "DELETE FROM tablename " to the CQL statement you specify, getting the tablename appropriately from the POCO Type T.
Returns information whether it was applied or not. If it was not applied, it returns details of the existing values. | |
DeleteIfAsyncT(String, Object) |
Deletes from the table for the POCO type specified (T) using the CQL string specified and query parameters specified.
Prepends "DELETE FROM tablename " to the CQL statement you specify, getting the tablename appropriately from the POCO Type T.
Returns information whether it was applied or not. If it was not applied, it returns details of the existing values. | |
Execute |
Executes the batch specfied synchronously.
| |
ExecuteAsync |
Executes the batch specified asynchronously.
| |
ExecuteConditionalT |
Executes a batch that contains a Lightweight transaction.
| |
ExecuteConditionalAsyncT |
Executes a batch that contains a Lightweight transaction.
| |
InsertIfNotExistsT(T, CqlQueryOptions) |
Inserts the specified POCO in Cassandra, if not exists.
Returns information whether it was applied or not. If it was not applied, it returns details of the existing values. | |
InsertIfNotExistsT(T, Boolean, CqlQueryOptions) |
Inserts the specified POCO in Cassandra, if not exists.
| |
InsertIfNotExistsT(T, Boolean, NullableInt32, CqlQueryOptions) |
Inserts the specified POCO in Cassandra, if not exists.
| |
InsertIfNotExistsAsyncT(T, CqlQueryOptions) |
Inserts the specified POCO in Cassandra, if not exists.
Returns information whether it was applied or not. If it was not applied, it returns details of the existing values. | |
InsertIfNotExistsAsyncT(T, Boolean, CqlQueryOptions) |
Inserts the specified POCO in Cassandra, if not exists.
| |
InsertIfNotExistsAsyncT(T, Boolean, NullableInt32, CqlQueryOptions) |
Inserts the specified POCO in Cassandra, if not exists.
| |
UpdateIfT(Cql) |
Updates the table for the poco type specified (T) using the CQL statement specified, using lightweight transactions.
Prepends "UPDATE tablename" to the CQL statement you specify, getting the table name appropriately from the POCO Type T.
Returns information whether it was applied or not. If it was not applied, it returns details of the existing values. | |
UpdateIfT(String, Object) |
Updates the table for the poco type specified (T) using the CQL statement specified, using lightweight transactions.
Prepends "UPDATE tablename" to the CQL statement you specify, getting the table name appropriately from the POCO Type T.
Returns information whether it was applied or not. If it was not applied, it returns details of the existing values. | |
UpdateIfAsyncT(Cql) |
Updates the table for the poco type specified (T) using the CQL statement specified, using lightweight transactions.
Prepends "UPDATE tablename" to the CQL statement you specify, getting the table name appropriately from the POCO Type T.
Returns information whether it was applied or not. If it was not applied, it returns details of the existing values. | |
UpdateIfAsyncT(String, Object) |
Updates the table for the poco type specified (T) using the CQL statement specified, using lightweight transactions.
Prepends "UPDATE tablename" to the CQL statement you specify, getting the table name appropriately from the POCO Type T.
Returns information whether it was applied or not. If it was not applied, it returns details of the existing values. |