use of com.mysql.cj.ClientPreparedQuery 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.ClientPreparedQuery 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.ClientPreparedQuery 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