All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.sinri.keel.mysql.matrix.SimpleResultRow Maven / Gradle / Ivy

Go to download

A website framework with VERT.X for ex-PHP-ers, exactly Ark Framework Users.

The newest version!
package io.github.sinri.keel.mysql.matrix;

import io.vertx.core.json.JsonObject;

import javax.annotation.Nonnull;

/**
 * @since 1.10 Designed for a wrapper of each row in ResultMatrix
 * @since 2.0 renamed from AbstractTableRow
 * @since 2.7 renamed from AbstractRow
 */
public class SimpleResultRow implements ResultRow {
    private JsonObject row;

    public SimpleResultRow(@Nonnull JsonObject tableRow) {
        this.reloadDataFromJsonObject(tableRow);
    }

    @Override
    public final @Nonnull JsonObject toJsonObject() {
        return row;
    }

    @Override
    public final @Nonnull ResultRow reloadDataFromJsonObject(@Nonnull JsonObject jsonObject) {
        this.row = jsonObject;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy