public class GeneratedKeysUtils extends Object
| Constructor and Description |
|---|
GeneratedKeysUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAutoGenerateEnabledParameters(Object[] args)
Returns whether the given method arguments enable automatic generated-key retrieval.
|
static boolean |
isMethodToRetrieveGeneratedKeys(Method method)
Returns whether the given method supports automatic generated-key retrieval.
|
public static boolean isMethodToRetrieveGeneratedKeys(Method method)
For batch execution methods, whether generated keys are returned is implementation-specific.
In datasource-proxy, this behavior is controlled by ProxyConfig.isRetrieveGeneratedKeysForBatchStatement() and
ProxyConfig.isRetrieveGeneratedKeysForBatchPreparedOrCallable().
Connection.prepareStatement(String),
Connection.prepareStatement(String, int[]),
Connection.prepareStatement(String, String[]),
Statement.execute(String),
Statement.execute(String, int[]),
Statement.execute(String, String[]),
Statement.executeUpdate(String),
Statement.executeUpdate(String, int[]),
Statement.executeUpdate(String, String[]),
Statement.executeLargeUpdate(String, int),
Statement.executeLargeUpdate(String, int[]),
Statement.executeLargeUpdate(String, String[]),
Statement.executeBatch(),
Statement.executeLargeBatch()public static boolean isAutoGenerateEnabledParameters(Object[] args)
args - method arguments for a method that can enable generated keystrue if the arguments enable generated keysisMethodToRetrieveGeneratedKeys(Method)Copyright © 2026. All rights reserved.