PROBLEMA NA ATUALIZAÇÃO PI JDBC 2017-2018
Problemas encontrados na atualização da versão 2017 para 2018.
Quando a biblioteca de conexão tenta acessar tal funcionalidade ocorre a excessão "PreparedStatement#addBatch() is not implemented yet".
Problema similar ocorre com o uso da opção setReadOnly que deixou de ser suportada na versão 2018 do driver. Quando
o método abaixo é invocado uma excessão é lançada o que causa problemas na nossa implementação. Talvez uma solução
seja adicionar uma mensagem de warning como a realizada no método setTransactionIsolation.
public void setReadOnly(boolean readOnly) throws SQLException {
throw new SQLFeatureNotSupportedException("setReadOnly() is not supported by PI JDBC Driver.");
}
public void setTransactionIsolation(int level) throws SQLException {
if (this.isClosed()) {
throw new SQLException("Connection is closed.");
} else if (level != 1 && level != 2 && level != 4 && level != 8) {
throw new SQLException("Invalid level.");
} else {
if (this.getLogger() != null) {
this.getLogger().warning("Transactions are not supported by PI JDBC Driver.");
}
}
}

This issue is captured in the following article: https://customers.osisoft.com/s/knowledgearticle?knowledgeArticleUrl=9082033616497176861-131099