Class Version12Descriptor
- java.lang.Object
-
- org.firebirdsql.gds.ng.wire.AbstractProtocolDescriptor
-
- org.firebirdsql.gds.ng.wire.version12.Version12Descriptor
-
- All Implemented Interfaces:
ProtocolDescriptor
public final class Version12Descriptor extends AbstractProtocolDescriptor implements ProtocolDescriptor
TheProtocolDescriptor
for the Firebird version 12 protocol. This version applies to Firebird 2.5, but also works with newer Firebird versions.- Since:
- 3.0
- Author:
- Mark Rotteveel
-
-
Constructor Summary
Constructors Constructor Description Version12Descriptor()
-
Method Summary
-
Methods inherited from class org.firebirdsql.gds.ng.wire.AbstractProtocolDescriptor
createAttachServiceParameterBuffer, createDatabaseParameterBuffer, equals, getArchitecture, getMaximumType, getMinimumType, getVersion, getWeight, hashCode, supportsWireCompression
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.firebirdsql.gds.ng.wire.ProtocolDescriptor
createAttachServiceParameterBuffer, createDatabaseParameterBuffer, getArchitecture, getMaximumType, getMinimumType, getVersion, getWeight, supportsWireCompression
-
-
-
-
Method Detail
-
createDatabase
public FbWireDatabase createDatabase(WireDatabaseConnection connection)
Description copied from interface:ProtocolDescriptor
CreateFbWireDatabase
implementation for this protocol.- Specified by:
createDatabase
in interfaceProtocolDescriptor
- Parameters:
connection
- WireDatabaseConnection to this database- Returns:
- FbWireDatabase implementation
-
createService
public FbWireService createService(WireServiceConnection connection)
Description copied from interface:ProtocolDescriptor
CreateFbWireService
implementation for this protocol.- Specified by:
createService
in interfaceProtocolDescriptor
- Parameters:
connection
- WireServiceConnection to this service- Returns:
- FbWireService implementation
-
createServiceParameterBuffer
public ServiceParameterBuffer createServiceParameterBuffer(WireServiceConnection connection)
Description copied from interface:ProtocolDescriptor
Creates a normalServiceParameterBuffer
.- Specified by:
createServiceParameterBuffer
in interfaceProtocolDescriptor
- Parameters:
connection
- Connection- Returns:
- ServiceParameterBuffer implementation
-
createServiceRequestBuffer
public ServiceRequestBuffer createServiceRequestBuffer(WireServiceConnection connection)
- Specified by:
createServiceRequestBuffer
in interfaceProtocolDescriptor
- Returns:
- An empty service request buffer
-
createTransaction
public FbWireTransaction createTransaction(FbWireDatabase database, int transactionHandle, TransactionState initialState)
Description copied from interface:ProtocolDescriptor
CreateFbTransaction
implementation for this protocol.- Specified by:
createTransaction
in interfaceProtocolDescriptor
- Parameters:
database
- FbWireDatabase of the current databasetransactionHandle
- Transaction handleinitialState
- Initial transaction state (eitherTransactionState.ACTIVE
orTransactionState.PREPARED
).- Returns:
- FbTransaction implementation
-
createStatement
public FbWireStatement createStatement(FbWireDatabase database)
Description copied from interface:ProtocolDescriptor
CreateFbStatement
implementation for this protocol.- Specified by:
createStatement
in interfaceProtocolDescriptor
- Parameters:
database
- FbWireDatabase of the current database- Returns:
- FbStatement implementation
-
createBlrCalculator
public BlrCalculator createBlrCalculator(FbWireDatabase database)
Description copied from interface:ProtocolDescriptor
CreateBlrCalculator
implementation for this protocol version.- Specified by:
createBlrCalculator
in interfaceProtocolDescriptor
- Parameters:
database
- FbWireDatabase of the current database- Returns:
- BlrCalculator implementation
-
createOutputBlob
public FbWireBlob createOutputBlob(FbWireDatabase database, FbWireTransaction transaction, BlobParameterBuffer blobParameterBuffer)
Description copied from interface:ProtocolDescriptor
Create an outputFbWireBlob
implementation for this protocol version.- Specified by:
createOutputBlob
in interfaceProtocolDescriptor
- Parameters:
database
- FbWireDatabase of the current databasetransaction
- FbWireTransaction to associate with the blobblobParameterBuffer
- Blob Parameter Buffer- Returns:
- FbWireBlob implementation
-
createInputBlob
public FbWireBlob createInputBlob(FbWireDatabase database, FbWireTransaction transaction, BlobParameterBuffer blobParameterBuffer, long blobId)
Description copied from interface:ProtocolDescriptor
Create an inputFbWireBlob
implementation for this protocol version.- Specified by:
createInputBlob
in interfaceProtocolDescriptor
- Parameters:
database
- FbWireDatabase of the current databasetransaction
- FbWireTransaction to associate with the blobblobParameterBuffer
- Blob Parameter BufferblobId
- Blob Id (must be non-zero for input blob)- Returns:
- FbWireBlob implementation
-
createAsynchronousChannel
public FbWireAsynchronousChannel createAsynchronousChannel(FbWireDatabase database)
Description copied from interface:ProtocolDescriptor
Create a disconnected asynchronous channel.- Specified by:
createAsynchronousChannel
in interfaceProtocolDescriptor
- Parameters:
database
- The parent database handle.- Returns:
- Asynchronous channel implementation
-
getParameterConverter
protected ParameterConverter<WireDatabaseConnection,WireServiceConnection> getParameterConverter()
- Specified by:
getParameterConverter
in classAbstractProtocolDescriptor
- Returns:
ParameterConverter
for populating the database parameter buffer.
-
createWireOperations
public FbWireOperations createWireOperations(WireConnection<?,?> connection, WarningMessageCallback defaultWarningMessageCallback)
Description copied from interface:ProtocolDescriptor
Create anFbWireOperations
implementation for this protocol version.- Specified by:
createWireOperations
in interfaceProtocolDescriptor
- Parameters:
connection
- WireConnection instance (non-null
)defaultWarningMessageCallback
- default warning message callback (non-null
)- Returns:
- Wire operations implementation
-
-