Deprecated List (Oracle - Berkeley DB Java API)
Date: 2017-04-13

# Deprecated API

## Contents

- Deprecated Fields
- Deprecated Methods

- Deprecated Fields
  Field and Description
  com.sleepycat.db.LockMode.DEGREE_2 This has been replaced by `LockMode.READ_COMMITTED` to conform to ANSI database isolation terminology.
  com.sleepycat.db.CursorConfig.DEGREE_2 This has been replaced by `CursorConfig.READ_COMMITTED` to conform to ANSI database isolation terminology.
  com.sleepycat.db.LockMode.DIRTY_READ This has been replaced by `LockMode.READ_UNCOMMITTED` to conform to ANSI database isolation terminology.
  com.sleepycat.db.CursorConfig.DIRTY_READ This has been replaced by `CursorConfig.READ_UNCOMMITTED` to conform to ANSI database isolation terminology.

- Deprecated Methods
  Method and Description
  com.sleepycat.db.EnvironmentConfig.addDataDir(String) replaced by `EnvironmentConfig.addDataDir(java.io.File)`
  com.sleepycat.persist.model.EntityModel.classForName(String) use `EntityModel.resolveClass(java.lang.String)` instead. This method does not use the environment's ClassLoader property.
  com.sleepycat.persist.StoreConfig.cloneConfig() As of JE 4.0.13, replaced by `StoreConfig.clone()`.
  com.sleepycat.persist.evolve.EvolveConfig.cloneConfig() As of JE 4.0.13, replaced by `EvolveConfig.clone()`.
  com.sleepycat.db.DatabaseEntry.getBlob() Replaced with `DatabaseEntry.getExternalFile()`.
  com.sleepycat.db.EnvironmentConfig.getBlobDir() Replaced with `EnvironmentConfig.getExternalFileDir()`
  com.sleepycat.db.DatabaseConfig.getBlobDir() This has been replaced by `DatabaseConfig.getExternalFileDir()`.
  com.sleepycat.db.EnvironmentConfig.getBlobThreshold() Replaced with `EnvironmentConfig.getExternalFileThreshold()`.
  com.sleepycat.db.DatabaseConfig.getBlobThreshold() This has been replaced by `DatabaseConfig.getExternalFileThreshold()`.
  com.sleepycat.db.TransactionConfig.getDegree2() This has been replaced by `TransactionConfig.getReadCommitted()` to conform to ANSI database isolation terminology.
  com.sleepycat.db.CursorConfig.getDegree2() This has been replaced by `CursorConfig.getReadCommitted()` to conform to ANSI database isolation terminology.
  com.sleepycat.util.IOExceptionWrapper.getDetail() replaced by `IOExceptionWrapper.getCause()`.
  com.sleepycat.util.ExceptionWrapper.getDetail() replaced by `ExceptionWrapper.getCause()`.
  com.sleepycat.util.RuntimeExceptionWrapper.getDetail() replaced by `Throwable.getCause()`.
  com.sleepycat.db.TransactionConfig.getDirtyRead() This has been replaced by `TransactionConfig.getReadUncommitted()` to conform to ANSI database isolation terminology.
  com.sleepycat.db.CursorConfig.getDirtyRead() This has been replaced by `CursorConfig.getReadUncommitted()` to conform to ANSI database isolation terminology.
  com.sleepycat.db.DatabaseConfig.getDirtyRead() This has been replaced by `DatabaseConfig.getReadUncommitted()` to conform to ANSI database isolation terminology.
  com.sleepycat.db.HeapStats.getHeapNumBlobs() Replaced with `HeapStats.getHeapExtFiles()`.
  com.sleepycat.db.EnvironmentConfig.getLogBlobContent() Replaced with `EnvironmentConfig.getLogExternalFileContent()`.
  com.sleepycat.db.BtreeStats.getNumBlobs() Replaced by `BtreeStats.getExtFiles()`.
  com.sleepycat.db.HashStats.getNumBlobs() Replaced with `HashStats.getExtFiles()`.
  com.sleepycat.db.EnvironmentConfig.getTestAndSetSpins() replaced by `EnvironmentConfig.getMutexTestAndSetSpins()`
  com.sleepycat.db.EnvironmentConfig.getVerboseDeadlock() replaced by `EnvironmentConfig.getVerbose(com.sleepycat.db.VerboseConfig)`
  com.sleepycat.db.EnvironmentConfig.getVerboseRecovery() replaced by `EnvironmentConfig.getVerbose(com.sleepycat.db.VerboseConfig)`
  com.sleepycat.db.EnvironmentConfig.getVerboseRegister() replaced by `EnvironmentConfig.getVerbose(com.sleepycat.db.VerboseConfig)`
  com.sleepycat.db.EnvironmentConfig.getVerboseReplication() replaced by `EnvironmentConfig.getVerbose(com.sleepycat.db.VerboseConfig)`
  com.sleepycat.db.EnvironmentConfig.getVerboseWaitsFor() replaced by `EnvironmentConfig.getVerbose(com.sleepycat.db.VerboseConfig)`
  com.sleepycat.db.ReplicationManagerSiteInfo.isConnected() Replaced by `ReplicationManagerSiteInfo.getConnectionStatus()`
  com.sleepycat.collections.StoredCollection.iterator(boolean) Please use `StoredCollection.storedIterator()` or `StoredCollection.storedIterator(boolean)` instead. Because the iterator returned must be closed, the method name `iterator` is confusing since standard Java iterators do not need to be closed.
  com.sleepycat.bind.tuple.TupleBase.newOutput() replaced by `TupleBase.getTupleOutput(E)`
  com.sleepycat.bind.tuple.TupleBase.newOutput(byte[]) replaced by `TupleBase.getTupleOutput(E)`
  com.sleepycat.db.DatabaseEntry.setBlob(boolean) Replaced with `DatabaseEntry.setExternalFile(boolean)`.
  com.sleepycat.db.EnvironmentConfig.setBlobDir(File) Replaced with `EnvironmentConfig.setExternalFileDir(java.io.File)`.
  com.sleepycat.db.DatabaseConfig.setBlobDir(File) This has been replaced by `DatabaseConfig.setExternalFileDir(java.io.File)`.
  com.sleepycat.db.Environment.setBlobThreshold(int) Replaced with `Environment.setExternalFileThreshold(int)`.
  com.sleepycat.db.EnvironmentConfig.setBlobThreshold(int) Replaced with `EnvironmentConfig.setExternalFileThreshold(int)`.
  com.sleepycat.db.DatabaseConfig.setBlobThreshold(int) This has been replaced by `DatabaseConfig.setExternalFileThreshold(int)`.
  com.sleepycat.db.TransactionConfig.setDegree2(boolean) This has been replaced by `TransactionConfig.setReadCommitted(boolean)` to conform to ANSI database isolation terminology.
  com.sleepycat.db.CursorConfig.setDegree2(boolean) This has been replaced by `CursorConfig.setReadCommitted(boolean)` to conform to ANSI database isolation terminology.
  com.sleepycat.db.TransactionConfig.setDirtyRead(boolean) This has been replaced by `TransactionConfig.setReadUncommitted(boolean)` to conform to ANSI database isolation terminology.
  com.sleepycat.db.CursorConfig.setDirtyRead(boolean) This has been replaced by `CursorConfig.setReadUncommitted(boolean)` to conform to ANSI database isolation terminology.
  com.sleepycat.db.DatabaseConfig.setDirtyRead(boolean) This has been replaced by `DatabaseConfig.setReadUncommitted(boolean)` to conform to ANSI database isolation terminology.
  com.sleepycat.db.EnvironmentConfig.setLogBlobContent(boolean) Replaced with `EnvironmentConfig.setLogExternalFileContent(boolean)`.
  com.sleepycat.db.EnvironmentConfig.setTemporaryDirectory(String) replaced by `EnvironmentConfig.setTemporaryDirectory(java.io.File)`
  com.sleepycat.db.EnvironmentConfig.setTestAndSetSpins(int) replaced by `EnvironmentConfig.setMutexTestAndSetSpins(int)`
  com.sleepycat.db.EnvironmentConfig.setVerboseDeadlock(boolean) replaced by `EnvironmentConfig.setVerbose(com.sleepycat.db.VerboseConfig, boolean)`
  com.sleepycat.db.EnvironmentConfig.setVerboseRecovery(boolean) replaced by `EnvironmentConfig.setVerbose(com.sleepycat.db.VerboseConfig, boolean)`
  com.sleepycat.db.EnvironmentConfig.setVerboseRegister(boolean) replaced by `EnvironmentConfig.setVerbose(com.sleepycat.db.VerboseConfig, boolean)`
  com.sleepycat.db.EnvironmentConfig.setVerboseReplication(boolean) replaced by `EnvironmentConfig.setVerbose(com.sleepycat.db.VerboseConfig, boolean)`
  com.sleepycat.db.EnvironmentConfig.setVerboseWaitsFor(boolean) replaced by `EnvironmentConfig.setVerbose(com.sleepycat.db.VerboseConfig, boolean)`

Copyright (c) 1996, 2017 Oracle and/or its affiliates. All rights reserved.