use of com.mysql.cj.ClientPreparedQueryBindings in project ABC by RuiPinto96274.
the class ClientPreparedStatement method initializeFromParseInfo.
@SuppressWarnings("unchecked")
private void initializeFromParseInfo() throws SQLException {
synchronized (checkClosed().getConnectionMutex()) {
int parameterCount = getParseInfo().getStaticSql().length - 1;
((PreparedQuery<?>) this.query).setParameterCount(parameterCount);
((PreparedQuery<ClientPreparedQueryBindings>) this.query).setQueryBindings(new ClientPreparedQueryBindings(parameterCount, this.session));
((ClientPreparedQuery) this.query).getQueryBindings().setLoadDataQuery(getParseInfo().isLoadData());
clearParameters();
}
}
use of com.mysql.cj.ClientPreparedQueryBindings in project aws-mysql-jdbc by awslabs.
the class ClientPreparedStatement method initializeFromParseInfo.
@SuppressWarnings("unchecked")
private void initializeFromParseInfo() throws SQLException {
synchronized (checkClosed().getConnectionMutex()) {
int parameterCount = getParseInfo().getStaticSql().length - 1;
((PreparedQuery<?>) this.query).setParameterCount(parameterCount);
((PreparedQuery<ClientPreparedQueryBindings>) this.query).setQueryBindings(new ClientPreparedQueryBindings(parameterCount, this.session));
((ClientPreparedQuery) this.query).getQueryBindings().setLoadDataQuery(getParseInfo().isLoadData());
clearParameters();
}
}
use of com.mysql.cj.ClientPreparedQueryBindings in project JavaSegundasQuintas by ecteruel.
the class ClientPreparedStatement method initializeFromParseInfo.
@SuppressWarnings("unchecked")
private void initializeFromParseInfo() throws SQLException {
synchronized (checkClosed().getConnectionMutex()) {
int parameterCount = getParseInfo().getStaticSql().length - 1;
((PreparedQuery<?>) this.query).setParameterCount(parameterCount);
((PreparedQuery<ClientPreparedQueryBindings>) this.query).setQueryBindings(new ClientPreparedQueryBindings(parameterCount, this.session));
((ClientPreparedQuery) this.query).getQueryBindings().setLoadDataQuery(getParseInfo().isLoadData());
clearParameters();
}
}
Aggregations