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