Enum SqlJetDeviceCharacteristics
java.lang.Object
java.lang.Enum<SqlJetDeviceCharacteristics>
org.tmatesoft.sqljet.core.internal.SqlJetDeviceCharacteristics
- All Implemented Interfaces:
Serializable
,Comparable<SqlJetDeviceCharacteristics>
,java.lang.constant.Constable
Device Characteristics
The deviceCapabilities method of the
ISqlJetFile
object returns an set of the thesevalues expressing
I/O characteristics of the mass storage
device that holds the file that the ISqlJetFile
refers to.
The IOCAP_ATOMIC property means that all writes of
any size are atomic. The IOCAP_ATOMICnnn values
mean that writes of blocks that are nnn bytes in size and
are aligned to an address which is an integer multiple of
nnn are atomic. The IOCAP_SAFE_APPEND value means
that when data is appended to a file, the data is appended
first then the size of the file is extended, never the other
way around. The IOCAP_SEQUENTIAL property means that
information is written to disk in the same order as calls
to write().-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionint
static SqlJetDeviceCharacteristics
Returns the enum constant of this type with the specified name.static SqlJetDeviceCharacteristics[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IOCAP_ATOMIC512
-
IOCAP_ATOMIC1K
-
IOCAP_ATOMIC2K
-
IOCAP_ATOMIC4K
-
IOCAP_ATOMIC8K
-
IOCAP_ATOMIC16K
-
IOCAP_ATOMIC32K
-
IOCAP_ATOMIC64K
-
IOCAP_SAFE_APPEND
-
IOCAP_SEQUENTIAL
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getIoCapAtomicSize
public int getIoCapAtomicSize()- Returns:
- the ioCapAtomicSize
-