# Deprecated API

## Contents

- Terminally Deprecated
- Interfaces
- Classes
- Exceptions
- Fields
- Methods
- Enum Constants

Terminally Deprecated Elements
Element
Description
org.firebirdsql.gds.GDSException
Use a normal SQLException or subclass, this class may be removed in Jaybird 7 or later
org.firebirdsql.gds.impl.GDSFactoryPlugin.getSupportedProtocols()
Use `GDSFactoryPlugin.getSupportedProtocolList()`, may be removed in Jaybird 7 or later
org.firebirdsql.gds.impl.GDSFactoryPlugin.getTypeAliases()
Use `GDSFactoryPlugin.getTypeAliasList()`, may be removed in Jaybird 7 or later
org.firebirdsql.gds.impl.GDSHelper.startTransaction(TransactionParameterBuffer)
Will be removed in Jaybird 7, use `FbDatabase.startTransaction(TransactionParameterBuffer)` and `GDSHelper.setCurrentTransaction(FbTransaction)`
org.firebirdsql.gds.impl.wire.WireGDSFactoryPlugin.getSupportedProtocols()
org.firebirdsql.gds.impl.wire.WireGDSFactoryPlugin.getTypeAliases()
org.firebirdsql.gds.ISCConstants.isc_err_max
This constant will be removed in Jaybird 7
org.firebirdsql.gds.ISCConstants.isc_isc_sql_dialect_conflict_num
This constant will be removed in Jaybird 7
org.firebirdsql.gds.JaybirdErrorCodes.jb_stmtInErrorRequireCLose
use `JaybirdErrorCodes.jb_stmtInErrorRequireClose`
org.firebirdsql.gds.ng.SqlCountHolder.getLongDeleteCount()
Use `SqlCountHolder.deleteCount()`, will be removed in Jaybird 7
org.firebirdsql.gds.ng.SqlCountHolder.getLongInsertCount()
Use `SqlCountHolder.insertCount()`, will be removed in Jaybird 7
org.firebirdsql.gds.ng.SqlCountHolder.getLongSelectCount()
Use `SqlCountHolder.selectCount()`, will be removed in Jaybird 7
org.firebirdsql.gds.ng.SqlCountHolder.getLongUpdateCount()
Use `SqlCountHolder.updateCount()`, will be removed in Jaybird 7
org.firebirdsql.jdbc.FBSQLException
Unused, will be removed in Jaybird 7
org.firebirdsql.jdbc.FBStatement.getCurrentResultSet()
Use `FBStatement.getResultSet()` instead, will be removed in Jaybird 7
org.firebirdsql.jdbc.FirebirdStatement.getCurrentResultSet()
Use `Statement.getResultSet()` instead, will be removed in Jaybird 7
org.firebirdsql.jdbc.QuoteStrategy.NO_QUOTES
Will be removed in Jaybird 7, use `QuoteStrategy.DIALECT_1` instead
org.firebirdsql.jdbc.QuoteStrategy.QUOTES
Will be removed in Jaybird 7, use `QuoteStrategy.DIALECT_3` instead
org.firebirdsql.jdbc.SQLStateConstants.SQL_STATE_CONNECTION_CLOSED
Use `SQLStateConstants.SQL_STATE_CONNECTION_FAILURE`; will be removed in Jaybird 7
org.firebirdsql.management.FBServiceManager.getHost()
org.firebirdsql.management.FBServiceManager.getPort()
org.firebirdsql.management.FBServiceManager.setHost(String)
org.firebirdsql.management.FBServiceManager.setPort(int)
org.firebirdsql.management.ServiceManager.getHost()
Use `AttachmentProperties.getServerName()`; will be removed in Jaybird 6 or later
org.firebirdsql.management.ServiceManager.getPort()
Use `AttachmentProperties.getPortNumber()`; will be removed in Jaybird 6 or later
org.firebirdsql.management.ServiceManager.setHost(String)
Use `AttachmentProperties.setServerName(String)`; will be removed in Jaybird 6 or later
org.firebirdsql.management.ServiceManager.setPort(int)
Use `AttachmentProperties.setPortNumber(int)`; will be removed in Jaybird 6 or later

Deprecated Interfaces
Interface
Description
org.firebirdsql.management.User
Use the SQL user management statements instead, we currently do not plan to remove this API
org.firebirdsql.management.UserManager
Use the SQL user management statements instead, we currently do not plan to remove this API

Deprecated Classes
Class
Description
org.firebirdsql.management.FBUser
Use the SQL user management statements instead, we currently do not plan to remove this API
org.firebirdsql.management.FBUserManager
Use the SQL user management statements instead, we currently do not plan to remove this API

Deprecated Exceptions
Exceptions
Description
org.firebirdsql.gds.GDSException
Use a normal SQLException or subclass, this class may be removed in Jaybird 7 or later
org.firebirdsql.jdbc.FBSQLException
Unused, will be removed in Jaybird 7

