public static enum FDBRecordStoreBase.RecordExistenceCheck extends Enum<FDBRecordStoreBase.RecordExistenceCheck>
Enum Constant and Description |
---|
ERROR_IF_EXISTS
Throw if the record already exists.
|
ERROR_IF_NOT_EXISTS
Throw if the record does not already exist.
|
ERROR_IF_NOT_EXISTS_OR_RECORD_TYPE_CHANGED
Throw if the record does not already exist or has a different record type.
|
ERROR_IF_RECORD_TYPE_CHANGED
Throw if an existing record has a different record type.
|
NONE
No special action.
|
Modifier and Type | Method and Description |
---|---|
boolean |
errorIfExists() |
boolean |
errorIfNotExists() |
boolean |
errorIfTypeChanged() |
static FDBRecordStoreBase.RecordExistenceCheck |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FDBRecordStoreBase.RecordExistenceCheck[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FDBRecordStoreBase.RecordExistenceCheck NONE
FDBRecordStoreBase.saveRecord(M)
public static final FDBRecordStoreBase.RecordExistenceCheck ERROR_IF_EXISTS
FDBRecordStoreBase.insertRecord(M)
RecordAlreadyExistsException
public static final FDBRecordStoreBase.RecordExistenceCheck ERROR_IF_NOT_EXISTS
RecordDoesNotExistException
public static final FDBRecordStoreBase.RecordExistenceCheck ERROR_IF_RECORD_TYPE_CHANGED
RecordTypeChangedException
public static final FDBRecordStoreBase.RecordExistenceCheck ERROR_IF_NOT_EXISTS_OR_RECORD_TYPE_CHANGED
FDBRecordStoreBase.updateRecord(M)
public static FDBRecordStoreBase.RecordExistenceCheck[] values()
for (FDBRecordStoreBase.RecordExistenceCheck c : FDBRecordStoreBase.RecordExistenceCheck.values()) System.out.println(c);
public static FDBRecordStoreBase.RecordExistenceCheck 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 boolean errorIfExists()
public boolean errorIfNotExists()
public boolean errorIfTypeChanged()