Top Fields Constructors Methods
com.mysql.cj.protocol.a

public Class ColumnDefinitionReader

extends Object
implements ProtocolEntityReader<ColumnDefinition, NativePacketPayload>
Class Inheritance
All Implemented Interfaces
com.mysql.cj.protocol.ProtocolEntityReader
Imports
com.mysql.cj.MysqlType, com.mysql.cj.protocol.ColumnDefinition, .ProtocolEntityFactory, .ProtocolEntityReader, com.mysql.cj.protocol.a.NativeConstants.IntegerDataType, com.mysql.cj.result.Field, com.mysql.cj.util.LazyString

Field Summary

Modifier and TypeField and Description
private NativeProtocol

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ColumnDefinition
protected Field

Returns:

the unpacked field
unpackField
(NativePacketPayload
the packet containing the field information
packet
,
String
encoding of the metadata in the packet
characterSetMetadata
)

Unpacks the Field information from the given packet.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

protocolback to summary
private NativeProtocol protocol

Constructor Detail

ColumnDefinitionReaderback to summary
public ColumnDefinitionReader(NativeProtocol prot)

Method Detail

readback to summary
public ColumnDefinition read(ProtocolEntityFactory<ColumnDefinition, NativePacketPayload> sf)

Overrides default com.mysql.cj.protocol.ProtocolEntityReader.read.

Parameters
sf:ProtocolEntityFactory<ColumnDefinition, NativePacketPayload>

Doc from com.mysql.cj.protocol.ProtocolEntityReader.read.

ProtocolEntityFactory instance

Returns:ColumnDefinition

Doc from com.mysql.cj.protocol.ProtocolEntityReader.read.

ProtocolEntity instance

Annotations
@Override
unpackFieldback to summary
protected Field unpackField(NativePacketPayload packet, String characterSetMetadata)

Unpacks the Field information from the given packet.

Parameters
packet:NativePacketPayload

the packet containing the field information

characterSetMetadata:String

encoding of the metadata in the packet

Returns:Field

the unpacked field