@InterfaceAudience.Private public final class DatabaseProduct extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DatabaseProduct.DbType |
| Modifier and Type | Method and Description |
|---|---|
static String |
addForUpdateClause(DatabaseProduct.DbType dbType,
String selectStatement)
We add for update to SQL according to different database types.
|
static DatabaseProduct.DbType |
getDbType(Connection conn) |
static boolean |
isDuplicateKeyError(DatabaseProduct.DbType dbType,
SQLException ex) |
public static DatabaseProduct.DbType getDbType(Connection conn) throws SQLException
SQLExceptionpublic static String addForUpdateClause(DatabaseProduct.DbType dbType, String selectStatement) throws SQLException
dbType - type of database.selectStatement - querySQL.SQLException - SQL exception.public static boolean isDuplicateKeyError(DatabaseProduct.DbType dbType, SQLException ex)
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.