com.mysql.cj.jdbc.JdbcPreparedStatement Java Examples
The following examples show how to use
com.mysql.cj.jdbc.JdbcPreparedStatement.
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 File: JDBCMySQLProcessor.java From quarkus with Apache License 2.0 | 6 votes |
@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 File: ResultSetImpl.java From lams with GNU General Public License v2.0 | 5 votes |
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 File: ResultSetImpl.java From FoxTelem with GNU General Public License v3.0 | 5 votes |
@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
Source File: MultiHostMySQLConnection.java From lams with GNU General Public License v2.0 | 4 votes |
public void recachePreparedStatement(JdbcPreparedStatement pstmt) throws SQLException { getActiveMySQLConnection().recachePreparedStatement(pstmt); }
Example #5
Source File: MultiHostMySQLConnection.java From lams with GNU General Public License v2.0 | 4 votes |
public void decachePreparedStatement(JdbcPreparedStatement pstmt) throws SQLException { getActiveMySQLConnection().decachePreparedStatement(pstmt); }
Example #6
Source File: MultiHostMySQLConnection.java From FoxTelem with GNU General Public License v3.0 | 4 votes |
@Override public void recachePreparedStatement(JdbcPreparedStatement pstmt) throws SQLException { getActiveMySQLConnection().recachePreparedStatement(pstmt); }
Example #7
Source File: MultiHostMySQLConnection.java From FoxTelem with GNU General Public License v3.0 | 4 votes |
@Override public void decachePreparedStatement(JdbcPreparedStatement pstmt) throws SQLException { getActiveMySQLConnection().decachePreparedStatement(pstmt); }
Example #8
Source File: ResultSetInternalMethods.java From lams with GNU General Public License v2.0 | votes |
void setStatementUsedForFetchingRows(JdbcPreparedStatement stmt);
Example #9
Source File: ResultSetInternalMethods.java From FoxTelem with GNU General Public License v3.0 | votes |
void setStatementUsedForFetchingRows(JdbcPreparedStatement stmt);