Package net.java.ao.db
Class NuoDBDisposableDataSourceHandler
java.lang.Object
net.java.ao.db.NuoDBDisposableDataSourceHandler
The NuoDB JDBC Driver supports ResultSet.TYPE_FORWARD_ONLY currently. The NuoDB data source handler intercepts
invocations of methods, which create SQL statements and forcibly overrides result set type to
java.sql.ResultSet.TYPE_FORWARD_ONLY
. These are methods intercepted by the handler:
- Statement createStatement(int resultSetType, int resultSetConcurrency);
- PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency);
- CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency);
- Author:
- Sergey Bushik
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DisposableDataSource
newInstance
(DataSource dataSource) Creates reflection proxy for the specified NuoDB data sourcestatic DisposableDataSource
newInstance
(DataSource dataSource, Disposable disposable)
-
Constructor Details
-
NuoDBDisposableDataSourceHandler
public NuoDBDisposableDataSourceHandler()
-
-
Method Details
-
newInstance
Creates reflection proxy for the specified NuoDB data source- Parameters:
dataSource
- to intercept invocations- Returns:
- disposable data source
-
newInstance
-