Class 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 Detail

      • ActiveRecord

        public ActiveRecord()
    • 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:
        get in interface io.vertx.up.commune.Record
      • get

        public io.vertx.core.json.JsonObject get​(String... fields)
        Specified by:
        get in interface io.vertx.up.commune.Record
      • get

        public io.vertx.core.json.JsonObject get()
        Specified by:
        get in interface io.vertx.up.commune.Record
      • set

        public <V> io.vertx.up.commune.Record set​(String field,
                                                  V value)
        Specified by:
        set in interface io.vertx.up.commune.Record
      • attach

        public <V> io.vertx.up.commune.Record attach​(String field,
                                                     V value)
        Specified by:
        attach in interface io.vertx.up.commune.Record
      • set

        public io.vertx.up.commune.Record set​(io.vertx.core.json.JsonObject data)
        Specified by:
        set in interface io.vertx.up.commune.Record
      • add

        public <V> io.vertx.up.commune.Record add​(String field,
                                                  V value)
        Specified by:
        add in interface io.vertx.up.commune.Record
      • add

        public io.vertx.up.commune.Record add​(io.vertx.core.json.JsonObject data)
        Specified by:
        add in interface io.vertx.up.commune.Record
      • remove

        public io.vertx.up.commune.Record remove​(String field)
        Specified by:
        remove in interface io.vertx.up.commune.Record
      • remove

        public io.vertx.up.commune.Record remove​(String... fields)
        Specified by:
        remove in interface io.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:
        toJson in interface io.vertx.up.commune.Json
      • fromJson

        public void fromJson​(io.vertx.core.json.JsonObject json)
        Specified by:
        fromJson in interface io.vertx.up.commune.Json
      • size

        public int size()
      • declaredFields

        public abstract Set<String> declaredFields()
      • 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()