Enum SqlJetBtreeFlags

java.lang.Object
java.lang.Enum<SqlJetBtreeFlags>
org.tmatesoft.sqljet.core.internal.SqlJetBtreeFlags
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SqlJetBtreeFlags>, java.lang.constant.Constable

public enum SqlJetBtreeFlags extends java.lang.Enum<SqlJetBtreeFlags>
The flags parameter to sqlite3BtreeOpen can be the bitwise or of the following values. NOTE: These values must match the corresponding PAGER_ values in pager.h.
Author:
TMate Software Ltd., Sergey Scherbina (sergey.scherbina@gmail.com)
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Create the database if it does not exist
    In-memory DB.
    Omit readlocks on readonly files
    Do not use journal.
    Open the database in read-only mode
    Open for both reading and writing
  • Method Summary

    Modifier and Type
    Method
    Description
     
    static java.util.Set<SqlJetPagerFlags>
    toPagerFlags(java.util.Set<SqlJetBtreeFlags> btreeFlags)
     
    valueOf(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    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, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • OMIT_JOURNAL

      public static final SqlJetBtreeFlags OMIT_JOURNAL
      Do not use journal. No argument
    • NO_READLOCK

      public static final SqlJetBtreeFlags NO_READLOCK
      Omit readlocks on readonly files
    • MEMORY

      public static final SqlJetBtreeFlags MEMORY
      In-memory DB. No argument
    • READONLY

      public static final SqlJetBtreeFlags READONLY
      Open the database in read-only mode
    • READWRITE

      public static final SqlJetBtreeFlags READWRITE
      Open for both reading and writing
    • CREATE

      public static final SqlJetBtreeFlags CREATE
      Create the database if it does not exist
  • Method Details

    • values

      public static SqlJetBtreeFlags[] 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

      public static SqlJetBtreeFlags 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
    • getPagerFlag

      public SqlJetPagerFlags getPagerFlag()
      Returns:
      the pagerFlag
    • toPagerFlags

      public static java.util.Set<SqlJetPagerFlags> toPagerFlags(java.util.Set<SqlJetBtreeFlags> btreeFlags)