Package io.vertx.up.commune
Class ActiveRecord
- java.lang.Object
-
- io.vertx.up.commune.ActiveRecord
-
- All Implemented Interfaces:
io.vertx.up.commune.Json,io.vertx.up.commune.Record,Serializable
public abstract class ActiveRecord extends Object implements io.vertx.up.commune.Record
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActiveRecord()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Default Methods Modifier and Type Method Description io.vertx.up.commune.Recordadd(io.vertx.core.json.JsonObject data)<V> io.vertx.up.commune.Recordadd(String field, V value)<V> io.vertx.up.commune.Recordattach(String field, V value)io.vertx.up.commune.RecordcreateCopy()io.vertx.up.commune.RecordcreateNew()io.vertx.up.commune.RecordcreateSubset(String... fields)protected io.vertx.core.json.JsonObjectdata()Set<String>declaredFields()Set<String>fields()voidfromJson(io.vertx.core.json.JsonObject json)io.vertx.core.json.JsonObjectget()<T> Tget(String field)io.vertx.core.json.JsonObjectget(String... fields)protected io.vertx.up.log.AnnalgetLogger()default Stringidentifier()booleanisEmpty()booleanisPersist()booleanisValue(String field)Set<String>joins()<ID extends Object>
IDkey()<ID extends Object>
voidkey(ID arg0)io.vertx.up.commune.Recordremove(String field)io.vertx.up.commune.Recordremove(String... fields)io.vertx.up.commune.Recordset(io.vertx.core.json.JsonObject data)<V> io.vertx.up.commune.Recordset(String field, V value)intsize()io.vertx.core.json.JsonObjecttoJson()ConcurrentMap<String,Class<?>>types()
-
-
-
Method Detail
-
getLogger
protected io.vertx.up.log.Annal getLogger()
-
data
protected io.vertx.core.json.JsonObject data()
-
isEmpty
public boolean isEmpty()
-
isPersist
public boolean isPersist()
-
isValue
public boolean isValue(String field)
-
get
public <T> T get(String field)
- Specified by:
getin interfaceio.vertx.up.commune.Record
-
get
public io.vertx.core.json.JsonObject get(String... fields)
- Specified by:
getin interfaceio.vertx.up.commune.Record
-
types
public ConcurrentMap<String,Class<?>> types()
-
get
public io.vertx.core.json.JsonObject get()
- Specified by:
getin interfaceio.vertx.up.commune.Record
-
set
public <V> io.vertx.up.commune.Record set(String field, V value)
- Specified by:
setin interfaceio.vertx.up.commune.Record
-
attach
public <V> io.vertx.up.commune.Record attach(String field, V value)
- Specified by:
attachin interfaceio.vertx.up.commune.Record
-
set
public io.vertx.up.commune.Record set(io.vertx.core.json.JsonObject data)
- Specified by:
setin interfaceio.vertx.up.commune.Record
-
add
public <V> io.vertx.up.commune.Record add(String field, V value)
- Specified by:
addin interfaceio.vertx.up.commune.Record
-
add
public io.vertx.up.commune.Record add(io.vertx.core.json.JsonObject data)
- Specified by:
addin interfaceio.vertx.up.commune.Record
-
remove
public io.vertx.up.commune.Record remove(String field)
- Specified by:
removein interfaceio.vertx.up.commune.Record
-
remove
public io.vertx.up.commune.Record remove(String... fields)
- Specified by:
removein interfaceio.vertx.up.commune.Record
-
createSubset
public io.vertx.up.commune.Record createSubset(String... fields)
-
createCopy
public io.vertx.up.commune.Record createCopy()
-
toJson
public io.vertx.core.json.JsonObject toJson()
- Specified by:
toJsonin interfaceio.vertx.up.commune.Json
-
fromJson
public void fromJson(io.vertx.core.json.JsonObject json)
- Specified by:
fromJsonin interfaceio.vertx.up.commune.Json
-
size
public int size()
-
identifier
public default String identifier()
-
key
public abstract <ID extends Object> ID key()
-
key
public abstract <ID extends Object> void key(ID arg0)
-
createNew
public abstract io.vertx.up.commune.Record createNew()
-
-