java.lang.Object
org.firebirdsql.gds.ng.AbstractConnection<T,C>
org.firebirdsql.gds.ng.wire.WireConnection<IServiceProperties,FbWireService>
org.firebirdsql.gds.ng.wire.WireServiceConnection
- All Implemented Interfaces:
Closeable,AutoCloseable
Wire connection instance for connecting to a service.
- Since:
- 3.0
- Author:
- Mark Rotteveel
-
Field Summary
Fields inherited from class org.firebirdsql.gds.ng.AbstractConnection
attachProperties -
Constructor Summary
ConstructorsConstructorDescriptionWireServiceConnection(IServiceProperties serviceProperties) Creates a WireServiceConnection (without establishing a connection to the server) with the default protocol collection.WireServiceConnection(IServiceProperties serviceProperties, IEncodingFactory encodingFactory, ProtocolCollection protocols) Creates a WireServiceConnection (without establishing a connection to the server). -
Method Summary
Modifier and TypeMethodDescriptionprotected FbWireServicecreateConnectionHandle(ProtocolDescriptor protocolDescriptor) Creates the connection handle for this type of connection.protected Stringprotected DbAttachInfotoDbAttachInfo(IServiceProperties attachProperties) Methods inherited from class org.firebirdsql.gds.ng.wire.WireConnection
clearAuthData, close, getAttachObjectName, getClientAuthBlock, getPortNumber, getProtocolArchitecture, getProtocolMinimumType, getProtocolVersion, getServerName, getXdrStreamAccess, identify, isConnected, readNextOperation, resetSocketTimeout, setSoTimeout, socketConnect, writeDirectMethods inherited from class org.firebirdsql.gds.ng.AbstractConnection
createDbCryptCallback, getAttachProperties, getEncoding, getEncodingDefinition, getEncodingFactory, isLockedByCurrentThread, withLock
-
Constructor Details
-
WireServiceConnection
Creates a WireServiceConnection (without establishing a connection to the server) with the default protocol collection.- Parameters:
serviceProperties- Service properties- Throws:
SQLException
-
WireServiceConnection
public WireServiceConnection(IServiceProperties serviceProperties, IEncodingFactory encodingFactory, ProtocolCollection protocols) throws SQLException Creates a WireServiceConnection (without establishing a connection to the server).- Parameters:
serviceProperties- Service propertiesencodingFactory- Factory for encoding definitionsprotocols- The collection of protocols to use for this connection.- Throws:
SQLException
-
-
Method Details
-
getCnctFile
- Overrides:
getCnctFilein classWireConnection<IServiceProperties,FbWireService> - Returns:
- The file name to use in the p_cnct_file of the op_connect request
-
toDbAttachInfo
- Specified by:
toDbAttachInfoin classWireConnection<IServiceProperties,FbWireService> - Throws:
SQLException
-
createConnectionHandle
Description copied from class:WireConnectionCreates the connection handle for this type of connection.- Specified by:
createConnectionHandlein classWireConnection<IServiceProperties,FbWireService> - Parameters:
protocolDescriptor- The protocol descriptor selected by the identify phase- Returns:
- Connection handle
-