Enum 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().
    • 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