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

io.vertx.up.uca.jooq.JqEdge Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
package io.vertx.up.uca.jooq;

import io.vertx.up.util.Ut;

/*
 * Helper for join
 */
class JqEdge {
    private transient String fromTable;
    private transient String fromField;
    private transient String toTable;
    private transient String toField;

    JqEdge() {
    }

    void setFrom(final String table, final String field) {
        this.fromTable = table;
        this.fromField = Ut.notNil(field) ? field : "key";
    }

    void setTo(final String table, final String field) {
        this.toTable = table;
        this.toField = Ut.notNil(field) ? field : "key";
    }

    String getFromTable() {
        return this.fromTable;
    }

    String getFromField() {
        return this.fromField;
    }

    String getToTable() {
        return this.toTable;
    }

    String getToField() {
        return this.toField;
    }

    @Override
    public String toString() {
        return "JqEdge{" +
            "fromTable='" + this.fromTable + '\'' +
            ", fromField='" + this.fromField + '\'' +
            ", toTable='" + this.toTable + '\'' +
            ", toField='" + this.toField + '\'' +
            '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy