io.kestra.plugin.jdbc.JdbcStatementInterface Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugin-jdbc Show documentation
Show all versions of plugin-jdbc Show documentation
Abstract JDBC plugin for Kestra
package io.kestra.plugin.jdbc;
import io.kestra.core.models.annotations.PluginProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.ZoneId;
import java.util.TimeZone;
public interface JdbcStatementInterface extends JdbcConnectionInterface {
@Schema(
title = "The time zone id to use for date/time manipulation. Default value is the worker's default time zone id."
)
@PluginProperty(dynamic = false)
String getTimeZoneId();
default ZoneId zoneId() {
if (this.getTimeZoneId() != null) {
return ZoneId.of(this.getTimeZoneId());
}
return TimeZone.getDefault().toZoneId();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy