public abstract class AbstractProtocolDescriptor extends java.lang.Object implements ProtocolDescriptor
ProtocolDescriptor
Modifier | Constructor and Description |
---|---|
protected |
AbstractProtocolDescriptor(int version,
int architecture,
int minimumType,
int maximumType,
int weight)
Initializes the basic ProtocolDescriptor fields.
|
Modifier and Type | Method and Description |
---|---|
ServiceParameterBuffer |
createAttachServiceParameterBuffer(WireServiceConnection connection)
Create an attach
ServiceParameterBuffer implementation and populate it with supported properties for
this protocol version. |
DatabaseParameterBuffer |
createDatabaseParameterBuffer(WireDatabaseConnection connection)
Create
DatabaseParameterBuffer implementation and populate it with supported
properties for this protocol version. |
boolean |
equals(java.lang.Object other) |
int |
getArchitecture() |
int |
getMaximumType() |
int |
getMinimumType() |
protected abstract ParameterConverter<WireDatabaseConnection,WireServiceConnection> |
getParameterConverter() |
int |
getVersion() |
int |
getWeight() |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
createAsynchronousChannel, createBlrCalculator, createDatabase, createInputBlob, createOutputBlob, createService, createServiceParameterBuffer, createServiceRequestBuffer, createStatement, createTransaction, createWireOperations
protected AbstractProtocolDescriptor(int version, int architecture, int minimumType, int maximumType, int weight)
version
- Version of the protocolarchitecture
- Architecture of the protocolminimumType
- Minimum supported protocol typemaximumType
- Maximum supported protocol typeweight
- Preference weightpublic final int getVersion()
getVersion
in interface ProtocolDescriptor
public final int getArchitecture()
getArchitecture
in interface ProtocolDescriptor
public final int getMinimumType()
getMinimumType
in interface ProtocolDescriptor
public final int getMaximumType()
getMaximumType
in interface ProtocolDescriptor
public final int getWeight()
getWeight
in interface ProtocolDescriptor
public final int hashCode()
hashCode
in class java.lang.Object
version
, architecture
, minimumType
, maximumType
and
weight
.public boolean equals(java.lang.Object other)
Default implementation for the rules described in ProtocolDescriptor
. Returns true
if the other
object is of the exact same class as this instance.
equals
in class java.lang.Object
public final DatabaseParameterBuffer createDatabaseParameterBuffer(WireDatabaseConnection connection) throws java.sql.SQLException
ProtocolDescriptor
DatabaseParameterBuffer
implementation and populate it with supported
properties for this protocol version.createDatabaseParameterBuffer
in interface ProtocolDescriptor
connection
- Connectionjava.sql.SQLException
public final ServiceParameterBuffer createAttachServiceParameterBuffer(WireServiceConnection connection) throws java.sql.SQLException
ProtocolDescriptor
ServiceParameterBuffer
implementation and populate it with supported properties for
this protocol version.createAttachServiceParameterBuffer
in interface ProtocolDescriptor
connection
- Connectionjava.sql.SQLException
protected abstract ParameterConverter<WireDatabaseConnection,WireServiceConnection> getParameterConverter()
ParameterConverter
for populating the database parameter buffer.Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.