public class GeneratedKeysUtils extends Object
| Constructor and Description |
|---|
GeneratedKeysUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAutoGenerateEnabledParameters(Object[] args)
Whether given method arguments intend to enable auto-generated keys.
|
static boolean |
isMethodToRetrieveGeneratedKeys(Method method)
Whether the given method supports auto-generated keys.
|
public static boolean isMethodToRetrieveGeneratedKeys(Method method)
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 parameters for methods that can enable auto-generated keys.isMethodToRetrieveGeneratedKeys(Method)Copyright © 2019. All rights reserved.