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

io.zero88.jooqx.JsonRecord Maven / Gradle / Ivy

The newest version!
package io.zero88.jooqx;

import org.jooq.Table;
import org.jooq.TableLike;
import org.jooq.TableRecord;

import io.vertx.core.json.JsonObject;

import lombok.NonNull;

/**
 * Represents for an intermediate record between Vertx ResultSet and actual jOOQ Record and does support serialize to
 * {@code JsonObject}
 *
 * @param  Type of jOOQ record
 * @see TableRecord
 * @since 1.0.0
 */
public interface JsonRecord> extends TableRecord {

    JsonObject toJson();

    static > JsonRecord create(@NonNull TableLike table) {
        return new MiscImpl.JsonRecordImpl<>((Table) table);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy