Enum RDBBlobStoreDB
- java.lang.Object
-
- java.lang.Enum<RDBBlobStoreDB>
-
- org.apache.jackrabbit.oak.plugins.document.rdb.RDBBlobStoreDB
-
- All Implemented Interfaces:
Serializable
,Comparable<RDBBlobStoreDB>
public enum RDBBlobStoreDB extends Enum<RDBBlobStoreDB>
Defines variation in the capabilities of different RDBs.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
description
protected RDBCommonVendorSpecificCode
vendorCode
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
checkVersion(DatabaseMetaData md)
@Nullable String
evaluateDiagnostics(Map<String,String> diags)
@NotNull Map<String,String>
getAdditionalDiagnostics(RDBConnectionHandler ch, String tableName)
String
getDataTableCreationStatement(String tableName)
String
getMetaTableCreationStatement(String tableName)
static @NotNull RDBBlobStoreDB
getValue(String desc)
String
toString()
static RDBBlobStoreDB
valueOf(String name)
Returns the enum constant of this type with the specified name.static RDBBlobStoreDB[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
H2
public static final RDBBlobStoreDB H2
-
DERBY
public static final RDBBlobStoreDB DERBY
-
DB2
public static final RDBBlobStoreDB DB2
-
MSSQL
public static final RDBBlobStoreDB MSSQL
-
MYSQL
public static final RDBBlobStoreDB MYSQL
-
ORACLE
public static final RDBBlobStoreDB ORACLE
-
POSTGRES
public static final RDBBlobStoreDB POSTGRES
-
DEFAULT
public static final RDBBlobStoreDB DEFAULT
-
-
Field Detail
-
description
protected String description
-
vendorCode
protected RDBCommonVendorSpecificCode vendorCode
-
-
Method Detail
-
values
public static RDBBlobStoreDB[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RDBBlobStoreDB c : RDBBlobStoreDB.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RDBBlobStoreDB valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
checkVersion
public String checkVersion(DatabaseMetaData md) throws SQLException
- Throws:
SQLException
-
getAdditionalDiagnostics
@NotNull public @NotNull Map<String,String> getAdditionalDiagnostics(RDBConnectionHandler ch, String tableName)
-
evaluateDiagnostics
@Nullable public @Nullable String evaluateDiagnostics(Map<String,String> diags)
-
toString
public String toString()
- Overrides:
toString
in classEnum<RDBBlobStoreDB>
-
getValue
@NotNull public static @NotNull RDBBlobStoreDB getValue(String desc)
-
-