Interface ISqlJetOptions

All Known Implementing Classes:
SqlJetOptions

public interface ISqlJetOptions
Database options.
Author:
TMate Software Ltd., Sergey Scherbina (sergey.scherbina@gmail.com)
  • Field Details

    • SQLJET_DEFAULT_ENCODING_PROPERTY

      static final String SQLJET_DEFAULT_ENCODING_PROPERTY
      Name of system property for default encoding.
      See Also:
    • SQLJET_DEFAULT_ENCODING

      static final SqlJetEncoding SQLJET_DEFAULT_ENCODING
      Default encoding.
    • SQLJET_LEGACY_FILE_FORMAT_PROPERTY

      static final String SQLJET_LEGACY_FILE_FORMAT_PROPERTY
      Name of system property for legacy file format support.
      See Also:
    • SQLJET_LEGACY_FILE_FORMAT

      static final boolean SQLJET_LEGACY_FILE_FORMAT
      Legacy file format support.
    • SQLJET_DEFAULT_FILE_FORMAT_PROPERTY

      static final String SQLJET_DEFAULT_FILE_FORMAT_PROPERTY
      Name of system property for default file format.
      See Also:
    • SQLJET_DEFAULT_FILE_FORMAT

      static final int SQLJET_DEFAULT_FILE_FORMAT
      Default file format.
  • Method Details

    • getFileFormat

      int getFileFormat() throws SqlJetException
      File format of schema layer.
      Returns:
      the fileFormat
      Throws:
      SqlJetException
    • setFileFormat

      void setFileFormat(int fileFormat) throws SqlJetException
      Set file format. It's allowed only on new empty data base. It can't be performed in active transaction.
      Parameters:
      fileFormat -
      Throws:
      SqlJetException
    • isAutovacuum

      boolean isAutovacuum() throws SqlJetException
      Use freelist if false. Autovacuum if true.
      Returns:
      the autovacuum
      Throws:
      SqlJetException
    • setAutovacuum

      void setAutovacuum(boolean autovacuum) throws SqlJetException
      Set autovacuum flag. It's allowed only on new empty data base. It can't be performed in active transaction.
      Parameters:
      autovacuum -
      Throws:
      SqlJetException
    • isIncrementalVacuum

      boolean isIncrementalVacuum() throws SqlJetException
      Incremental-vacuum flag.
      Returns:
      the incrementalVacuum
      Throws:
      SqlJetException
    • setIncrementalVacuum

      void setIncrementalVacuum(boolean incrementalVacuum) throws SqlJetException
      Set incremental vacuum flag. It's allowed only on new empty data base. It can't be performed in active transaction.
      Parameters:
      incrementalVacuum -
      Throws:
      SqlJetException
    • getCacheSize

      int getCacheSize() throws SqlJetException
      Size of the page cache.
      Returns:
      the pageCacheSize
      Throws:
      SqlJetException
    • setCacheSize

      void setCacheSize(int pageCacheSize) throws SqlJetException
      Set page cache's size. It can be performed only in active transaction.
      Parameters:
      pageCacheSize -
      Throws:
      SqlJetException
    • getEncoding

      SqlJetEncoding getEncoding() throws SqlJetException
      Db text encoding.
      Returns:
      the encoding
      Throws:
      SqlJetException
    • setEncoding

      void setEncoding(SqlJetEncoding encoding) throws SqlJetException
      Set encoding. It's allowed only on new empty data base. It can't be performed in active transaction.
      Parameters:
      encoding -
      Throws:
      SqlJetException
    • isLegacyFileFormat

      boolean isLegacyFileFormat() throws SqlJetException
      Checks if legacy file format is used for the new databases.
      Throws:
      SqlJetException
    • setLegacyFileFormat

      void setLegacyFileFormat(boolean flag) throws SqlJetException
      Instructs SQLJet to use legacy file format for all new databases.
      Throws:
      SqlJetException
    • getSchemaVersion

      int getSchemaVersion() throws SqlJetException
      Schema cookie. Changes with each schema change.
      Returns:
      the schemaCookie
      Throws:
      SqlJetException
    • setSchemaVersion

      void setSchemaVersion(int version) throws SqlJetException
      Set schema version. It can be performed only in active transaction.
      Parameters:
      version -
      Throws:
      SqlJetException
    • changeSchemaVersion

      void changeSchemaVersion() throws SqlJetException
      Change SchemaCookie. It can be performed only in active transaction
      Throws:
      SqlJetException
    • verifySchemaVersion

      boolean verifySchemaVersion(boolean throwIfStale) throws SqlJetException
      Verify schema cookie and return true if it is unchanged by other process. If throwIfStale is true then throw exception if cookie is changed by other process.
      Parameters:
      throwIfStale -
      Returns:
      true of schema has not been changed
      Throws:
      SqlJetException
    • getUserVersion

      int getUserVersion() throws SqlJetException
      The user cookie. Used by the application.
      Returns:
      the userCookie
      Throws:
      SqlJetException
    • setUserVersion

      void setUserVersion(int userCookie) throws SqlJetException
      Set user's cookie. It can be performed only in active transaction.
      Parameters:
      userCookie -
      Throws:
      SqlJetException