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(Object delegate,
TypeArg<T> typeArg_0) |
Modifier and Type | Method and Description |
---|---|
void |
delete(List<Object> primaryKey,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Asynchronous delete method based on the column values of the primary key.
|
boolean |
equals(Object o) |
void |
get(List<Object> primaryKey,
io.vertx.core.Handler<io.vertx.core.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) |
rx.Single<Void> |
rxDelete(List<Object> primaryKey)
Asynchronous delete method based on the column values of the primary key.
|
rx.Single<T> |
rxGet(List<Object> primaryKey)
Asynchronous get method based on the column values of the primary key.
|
rx.Single<Void> |
rxSave(T entity)
Asynchronous save method.
|
void |
save(T entity,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Asynchronous save method.
|
String |
toString() |
public io.vertx.cassandra.Mapper getDelegate()
public void save(T entity, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
entity
- object to be stored in databasehandler
- result handlerpublic rx.Single<Void> rxSave(T entity)
entity
- object to be stored in databasepublic void delete(List<Object> primaryKey, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
primaryKey
- primary key used to find row to deletehandler
- result handlerpublic rx.Single<Void> rxDelete(List<Object> primaryKey)
primaryKey
- primary key used to find row to deletepublic void get(List<Object> primaryKey, io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)
primaryKey
- primary key used to retrieve rowhandler
- result handlerpublic rx.Single<T> rxGet(List<Object> primaryKey)
primaryKey
- primary key used to retrieve rowpublic static <T> Mapper<T> newInstance(io.vertx.cassandra.Mapper arg)
Copyright © 2022 Eclipse. All rights reserved.