Enum SqlJetDeviceCharacteristics
- java.lang.Object
-
- java.lang.Enum<SqlJetDeviceCharacteristics>
-
- org.tmatesoft.sqljet.core.internal.SqlJetDeviceCharacteristics
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SqlJetDeviceCharacteristics>
public enum SqlJetDeviceCharacteristics extends java.lang.Enum<SqlJetDeviceCharacteristics>
Device Characteristics The deviceCapabilities method of theISqlJetFile
object returns an set of the thesevalues expressing I/O characteristics of the mass storage device that holds the file that theISqlJetFile
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().- Author:
- TMate Software Ltd., Sergey Scherbina (sergey.scherbina@gmail.com)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IOCAP_ATOMIC16K
IOCAP_ATOMIC1K
IOCAP_ATOMIC2K
IOCAP_ATOMIC32K
IOCAP_ATOMIC4K
IOCAP_ATOMIC512
IOCAP_ATOMIC64K
IOCAP_ATOMIC8K
IOCAP_SAFE_APPEND
IOCAP_SEQUENTIAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIoCapAtomicSize()
static SqlJetDeviceCharacteristics
valueOf(java.lang.String name)
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 Detail
-
IOCAP_ATOMIC512
public static final SqlJetDeviceCharacteristics IOCAP_ATOMIC512
-
IOCAP_ATOMIC1K
public static final SqlJetDeviceCharacteristics IOCAP_ATOMIC1K
-
IOCAP_ATOMIC2K
public static final SqlJetDeviceCharacteristics IOCAP_ATOMIC2K
-
IOCAP_ATOMIC4K
public static final SqlJetDeviceCharacteristics IOCAP_ATOMIC4K
-
IOCAP_ATOMIC8K
public static final SqlJetDeviceCharacteristics IOCAP_ATOMIC8K
-
IOCAP_ATOMIC16K
public static final SqlJetDeviceCharacteristics IOCAP_ATOMIC16K
-
IOCAP_ATOMIC32K
public static final SqlJetDeviceCharacteristics IOCAP_ATOMIC32K
-
IOCAP_ATOMIC64K
public static final SqlJetDeviceCharacteristics IOCAP_ATOMIC64K
-
IOCAP_SAFE_APPEND
public static final SqlJetDeviceCharacteristics IOCAP_SAFE_APPEND
-
IOCAP_SEQUENTIAL
public static final SqlJetDeviceCharacteristics IOCAP_SEQUENTIAL
-
-
Method Detail
-
values
public static SqlJetDeviceCharacteristics[] 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 (SqlJetDeviceCharacteristics c : SqlJetDeviceCharacteristics.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlJetDeviceCharacteristics 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
-
getIoCapAtomicSize
public int getIoCapAtomicSize()
- Returns:
- the ioCapAtomicSize
-
-