public class Mapper<T> extends Object
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static TypeArg<Mapper> |
__TYPE_ARG |
TypeArg<T> |
__typeArg_0 |
| Constructor and Description |
|---|
Mapper(io.vertx.cassandra.Mapper delegate) |
Mapper(io.vertx.cassandra.Mapper delegate,
TypeArg<T> typeArg_0) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(List<Object> primaryKey,
Handler<AsyncResult<Void>> handler)
Asynchronous delete method based on the column values of the primary key.
|
boolean |
equals(Object o) |
void |
get(List<Object> primaryKey,
Handler<AsyncResult<T>> handler)
Asynchronous get method based on the column values of the primary key.
|
io.vertx.cassandra.Mapper |
getDelegate() |
int |
hashCode() |
static <T> Mapper<T> |
newInstance(io.vertx.cassandra.Mapper arg) |
static <T> Mapper<T> |
newInstance(io.vertx.cassandra.Mapper arg,
TypeArg<T> __typeArg_T) |
Completable |
rxDelete(List<Object> primaryKey)
Asynchronous delete method based on the column values of the primary key.
|
Single<T> |
rxGet(List<Object> primaryKey)
Asynchronous get method based on the column values of the primary key.
|
Completable |
rxSave(T entity)
Asynchronous save method.
|
void |
save(T entity,
Handler<AsyncResult<Void>> handler)
Asynchronous save method.
|
String |
toString() |
public io.vertx.cassandra.Mapper getDelegate()
public void save(T entity, Handler<AsyncResult<Void>> handler)
entity - object to be stored in databasehandler - result handlerpublic Completable rxSave(T entity)
entity - object to be stored in databasepublic void delete(List<Object> primaryKey, Handler<AsyncResult<Void>> handler)
primaryKey - primary key used to find row to deletehandler - result handlerpublic Completable rxDelete(List<Object> primaryKey)
primaryKey - primary key used to find row to deletepublic void get(List<Object> primaryKey, Handler<AsyncResult<T>> handler)
primaryKey - primary key used to retrieve rowhandler - result handlerpublic Single<T> rxGet(List<Object> primaryKey)
primaryKey - primary key used to retrieve rowpublic static <T> Mapper<T> newInstance(io.vertx.cassandra.Mapper arg)
Copyright © 2020. All rights reserved.