public class ProxyConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProxyConfig.Builder |
| Constructor and Description |
|---|
ProxyConfig() |
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 call Statement.getGeneratedKeys() and set it to
ExecutionInfo.
Also, if Statement.getGeneratedKeys() is called, it will return cached generated keys ResultSet
when cached ResultSet is still open. If cached ResultSet is closed, calling
Statement.getGeneratedKeys() returns a new ResultSet. (Calling Statement.getGeneratedKeys()
multiple times is not defined in JDBC spec. Therefore, behavior depends on JDBC driver.)
If false is returned, ExecutionInfo.getGeneratedKeys() returns null.public boolean isGeneratedKeysProxyEnabled()
JdbcProxyFactory for generated-keys is specified, return true.true when ResultSetProxyLogicFactory for generated keys is specifiedProxyConfig.Builder.generatedKeysProxyLogicFactory(ResultSetProxyLogicFactory)public boolean isAutoCloseGeneratedKeys()
ResultSet for generated-keys that is automatically retrieved.
When this returns true, always close the ResultSet for generated keys when
QueryExecutionListener.afterQuery(ExecutionInfo, List) has finished.
The result of Statement.getGeneratedKeys() method will not be closed by this. Only auto retrieved
ResultSet of generated keys is closed.public boolean isRetrieveGeneratedKeysForBatchStatement()
false.public boolean isRetrieveGeneratedKeysForBatchPreparedOrCallable()
true.public ConnectionIdManager getConnectionIdManager()
public CompositeMethodListener getMethodListener()
Copyright © 2018. All rights reserved.