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

io.kestra.jdbc.JdbcTableConfig Maven / Gradle / Ivy

There is a newer version: 0.19.11
Show newest version
package io.kestra.jdbc;

import io.micronaut.context.annotation.EachProperty;
import io.micronaut.context.annotation.Parameter;
import io.micronaut.core.annotation.Nullable;
import jakarta.validation.constraints.NotNull;

@EachProperty("kestra.jdbc.tables")
public class JdbcTableConfig {
    private final String name;
    private final Class cls;
    private final String table;

    public JdbcTableConfig(
        @Parameter String name,
        @Nullable Class cls,
        @NotNull String table
    ) {
        this.name = name;
        this.cls = cls;
        this.table = table;
    }

    public String name() {
        return this.name;
    }

    public Class cls() {
        return this.cls;
    }

    public String table() {
        return this.table;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy