com.axibase.tsd.driver.jdbc.converter.AtsdSqlConverterFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atsd-jdbc Show documentation
Show all versions of atsd-jdbc Show documentation
JDBC driver for SQL API using
package com.axibase.tsd.driver.jdbc.converter;
import org.apache.calcite.avatica.Meta.StatementType;
public final class AtsdSqlConverterFactory {
private AtsdSqlConverterFactory() {
}
public static AtsdSqlConverter getConverter(StatementType statementType, boolean timestampTz) {
switch (statementType) {
case INSERT: return new AtsdSqlInsertConverter(timestampTz);
case UPDATE: return new AtsdSqlUpdateConverter(timestampTz);
default: throw new IllegalArgumentException("Illegal statement type: " + statementType);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy