public enum DatabaseProduct extends Enum<DatabaseProduct>
Enum Constant and Description |
---|
DERBY |
MYSQL |
ORACLE |
OTHER |
POSTGRES |
SQLSERVER |
Modifier and Type | Method and Description |
---|---|
static DatabaseProduct |
determineDatabaseProduct(String productName)
Determine the database product type
|
static boolean |
hasJoinOperationOrderBug(DatabaseProduct dbType)
Whether the RDBMS has a bug in join and filter operation order described in DERBY-6358.
|
static boolean |
isDeadlock(DatabaseProduct dbProduct,
SQLException e) |
static boolean |
needsInBatching(DatabaseProduct dbType)
Whether the RDBMS has restrictions on IN list size (explicit, or poor perf-based).
|
static DatabaseProduct |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatabaseProduct[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatabaseProduct DERBY
public static final DatabaseProduct MYSQL
public static final DatabaseProduct POSTGRES
public static final DatabaseProduct ORACLE
public static final DatabaseProduct SQLSERVER
public static final DatabaseProduct OTHER
public static DatabaseProduct[] values()
for (DatabaseProduct c : DatabaseProduct.values()) System.out.println(c);
public static DatabaseProduct valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static DatabaseProduct determineDatabaseProduct(String productName) throws SQLException
conn
- database connectionSQLException
public static boolean isDeadlock(DatabaseProduct dbProduct, SQLException e)
public static boolean needsInBatching(DatabaseProduct dbType)
public static boolean hasJoinOperationOrderBug(DatabaseProduct dbType)
Copyright © 2021 The Apache Software Foundation. All rights reserved.