Deprecated Fields
Field
Description
org.firebirdsql.gds.ISCConstants.isc_err_max
This constant will be removed in Jaybird 7
org.firebirdsql.gds.ISCConstants.isc_isc_sql_dialect_conflict_num
This constant will be removed in Jaybird 7
org.firebirdsql.gds.ISCConstants.SQL_DEC_FIXED
org.firebirdsql.gds.JaybirdErrorCodes.jb_blobPutSegmentTooLong
Jaybird no longer uses this error code
org.firebirdsql.gds.JaybirdErrorCodes.jb_resultSetTypeUpgradeReasonHoldability
Jaybird no longer uses this error code
org.firebirdsql.gds.JaybirdErrorCodes.jb_statementNotAssociatedWithConnection
Jaybird no longer uses this error code
org.firebirdsql.gds.JaybirdErrorCodes.jb_stmtInErrorRequireCLose
use `JaybirdErrorCodes.jb_stmtInErrorRequireClose`
org.firebirdsql.jdbc.SQLStateConstants.SQL_STATE_CONNECTION_CLOSED
Use `SQLStateConstants.SQL_STATE_CONNECTION_FAILURE`; will be removed in Jaybird 7

Deprecated Methods
Method
Description
org.firebirdsql.ds.AbstractConnectionPropertiesDataSource.getUserName()
org.firebirdsql.ds.AbstractConnectionPropertiesDataSource.setUserName(String)
org.firebirdsql.gds.impl.GDSFactoryPlugin.getSupportedProtocols()
Use `GDSFactoryPlugin.getSupportedProtocolList()`, may be removed in Jaybird 7 or later
org.firebirdsql.gds.impl.GDSFactoryPlugin.getTypeAliases()
Use `GDSFactoryPlugin.getTypeAliasList()`, may be removed in Jaybird 7 or later
org.firebirdsql.gds.impl.GDSHelper.startTransaction(TransactionParameterBuffer)
Will be removed in Jaybird 7, use `FbDatabase.startTransaction(TransactionParameterBuffer)` and `GDSHelper.setCurrentTransaction(FbTransaction)`
org.firebirdsql.gds.impl.wire.WireGDSFactoryPlugin.getSupportedProtocols()
org.firebirdsql.gds.impl.wire.WireGDSFactoryPlugin.getTypeAliases()
org.firebirdsql.gds.ng.SqlCountHolder.getLongDeleteCount()
Use `SqlCountHolder.deleteCount()`, will be removed in Jaybird 7
org.firebirdsql.gds.ng.SqlCountHolder.getLongInsertCount()
Use `SqlCountHolder.insertCount()`, will be removed in Jaybird 7
org.firebirdsql.gds.ng.SqlCountHolder.getLongSelectCount()
Use `SqlCountHolder.selectCount()`, will be removed in Jaybird 7
org.firebirdsql.gds.ng.SqlCountHolder.getLongUpdateCount()
Use `SqlCountHolder.updateCount()`, will be removed in Jaybird 7
org.firebirdsql.jdbc.FBCallableStatement.getBigDecimal(int, int)
org.firebirdsql.jdbc.FBConnection.setTransactionParameters(int, int[])
org.firebirdsql.jdbc.FBPreparedStatement.setUnicodeStream(int, InputStream, int)
org.firebirdsql.jdbc.FBResultSet.getBigDecimal(int, int)
org.firebirdsql.jdbc.FBResultSet.getBigDecimal(String, int)
org.firebirdsql.jdbc.FBResultSet.getUnicodeStream(int)
org.firebirdsql.jdbc.FBResultSet.getUnicodeStream(String)
org.firebirdsql.jdbc.FBStatement.getCurrentResultSet()
Use `FBStatement.getResultSet()` instead, will be removed in Jaybird 7
org.firebirdsql.jdbc.FirebirdConnection.setTransactionParameters(int, int[])
use `FirebirdConnection.setTransactionParameters(int, TransactionParameterBuffer)` instead.
org.firebirdsql.jdbc.FirebirdConnectionProperties.getUserName()
Use `AttachmentProperties.getUser()` instead; will be retained indefinitely for compatibility
org.firebirdsql.jdbc.FirebirdConnectionProperties.setUserName(String)
Use `AttachmentProperties.setUser(String)`; will be retained indefinitely for compatibility
org.firebirdsql.jdbc.FirebirdStatement.getCurrentResultSet()
Use `Statement.getResultSet()` instead, will be removed in Jaybird 7
org.firebirdsql.jdbc.FirebirdStatement.getLastExecutionPlan()
use `FirebirdStatement.getExecutionPlan()`; there are currently no plans to remove this method
org.firebirdsql.jdbc.FirebirdStatement.getLastExplainedExecutionPlan()
use `FirebirdStatement.getExplainedExecutionPlan()`; there are currently no plans to remove this method
org.firebirdsql.management.FBServiceManager.getHost()
org.firebirdsql.management.FBServiceManager.getPort()
org.firebirdsql.management.FBServiceManager.setHost(String)
org.firebirdsql.management.FBServiceManager.setPort(int)
org.firebirdsql.management.ServiceManager.getHost()
Use `AttachmentProperties.getServerName()`; will be removed in Jaybird 6 or later
org.firebirdsql.management.ServiceManager.getPort()
Use `AttachmentProperties.getPortNumber()`; will be removed in Jaybird 6 or later
org.firebirdsql.management.ServiceManager.setHost(String)
Use `AttachmentProperties.setServerName(String)`; will be removed in Jaybird 6 or later
org.firebirdsql.management.ServiceManager.setPort(int)
Use `AttachmentProperties.setPortNumber(int)`; will be removed in Jaybird 6 or later

Deprecated Enum Constants
Enum Constant
Description
org.firebirdsql.jdbc.QuoteStrategy.NO_QUOTES
Will be removed in Jaybird 7, use `QuoteStrategy.DIALECT_1` instead
org.firebirdsql.jdbc.QuoteStrategy.QUOTES
Will be removed in Jaybird 7, use `QuoteStrategy.DIALECT_3` instead