IMapper Interface |
Namespace: Cassandra.Mapping
public interface IMapper : ICqlQueryAsyncClient, ICqlWriteAsyncClient, ICqlQueryClient, ICqlWriteClient
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.
To set the consistency level, timestamp and other batch options, use WithOptions(ActionCqlQueryOptions). Individual options for each query within the batch will be ignored. | |
CreateBatch(BatchType) |
Creates a new batch.
To set the consistency level, timestamp and other batch options, use WithOptions(ActionCqlQueryOptions). Individual options for each query within the batch will be ignored. | |
DeleteT |
Deletes the specified POCO from Cassandra using the provided execution profile.
| |
DeleteAsyncT |
Deletes the specified POCO from Cassandra using the provided execution profile.
| |
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(ICqlBatch) |
Executes the batch specfied synchronously.
| |
Execute(ICqlBatch, String) |
Executes the batch specified synchronously with the provided execution profile.
| |
ExecuteAsync(ICqlBatch) |
Executes the batch specified asynchronously.
| |
ExecuteAsync(ICqlBatch, String) |
Executes the batch specified asynchronously with the provided execution profile.
| |
ExecuteConditionalT(ICqlBatch) |
Executes a batch that contains a Lightweight transaction.
| |
ExecuteConditionalT(ICqlBatch, String) |
Executes a batch that contains a Lightweight transaction.
| |
ExecuteConditionalAsyncT(ICqlBatch) |
Executes a batch that contains a Lightweight transaction.
| |
ExecuteConditionalAsyncT(ICqlBatch, String) |
Executes a batch that contains a Lightweight transaction with the provided execution profile.
| |
InsertT(T, String, CqlQueryOptions) |
Inserts the specified POCO in Cassandra using the provided execution profile.
| |
InsertT(T, String, Boolean, CqlQueryOptions) |
Inserts the specified POCO in Cassandra using the provided execution profile.
| |
InsertT(T, String, Boolean, NullableInt32, CqlQueryOptions) |
Inserts the specified POCO in Cassandra using the provided execution profile.
| |
InsertAsyncT(T, String, CqlQueryOptions) |
Inserts the specified POCO in Cassandra using the provided execution profile.
| |
InsertAsyncT(T, String, Boolean, CqlQueryOptions) |
Inserts the specified POCO in Cassandra using the provided execution profile.
| |
InsertAsyncT(T, String, Boolean, NullableInt32, CqlQueryOptions) |
Inserts the specified POCO in Cassandra using the provided execution profile.
| |
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, String, CqlQueryOptions) |
Inserts the specified POCO in Cassandra, if not exists, with the provided execution profile.
Returns information whether it was applied or not. If it was not applied, it returns details of the existing values. | |
InsertIfNotExistsT(T, Boolean, NullableInt32, CqlQueryOptions) |
Inserts the specified POCO in Cassandra, if not exists.
| |
InsertIfNotExistsT(T, String, Boolean, CqlQueryOptions) |
Inserts the specified POCO in Cassandra, if not exists, with the provided execution profile.
| |
InsertIfNotExistsT(T, String, Boolean, NullableInt32, CqlQueryOptions) |
Inserts the specified POCO in Cassandra, if not exists, with the provided execution profile.
| |
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, String, CqlQueryOptions) |
Inserts the specified POCO in Cassandra, if not exists, with the provided execution profile.
Returns information whether it was applied or not. If it was not applied, it returns details of the existing values. | |
InsertIfNotExistsAsyncT(T, Boolean, NullableInt32, CqlQueryOptions) |
Inserts the specified POCO in Cassandra, if not exists.
| |
InsertIfNotExistsAsyncT(T, String, Boolean, CqlQueryOptions) |
Inserts the specified POCO in Cassandra, if not exists, with the provided execution profile.
| |
InsertIfNotExistsAsyncT(T, String, Boolean, NullableInt32, CqlQueryOptions) |
Inserts the specified POCO in Cassandra, if not exists, with the provided execution profile.
| |
UpdateT |
Updates the POCO specified in Cassandra using the provided execution profile.
| |
UpdateAsyncT |
Updates the POCO specified in Cassandra using the provided execution profile.
| |
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. |