public abstract class Table<T> extends java.lang.Object implements ObjectMapper<java.util.Map<java.lang.String,java.lang.Object>,T>
Modifier | Constructor and Description |
---|---|
protected |
Table(java.lang.String table) |
Modifier and Type | Method and Description |
---|---|
protected RowCreator.Builder |
creator()
Get a new instance of RowCreator Builder
|
java.util.concurrent.CompletableFuture<java.lang.Boolean> |
delete(T t) |
protected RowDeleter.Builder |
deleter()
Get a new instance of RowDeleter Builder
|
protected RowEditor.Builder |
editor()
Get a new instance of RowEditor Builder
|
java.util.concurrent.CompletableFuture<java.util.List<T>> |
getAll()
Get all rows in this table
|
protected RowGetter.Builder |
getter()
Get a new instance of RowGetter Builder
|
java.util.concurrent.CompletableFuture<java.lang.Boolean> |
save(T t)
Save a type to the table
|
protected java.util.Map<java.lang.String,java.lang.Object> |
saveLocation(T t)
Optionally configure which columns will be checked when using #save.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dataToType, typeToData
protected java.util.Map<java.lang.String,java.lang.Object> saveLocation(T t)
t
- Typeprotected RowCreator.Builder creator()
protected RowGetter.Builder getter()
protected RowEditor.Builder editor()
protected RowDeleter.Builder deleter()
public java.util.concurrent.CompletableFuture<java.util.List<T>> getAll()
public java.util.concurrent.CompletableFuture<java.lang.Boolean> save(T t)
t
- Typepublic java.util.concurrent.CompletableFuture<java.lang.Boolean> delete(T t)