public class ProxyConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProxyConfig.Builder |
| Constructor and Description |
|---|
ProxyConfig() |
| Modifier and Type | Method and Description |
|---|---|
ConnectionIdManager |
getConnectionIdManager() |
String |
getDataSourceName() |
ResultSetProxyLogicFactory |
getGeneratedKeysProxyLogicFactory() |
JdbcProxyFactory |
getJdbcProxyFactory() |
CompositeMethodListener |
getMethodListener() |
ParameterTransformer |
getParameterTransformer() |
ChainListener |
getQueryListener() |
QueryTransformer |
getQueryTransformer() |
ResultSetProxyLogicFactory |
getResultSetProxyLogicFactory() |
StopwatchFactory |
getStopwatchFactory()
Returns the
StopwatchFactory. |
boolean |
isAutoCloseGeneratedKeys()
Whether to automatically close the
ResultSet for retrieved generated keys. |
boolean |
isAutoRetrieveGeneratedKeys()
When this returns
true, the proxy logic always calls Statement.getGeneratedKeys() and stores the result in
ExecutionInfo. |
boolean |
isGeneratedKeysProxyEnabled()
Returns
true when a proxy logic factory for generated keys is specified. |
boolean |
isResultSetProxyEnabled() |
boolean |
isRetrieveGeneratedKeysForBatchPreparedOrCallable()
Whether to automatically retrieve generated keys for batch prepared or callable statements.
|
boolean |
isRetrieveGeneratedKeysForBatchStatement()
Whether to automatically retrieve generated keys for batch statements.
|
boolean |
isRetrieveIsolationLevel()
Whether to retrieve the isolation level from the connection.
|
void |
setRetrieveIsolationLevel(boolean retrieveIsolationLevel)
Set whether to retrieve the isolation level from the connection.
|
public String getDataSourceName()
public ChainListener getQueryListener()
public QueryTransformer getQueryTransformer()
public ParameterTransformer getParameterTransformer()
public JdbcProxyFactory getJdbcProxyFactory()
public ResultSetProxyLogicFactory getResultSetProxyLogicFactory()
public boolean isResultSetProxyEnabled()
true when ResultSetProxyLogicFactory for ResultSet is specifiedpublic ResultSetProxyLogicFactory getGeneratedKeysProxyLogicFactory()
public boolean isAutoRetrieveGeneratedKeys()
true, the proxy logic always calls Statement.getGeneratedKeys() and stores the result in
ExecutionInfo.
Also, if Statement.getGeneratedKeys() is called while the cached generated-keys ResultSet is
still open, the cached result set is returned. If it is closed, calling Statement.getGeneratedKeys()
returns a new ResultSet. (Calling Statement.getGeneratedKeys() multiple times is not defined
in the JDBC specification, so behavior depends on the JDBC driver.)
If false is returned, ExecutionInfo.getGeneratedKeys() returns null.true if generated-keys retrieval is enabledpublic boolean isGeneratedKeysProxyEnabled()
true when a proxy logic factory for generated keys is specified.true when ResultSetProxyLogicFactory for generated keys is specifiedProxyConfig.Builder.generatedKeysProxyLogicFactory(ResultSetProxyLogicFactory)public boolean isAutoCloseGeneratedKeys()
ResultSet for retrieved generated keys.
When this returns true, the automatically retrieved generated-keys ResultSet is closed after
QueryExecutionListener.afterQuery(ExecutionInfo, List) finishes. The result of an explicit call to
Statement.getGeneratedKeys() is not closed by this setting.public boolean isRetrieveGeneratedKeysForBatchStatement()
false.public boolean isRetrieveGeneratedKeysForBatchPreparedOrCallable()
true.public ConnectionIdManager getConnectionIdManager()
public CompositeMethodListener getMethodListener()
public StopwatchFactory getStopwatchFactory()
StopwatchFactory.
Default implementation is SystemStopwatchFactory.public boolean isRetrieveIsolationLevel()
true to retrieve the isolation level from the connectionpublic void setRetrieveIsolationLevel(boolean retrieveIsolationLevel)
retrieveIsolationLevel - true to retrieveCopyright © 2026. All rights reserved.