All Implemented Interfaces:
AutoCloseable, FbAttachment, FbDatabase, ExceptionListenable, TransactionListener, FbWireAttachment, FbWireDatabase
Direct Known Subclasses:
V13Database

public class V12Database extends V11Database
FbWireDatabase implementation for the version 12 wire protocol.
Since:
3.0
Author:
Mark Rotteveel
  • Constructor Details

    • V12Database

      protected V12Database(WireDatabaseConnection connection, ProtocolDescriptor descriptor)
      Creates a V12Database instance.
      Parameters:
      connection - A WireConnection with an established connection to the server.
      descriptor - The ProtocolDescriptor that created this connection (this is used for creating further dependent objects).
  • Method Details

    • cancelOperation

      public void cancelOperation(int kind) throws SQLException
      Description copied from interface: FbDatabase
      Cancels the current operation.

      The cancellation types are:

      ISCConstants.fb_cancel_disable
      disables execution of fb_cancel_raise requests for the specified attachment. It can be useful when your program is executing critical operations, such as cleanup, for example.
      ISCConstants.fb_cancel_enable
      re-enables delivery of a cancel execution that was previously disabled. The 'cancel' state is effective by default, being initialized when the attachment is created.
      ISCConstants.fb_cancel_raise
      cancels any activity related to the database handle. The effect will be that, as soon as possible, the engine will try to stop the running request and return an exception to the caller
      ISCConstants.fb_cancel_abort
      forcibly close client side of connection. Useful if you need to close a connection urgently. All active transactions will be rolled back by the server. 'Success' is always returned to the application. Use with care!

      Specified by:
      cancelOperation in interface FbDatabase
      Overrides:
      cancelOperation in class V10Database
      Parameters:
      kind - Cancellation type
      Throws:
      SQLException - For errors cancelling, or if the cancel operation is not supported.
    • getFilenameEncoding

      protected Encoding getFilenameEncoding(DatabaseParameterBuffer dpb)
      Gets the Encoding to use for the database filename.

      For version 12 always returns the UTF8 encoding.

      Overrides:
      getFilenameEncoding in class V10Database
      Parameters:
      dpb - Database parameter buffer
      Returns:
      Encoding
      See Also: