Java Code Examples for com.mysql.cj.jdbc.JdbcPreparedStatement

The following examples show how to use com.mysql.cj.jdbc.JdbcPreparedStatement. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: quarkus   Source File: JDBCMySQLProcessor.java    License: Apache License 2.0 6 votes vote down vote up
@BuildStep
List<NativeImageProxyDefinitionBuildItem> registerProxies() {
    List<NativeImageProxyDefinitionBuildItem> proxies = new ArrayList<>();
    proxies.add(new NativeImageProxyDefinitionBuildItem(JdbcConnection.class.getName()));
    proxies.add(new NativeImageProxyDefinitionBuildItem(MysqlConnection.class.getName()));
    proxies.add(new NativeImageProxyDefinitionBuildItem(Statement.class.getName()));
    proxies.add(new NativeImageProxyDefinitionBuildItem(AutoCloseable.class.getName()));
    proxies.add(new NativeImageProxyDefinitionBuildItem(JdbcStatement.class.getName()));
    proxies.add(new NativeImageProxyDefinitionBuildItem(Connection.class.getName()));
    proxies.add(new NativeImageProxyDefinitionBuildItem(ResultSet.class.getName()));
    proxies.add(
            new NativeImageProxyDefinitionBuildItem(JdbcPreparedStatement.class.getName(), JdbcStatement.class.getName()));
    proxies.add(new NativeImageProxyDefinitionBuildItem(JdbcPropertySet.class.getName(), PropertySet.class.getName(),
            Serializable.class.getName()));
    proxies.add(
            new NativeImageProxyDefinitionBuildItem(Resultset.class.getName(), ResultSetInternalMethods.class.getName()));
    proxies.add(new NativeImageProxyDefinitionBuildItem(LoadBalancedConnection.class.getName(),
            JdbcConnection.class.getName()));
    proxies.add(
            new NativeImageProxyDefinitionBuildItem(ReplicationConnection.class.getName(), JdbcConnection.class.getName()));
    proxies.add(
            new NativeImageProxyDefinitionBuildItem(ResultSetInternalMethods.class.getName(),
                    WarningListener.class.getName(), Resultset.class.getName()));
    return proxies;
}
 
Example 2
Source Project: lams   Source File: ResultSetImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public synchronized void setStatementUsedForFetchingRows(JdbcPreparedStatement stmt) {
    try {
        synchronized (checkClosed().getConnectionMutex()) {
            this.statementUsedForFetchingRows = stmt;
        }
    } catch (SQLException e) {
        throw new RuntimeException(e); // TODO: FIXME: Need to evolve public interface
    }
}
 
Example 3
Source Project: FoxTelem   Source File: ResultSetImpl.java    License: GNU General Public License v3.0 5 votes vote down vote up
@Override
public synchronized void setStatementUsedForFetchingRows(JdbcPreparedStatement stmt) {
    try {
        synchronized (checkClosed().getConnectionMutex()) {
            this.statementUsedForFetchingRows = stmt;
        }
    } catch (SQLException e) {
        throw new RuntimeException(e); // TODO: FIXME: Need to evolve public interface
    }
}
 
Example 4
public void recachePreparedStatement(JdbcPreparedStatement pstmt) throws SQLException {
    getActiveMySQLConnection().recachePreparedStatement(pstmt);
}
 
Example 5
public void decachePreparedStatement(JdbcPreparedStatement pstmt) throws SQLException {
    getActiveMySQLConnection().decachePreparedStatement(pstmt);
}
 
Example 6
@Override
public void recachePreparedStatement(JdbcPreparedStatement pstmt) throws SQLException {
    getActiveMySQLConnection().recachePreparedStatement(pstmt);
}
 
Example 7
@Override
public void decachePreparedStatement(JdbcPreparedStatement pstmt) throws SQLException {
    getActiveMySQLConnection().decachePreparedStatement(pstmt);
}
 
Example 8
void setStatementUsedForFetchingRows(JdbcPreparedStatement stmt); 
Example 9
void setStatementUsedForFetchingRows(JdbcPreparedStatement stmt);