public static enum FDBRecordStoreBase.StoreExistenceCheck extends Enum<FDBRecordStoreBase.StoreExistenceCheck>
Enum Constant and Description |
---|
ERROR_IF_EXISTS
Throw if the record store already exists.
|
ERROR_IF_NO_INFO_AND_NOT_EMPTY
Throw if the record store does not have an info header but is not empty.
|
ERROR_IF_NOT_EXISTS
Throw if the record store does not already exist.
|
NONE
No special action.
|
Modifier and Type | Method and Description |
---|---|
static FDBRecordStoreBase.StoreExistenceCheck |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FDBRecordStoreBase.StoreExistenceCheck[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FDBRecordStoreBase.StoreExistenceCheck NONE
uncheckedOpen
or build
to a checked open.public static final FDBRecordStoreBase.StoreExistenceCheck ERROR_IF_NO_INFO_AND_NOT_EMPTY
FDBRecordStoreBase.BaseBuilder.createOrOpen()
public static final FDBRecordStoreBase.StoreExistenceCheck ERROR_IF_EXISTS
FDBRecordStoreBase.BaseBuilder.create()
RecordStoreAlreadyExistsException
public static final FDBRecordStoreBase.StoreExistenceCheck ERROR_IF_NOT_EXISTS
FDBRecordStoreBase.BaseBuilder.open()
RecordStoreDoesNotExistException
public static FDBRecordStoreBase.StoreExistenceCheck[] values()
for (FDBRecordStoreBase.StoreExistenceCheck c : FDBRecordStoreBase.StoreExistenceCheck.values()) System.out.println(c);
public static FDBRecordStoreBase.StoreExistenceCheck 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 null