Mapper Class |
Namespace: Dse.Mapping
public class Mapper : IMapper, ICqlQueryAsyncClient, ICqlWriteAsyncClient, ICqlQueryClient, ICqlWriteClient
The Mapper type exposes the following members.
Name | Description | |
---|---|---|
Mapper(ISession) |
Creates a new instance of the mapper using Global mapping definitions.
| |
Mapper(ISession, MappingConfiguration) |
Creates a new instance of the mapper using the configuration provided
|
Name | Description | |
---|---|---|
ConvertCqlArgumentTValue, TDatabase | ||
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(Cql) |
Deletes from the table for the POCO type specified (T) using the CQL string specified. Prepends "DELETE FROM tablename " to the CQL statement you
specify, getting the tablename appropriately from the POCO Type T.
| |
DeleteT(String, Object) |
Deletes from the table for the POCO type specified (T) using the CQL string and bind variable values specified. Prepends "DELETE FROM tablname " to
the CQL string you specify, getting the tablename appropriately from the POCO Type T.
| |
DeleteT(T, CqlQueryOptions) |
Deletes the specified POCO from Cassandra.
| |
DeleteT(T, String, CqlQueryOptions) |
Deletes the specified POCO from Cassandra using the provided execution profile.
| |
DeleteAsyncT(Cql) |
Deletes from the table for the POCO type specified (T) using the CQL statement specified. Prepends "DELETE FROM tablename " to the CQL statement you
specify, getting the tablename appropriately from the POCO Type T.
| |
DeleteAsyncT(String, Object) |
Deletes from the table for the POCO type specified (T) using the CQL string and bind variable values specified. Prepends "DELETE FROM tablname " to
the CQL string you specify, getting the tablename appropriately from the POCO Type T.
| |
DeleteAsyncT(T, CqlQueryOptions) |
Deletes the specified POCO from Cassandra.
| |
DeleteAsyncT(T, String, CqlQueryOptions) |
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(Cql) |
Executes the arbitrary CQL statement specified.
| |
Execute(ICqlBatch) |
Executes the batch specfied synchronously.
| |
Execute(String, Object) |
Executes an arbitrary CQL string with the bind variable values specified.
| |
Execute(ICqlBatch, String) |
Executes the batch specified synchronously with the provided execution profile.
| |
ExecuteAsync(Cql) |
Executes an arbitrary CQL statement.
| |
ExecuteAsync(ICqlBatch) |
Executes the batch specified asynchronously.
| |
ExecuteAsync(String, Object) |
Executes an arbitrary CQL string with the bind variable values specified.
| |
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.
| |
FetchT(Cql) |
Gets a list of T from Cassandra using the CQL statement specified.
| |
FetchT(CqlQueryOptions) |
Gets a list of all T from Cassandra.
| |
FetchT(String, Object) |
Gets a list of T from Cassandra using the CQL statement and parameter values specified.
| |
FetchAsyncT(Cql) |
Gets a list of T from Cassandra using the CQL statement specified.
| |
FetchAsyncT(CqlQueryOptions) |
Gets a list of all T from Cassandra.
| |
FetchAsyncT(String, Object) |
Gets a list of T from Cassandra using the CQL statement and parameter values specified.
| |
FetchPageT(Cql) |
Gets a paged list of T results from Cassandra.
Suitable for manually page through all the results of a query.
| |
FetchPageT(CqlQueryOptions) |
Gets a paged list of T results from Cassandra using the CQL statement specified.
Suitable for manually page through all the results of a query.
| |
FetchPageT(Int32, Byte, String, Object) |
Gets a paged list of T results from Cassandra.
Suitable for manually page through all the results of a query.
| |
FetchPageAsyncT(Cql) |
Gets a paged list of T results from Cassandra.
Suitable for manually page through all the results of a query.
| |
FetchPageAsyncT(CqlQueryOptions) |
Gets a paged list of T results from Cassandra using the CQL statement specified.
Suitable for manually page through all the results of a query.
| |
FetchPageAsyncT(Int32, Byte, String, Object) |
Gets a paged list of T results from Cassandra.
Suitable for manually page through all the results of a query.
| |
FirstT(Cql) |
Gets the first T from Cassandra using the CQL statement specified. Will throw if no records are returned.
| |
FirstT(String, Object) |
Gets the first T from Cassandra using the CQL statement and parameter values specified. Will throw if no
records are returned.
| |
FirstAsyncT(Cql) |
Gets the first T from Cassandra using the CQL specified. Will throw if no records are returned.
| |
FirstAsyncT(String, Object) |
Gets the first T from Cassandra using the CQL statement and parameter values specified. Will throw if no
records are returned.
| |
FirstOrDefaultT(Cql) |
Gets the first T from Cassandra using the CQL statement specified. Will return the default value of T if
no records are found.
| |
FirstOrDefaultT(String, Object) |
Gets the first T from Cassandra using the CQL statement and parameter values specified. Will return the
default value of T is no records are found.
| |
FirstOrDefaultAsyncT(Cql) |
Gets the first T from Cassandra using the CQL specified. Will return the default value of T if no records
are found.
| |
FirstOrDefaultAsyncT(String, Object) |
Gets the first T from Cassandra using the CQL statement and parameter values specified. Will return the
default value of T is no records are found.
| |
InsertT(T, CqlQueryOptions) |
Inserts the specified POCO in Cassandra.
| |
InsertT(T, Boolean, CqlQueryOptions) |
Inserts the specified POCO in Cassandra.
| |
InsertT(T, String, CqlQueryOptions) |
Inserts the specified POCO in Cassandra using the provided execution profile.
| |
InsertT(T, Boolean, NullableInt32, CqlQueryOptions) |
Inserts the specified POCO in Cassandra.
| |
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, CqlQueryOptions) |
Inserts the specified POCO in Cassandra.
| |
InsertAsyncT(T, Boolean, CqlQueryOptions) |
Inserts the specified POCO in Cassandra.
| |
InsertAsyncT(T, String, CqlQueryOptions) |
Inserts the specified POCO in Cassandra using the provided execution profile.
| |
InsertAsyncT(T, Boolean, NullableInt32, CqlQueryOptions) |
Inserts the specified POCO in Cassandra.
| |
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.
| |
SingleT(Cql) |
Gets a single T from Cassandra using the CQL statement specified. Will throw if no records or more than
one record is returned.
| |
SingleT(String, Object) |
Gets a single T from Cassandra using the CQL statement and parameter values specified. Will throw if
no records or more than one record is returned.
| |
SingleAsyncT(Cql) |
Gets a single T from Cassandra using the CQL statement specified. Will throw if no records or more than one
record is returned.
| |
SingleAsyncT(String, Object) |
Gets a single T from Cassandra using the CQL statement and parameter values specified. Will throw if
no records or more than one record is returned.
| |
SingleOrDefaultT(Cql) |
Gets a single T from Cassandra using the CQL statement specified. Will return the default value of T if
no records are found. Will throw if more than one record is returned.
| |
SingleOrDefaultT(String, Object) |
Gets a single T from Cassandra using the CQL statement and parameter values specified. Will return the
default value of T if no records are found. Will throw if more than one record is returned.
| |
SingleOrDefaultAsyncT(Cql) |
Gets a single T from Cassandra using the CQL statement specified. Will return the default value of T if no
records are found. Will throw if more than one record is returned.
| |
SingleOrDefaultAsyncT(String, Object) |
Gets a single T from Cassandra using the CQL statement and parameter values specified. Will return the
default value of T if no records are found. Will throw if more than one record is returned.
| |
UpdateT(Cql) |
Updates the table for the POCO type specified (T) using the CQL statement specified. Prepends "UPDATE tablename" to the CQL statement you specify,
getting the tablename appropriately from the POCO Type T.
| |
UpdateT(String, Object) |
Updates the table for the POCO type specified (T) using the CQL string and bind variable values specified. Prepends "UPDATE tablename " to the CQL
string you specify, getting the tablename appropriately from the POCO Type T.
| |
UpdateT(T, CqlQueryOptions) |
Updates the POCO specified in Cassandra.
| |
UpdateT(T, String, CqlQueryOptions) |
Updates the POCO specified in Cassandra using the provided execution profile.
| |
UpdateAsyncT(Cql) |
Updates the table for the poco type specified (T) using the CQL statement specified. Prepends "UPDATE tablename" to the CQL statement you specify,
getting the tablename appropriately from the POCO Type T.
| |
UpdateAsyncT(String, Object) |
Updates the table for the POCO type specified (T) using the CQL string and bind variable values specified. Prepends "UPDATE tablename " to the CQL
string you specify, getting the tablename appropriately from the POCO Type T.
| |
UpdateAsyncT(T, CqlQueryOptions) |
Updates the POCO specified in Cassandra.
| |
UpdateAsyncT(T, String, CqlQueryOptions) |
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. |