Enum RDBBlobStoreDB
- java.lang.Object
-
- java.lang.Enum<RDBBlobStoreDB>
-
- org.apache.jackrabbit.oak.plugins.document.rdb.RDBBlobStoreDB
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RDBBlobStoreDB>
public enum RDBBlobStoreDB extends java.lang.Enum<RDBBlobStoreDB>
Defines variation in the capabilities of different RDBs.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
description
protected RDBCommonVendorSpecificCode
vendorCode
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
checkVersion(java.sql.DatabaseMetaData md)
@Nullable java.lang.String
evaluateDiagnostics(java.util.Map<java.lang.String,java.lang.String> diags)
@NotNull java.util.Map<java.lang.String,java.lang.String>
getAdditionalDiagnostics(RDBConnectionHandler ch, java.lang.String tableName)
java.lang.String
getDataTableCreationStatement(java.lang.String tableName)
java.lang.String
getMetaTableCreationStatement(java.lang.String tableName)
static @NotNull RDBBlobStoreDB
getValue(java.lang.String desc)
java.lang.String
toString()
static RDBBlobStoreDB
valueOf(java.lang.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 java.lang.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(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
checkVersion
public java.lang.String checkVersion(java.sql.DatabaseMetaData md) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getDataTableCreationStatement
public java.lang.String getDataTableCreationStatement(java.lang.String tableName)
-
getMetaTableCreationStatement
public java.lang.String getMetaTableCreationStatement(java.lang.String tableName)
-
getAdditionalDiagnostics
@NotNull public @NotNull java.util.Map<java.lang.String,java.lang.String> getAdditionalDiagnostics(RDBConnectionHandler ch, java.lang.String tableName)
-
evaluateDiagnostics
@Nullable public @Nullable java.lang.String evaluateDiagnostics(java.util.Map<java.lang.String,java.lang.String> diags)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<RDBBlobStoreDB>
-
getValue
@NotNull public static @NotNull RDBBlobStoreDB getValue(java.lang.String desc)
-
-