Search in sources :

Example 1 with ClientPreparedQueryBindings

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();
    }
}
Also used : ClientPreparedQueryBindings(com.mysql.cj.ClientPreparedQueryBindings) ClientPreparedQuery(com.mysql.cj.ClientPreparedQuery) PreparedQuery(com.mysql.cj.PreparedQuery)

Example 2 with ClientPreparedQueryBindings

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();
    }
}
Also used : ClientPreparedQueryBindings(com.mysql.cj.ClientPreparedQueryBindings) ClientPreparedQuery(com.mysql.cj.ClientPreparedQuery) PreparedQuery(com.mysql.cj.PreparedQuery)

Example 3 with ClientPreparedQueryBindings

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();
    }
}
Also used : ClientPreparedQueryBindings(com.mysql.cj.ClientPreparedQueryBindings) ClientPreparedQuery(com.mysql.cj.ClientPreparedQuery) PreparedQuery(com.mysql.cj.PreparedQuery)

Aggregations

ClientPreparedQuery (com.mysql.cj.ClientPreparedQuery)3 ClientPreparedQueryBindings (com.mysql.cj.ClientPreparedQueryBindings)3 PreparedQuery (com.mysql.cj.PreparedQuery)3