Search in sources :

Example 1 with ClientPreparedQuery

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

Example 2 with ClientPreparedQuery

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

Example 3 with ClientPreparedQuery

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();
    }
}
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