# Deprecated API

## Contents

- Deprecated Interfaces
- Deprecated Methods

Deprecated Interfaces
Interface and Description
com.foundationdb.sql.jdbc.PGRefCursorResultSet As of 8.0, this interface is only present for backwards- compatibility purposes. New code should call getString() on the ResultSet that contains the refcursor to obtain the underlying cursor name.

Deprecated Methods
Method and Description
com.foundationdb.sql.jdbc.PGConnection.addDataType(String, String) As of 8.0, replaced by `PGConnection.addDataType(String,Class)`. This deprecated method does not work correctly for registering classes that cannot be directly loaded by the JDBC driver's classloader.
com.foundationdb.sql.jdbc.largeobject.LargeObjectManager.create() As of 8.3, replaced by `LargeObjectManager.createLO()`
com.foundationdb.sql.jdbc.largeobject.LargeObjectManager.create(int) As of 8.3, replaced by `LargeObjectManager.createLO(int)`
com.foundationdb.sql.jdbc.largeobject.LargeObjectManager.delete(int) As of 8.3, replaced by `LargeObjectManager.delete(long)`
com.foundationdb.sql.jdbc.largeobject.LargeObject.getOID() As of 8.3, replaced by `LargeObject.getLongOID()`
com.foundationdb.sql.jdbc.PGRefCursorResultSet.getRefCursor() As of 8.0, replaced with calling getString() on the ResultSet that this ResultSet was obtained from.
com.foundationdb.sql.jdbc.largeobject.LargeObjectManager.open(int) As of 8.3, replaced by `LargeObjectManager.open(long)`
com.foundationdb.sql.jdbc.largeobject.LargeObjectManager.open(int, int) As of 8.3, replaced by `LargeObjectManager.open(long, int)`
com.foundationdb.sql.jdbc.PGStatement.setUseServerPrepare(boolean) As of build 302, replaced by `PGStatement.setPrepareThreshold(int)`
com.foundationdb.sql.jdbc.largeobject.LargeObjectManager.unlink(int) As of 8.3, replaced by `LargeObjectManager.unlink(long)`