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

com.axibase.tsd.driver.jdbc.converter.AtsdSqlConverterFactory Maven / Gradle / Ivy

There is a newer version: 1.4.11
Show newest version
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