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,
boolean supportsWireCompression,
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() |
boolean |
supportsWireCompression() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcreateAsynchronousChannel, createBlrCalculator, createDatabase, createInputBlob, createOutputBlob, createService, createServiceParameterBuffer, createServiceRequestBuffer, createStatement, createTransaction, createWireOperationsprotected AbstractProtocolDescriptor(int version,
int architecture,
int minimumType,
int maximumType,
boolean supportsWireCompression,
int weight)
version - Version of the protocolarchitecture - Architecture of the protocolminimumType - Minimum supported protocol typemaximumType - Maximum supported protocol typesupportsWireCompression - true if this version supports zlib wire compressionweight - Selection weight (higher values have higher preference)public final int getVersion()
getVersion in interface ProtocolDescriptorpublic final int getArchitecture()
getArchitecture in interface ProtocolDescriptorpublic final int getMinimumType()
getMinimumType in interface ProtocolDescriptorpublic final int getMaximumType()
getMaximumType in interface ProtocolDescriptorpublic final boolean supportsWireCompression()
supportsWireCompression in interface ProtocolDescriptortrue when zlib wire compression is supportedpublic final int getWeight()
getWeight in interface ProtocolDescriptorpublic final int hashCode()
hashCode in class java.lang.Objectversion, 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.Objectpublic final DatabaseParameterBuffer createDatabaseParameterBuffer(WireDatabaseConnection connection) throws java.sql.SQLException
ProtocolDescriptorDatabaseParameterBuffer implementation and populate it with supported
properties for this protocol version.createDatabaseParameterBuffer in interface ProtocolDescriptorconnection - Connectionjava.sql.SQLExceptionpublic final ServiceParameterBuffer createAttachServiceParameterBuffer(WireServiceConnection connection) throws java.sql.SQLException
ProtocolDescriptorServiceParameterBuffer implementation and populate it with supported properties for
this protocol version.createAttachServiceParameterBuffer in interface ProtocolDescriptorconnection - Connectionjava.sql.SQLExceptionprotected abstract ParameterConverter<WireDatabaseConnection,WireServiceConnection> getParameterConverter()
ParameterConverter for populating the database parameter buffer.Copyright © 2001-2022 Jaybird (Firebird JDBC/JCA) team. All rights reserved.