Enum StoreType
- java.lang.Object
-
- java.lang.Enum<StoreType>
-
- org.apache.jackrabbit.oak.upgrade.cli.parser.StoreType
-
- All Implemented Interfaces:
Serializable
,Comparable<StoreType>
public enum StoreType extends Enum<StoreType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JCR2_DIR
JCR2_DIR_XML
JCR2_XML
JDBC
MONGO
SEGMENT
SEGMENT_AZURE
SEGMENT_TAR
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StoreFactory
createFactory(String[] paths, org.apache.jackrabbit.oak.upgrade.cli.parser.StoreArguments.MigrationDirection direction, MigrationOptions migrationOptions)
static StoreType
getMatchingType(String argument)
boolean
isSegment()
abstract boolean
isSupportLongNames()
abstract boolean
matches(String argument)
static StoreType
valueOf(String name)
Returns the enum constant of this type with the specified name.static StoreType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JCR2_XML
public static final StoreType JCR2_XML
-
JCR2_DIR
public static final StoreType JCR2_DIR
-
JCR2_DIR_XML
public static final StoreType JCR2_DIR_XML
-
JDBC
public static final StoreType JDBC
-
MONGO
public static final StoreType MONGO
-
SEGMENT
public static final StoreType SEGMENT
-
SEGMENT_AZURE
public static final StoreType SEGMENT_AZURE
-
SEGMENT_TAR
public static final StoreType SEGMENT_TAR
-
-
Method Detail
-
values
public static StoreType[] 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 (StoreType c : StoreType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StoreType 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
-
matches
public abstract boolean matches(String argument)
-
createFactory
public abstract StoreFactory createFactory(String[] paths, org.apache.jackrabbit.oak.upgrade.cli.parser.StoreArguments.MigrationDirection direction, MigrationOptions migrationOptions)
-
isSupportLongNames
public abstract boolean isSupportLongNames()
-
isSegment
public boolean isSegment()
-
-