Class V12Database
- java.lang.Object
- 
- org.firebirdsql.gds.ng.AbstractFbAttachment<T>
- 
- org.firebirdsql.gds.ng.AbstractFbDatabase<WireDatabaseConnection>
- 
- org.firebirdsql.gds.ng.wire.AbstractFbWireDatabase
- 
- org.firebirdsql.gds.ng.wire.version10.V10Database
- 
- org.firebirdsql.gds.ng.wire.version11.V11Database
- 
- org.firebirdsql.gds.ng.wire.version12.V12Database
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- java.lang.AutoCloseable,- FbAttachment,- FbDatabase,- ExceptionListenable,- TransactionListener,- FbWireAttachment,- FbWireDatabase
 - Direct Known Subclasses:
- V13Database
 
 public class V12Database extends V11Database FbWireDatabaseimplementation for the version 12 wire protocol.- Since:
- 3.0
- Author:
- Mark Rotteveel
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.firebirdsql.gds.ng.wire.FbWireAttachmentFbWireAttachment.AcceptPacket
 
- 
 - 
Field Summary- 
Fields inherited from class org.firebirdsql.gds.ng.wire.AbstractFbWireDatabaseprotocolDescriptor, wireOperations
 - 
Fields inherited from class org.firebirdsql.gds.ng.AbstractFbDatabasedatabaseListenerDispatcher
 - 
Fields inherited from class org.firebirdsql.gds.ng.AbstractFbAttachmentconnection, exceptionListenerDispatcher
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedV12Database(WireDatabaseConnection connection, ProtocolDescriptor descriptor)Creates a V12Database instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelOperation(int kind)Cancels the current operation.protected EncodinggetFilenameEncoding(DatabaseParameterBuffer dpb)Gets theEncodingto use for the database filename.- 
Methods inherited from class org.firebirdsql.gds.ng.wire.version11.V11DatabasereleaseObject
 - 
Methods inherited from class org.firebirdsql.gds.ng.wire.version10.V10DatabaseafterAttachActions, attach, attachOrCreate, authReceiveResponse, createDatabase, createStatement, doReleaseObjectPacket, dropDatabase, executeImmediate, getBlrCalculator, getTransactionIdBuffer, initAsynchronousChannel, internalDetach, processAttachOrCreateResponse, processReleaseObjectResponse, reconnectTransaction, sendAttachOrCreateToBuffer, startTransaction
 - 
Methods inherited from class org.firebirdsql.gds.ng.wire.AbstractFbWireDatabasecancelEvent, checkAttached, checkConnected, closeConnection, consumePackets, countEvents, createBlobForInput, createBlobForOutput, createEventHandle, enqueueDeferredAction, finalize, forceClose, getDatabaseInfo, getHandle, getInfo, getWireOperations, getXdrIn, getXdrOut, getXdrStreamAccess, isAttached, queueEvent, readGenericResponse, readResponse, readSqlResponse, setNetworkTimeout
 - 
Methods inherited from class org.firebirdsql.gds.ng.AbstractFbDatabaseaddDatabaseListener, addWeakDatabaseListener, close, createBlobParameterBuffer, createTransactionParameterBuffer, emptyRowDescriptor, getActiveTransactionCount, getConnectionDialect, getConnectionProperties, getDatabaseDialect, getDatabaseInfo, getDatabaseInformationProcessor, getDatabaseWarningCallback, getDescribeDatabaseInfoBlock, getOdsMajor, getOdsMinor, getParameterDescriptionInfoRequestItems, getStatementInfoRequestItems, removeDatabaseListener, setDatabaseDialect, setOdsMajor, setOdsMinor, transactionAdded, transactionStateChanged
 - 
Methods inherited from class org.firebirdsql.gds.ng.AbstractFbAttachmentaddExceptionListener, getDatatypeCoder, getEncoding, getEncodingFactory, getNetworkTimeout, getServerVersion, getServerVersionInformation, isLockedByCurrentThread, removeExceptionListener, safelyDetach, setAttached, setDetached, setServerVersion, withLock
 - 
Methods inherited from class java.lang.Objectclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.firebirdsql.gds.ng.listeners.ExceptionListenableaddExceptionListener, removeExceptionListener
 - 
Methods inherited from interface org.firebirdsql.gds.ng.FbAttachmentclose, forceClose, getDatatypeCoder, getEncoding, getEncodingFactory, getNetworkTimeout, getServerVersion, isAttached, isLockedByCurrentThread, setNetworkTimeout, withLock
 - 
Methods inherited from interface org.firebirdsql.gds.ng.FbDatabaseaddDatabaseListener, addWeakDatabaseListener, cancelEvent, countEvents, createBlobForInput, createBlobForInput, createBlobForInput, createBlobForOutput, createBlobForOutput, createBlobForOutput, createBlobParameterBuffer, createEventHandle, createTransactionParameterBuffer, emptyRowDescriptor, getConnectionDialect, getConnectionProperties, getDatabaseDialect, getDatabaseInfo, getDatabaseInfo, getHandle, getOdsMajor, getOdsMinor, queueEvent, removeDatabaseListener
 - 
Methods inherited from interface org.firebirdsql.gds.ng.wire.FbWireAttachmentgetWireOperations, getXdrStreamAccess, readGenericResponse
 - 
Methods inherited from interface org.firebirdsql.gds.ng.wire.FbWireDatabaseconsumePackets, enqueueDeferredAction, getInfo, readResponse, readSqlResponse
 
- 
 
- 
- 
- 
Constructor Detail- 
V12Databaseprotected 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 Detail- 
cancelOperationpublic void cancelOperation(int kind) throws java.sql.SQLExceptionDescription copied from interface:FbDatabaseCancels 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:
- cancelOperationin interface- FbDatabase
- Overrides:
- cancelOperationin class- V10Database
- Parameters:
- kind- Cancellation type
- Throws:
- java.sql.SQLException- For errors cancelling, or if the cancel operation is not supported.
 
 - 
getFilenameEncodingprotected Encoding getFilenameEncoding(DatabaseParameterBuffer dpb) Gets theEncodingto use for the database filename.For version 12 always returns the UTF8 encoding. - Overrides:
- getFilenameEncodingin class- V10Database
- Parameters:
- dpb- Database parameter buffer
- Returns:
- Encoding
- See Also:
- V12ParameterConverter
 
 
- 
 
-