org.tmatesoft.sqljet.core.internal
Enum SqlJetDeviceCharacteristics

java.lang.Object
  extended by java.lang.Enum<SqlJetDeviceCharacteristics>
      extended by 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 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().


Enum Constant Summary
IOCAP_ATOMIC16K
           
IOCAP_ATOMIC1K
           
IOCAP_ATOMIC2K
           
IOCAP_ATOMIC32K
           
IOCAP_ATOMIC4K
           
IOCAP_ATOMIC512
           
IOCAP_ATOMIC64K
           
IOCAP_ATOMIC8K
           
IOCAP_SAFE_APPEND
           
IOCAP_SEQUENTIAL
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
java.lang.NullPointerException - if the argument is null

getIoCapAtomicSize

public int getIoCapAtomicSize()
Returns:
the ioCapAtomicSize