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.
| |
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.
| |
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. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
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.
| |
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.
| |
ExecuteConditionalT |
Executes a batch that contains a Lightweight transaction.
| |
ExecuteConditionalAsyncT |
Executes a batch that contains a Lightweight transaction.
| |
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.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InsertT(T, CqlQueryOptions) |
Inserts the specified POCO in Cassandra.
| |
InsertT(T, Boolean, CqlQueryOptions) |
Inserts the specified POCO in Cassandra.
| |
InsertT(T, Boolean, NullableInt32, CqlQueryOptions) |
Inserts the specified POCO in Cassandra.
| |
InsertAsyncT(T, CqlQueryOptions) |
Inserts the specified POCO in Cassandra.
| |
InsertAsyncT(T, Boolean, CqlQueryOptions) |
Inserts the specified POCO in Cassandra.
| |
InsertAsyncT(T, Boolean, NullableInt32, CqlQueryOptions) |
Inserts the specified POCO in Cassandra.
| |
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.
| |
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.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
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.
| |
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.
| |
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. |