类 AbstractValueEncoder
- java.lang.Object
-
- com.mysql.cj.protocol.a.AbstractValueEncoder
-
- 所有已实现的接口:
ValueEncoder
- 直接已知子类:
BooleanValueEncoder,ByteArrayValueEncoder,DurationValueEncoder,InputStreamValueEncoder,InstantValueEncoder,LocalDateTimeValueEncoder,LocalDateValueEncoder,LocalTimeValueEncoder,NumberValueEncoder,OffsetDateTimeValueEncoder,OffsetTimeValueEncoder,ReaderValueEncoder,SqlDateValueEncoder,SqlTimestampValueEncoder,SqlTimeValueEncoder,StringValueEncoder,UtilCalendarValueEncoder,UtilDateValueEncoder,ZonedDateTimeValueEncoder
public abstract class AbstractValueEncoder extends Object implements ValueEncoder
-
-
字段概要
字段 修饰符和类型 字段 说明 protected RuntimeProperty<String>charEncodingprotected ExceptionInterceptorexceptionInterceptorprotected RuntimeProperty<Boolean>preserveInstantsprotected PropertySetpropertySetprotected RuntimeProperty<Boolean>sendFractionalSecondsprotected RuntimeProperty<Boolean>sendFractionalSecondsForTimeprotected ServerSessionserverSession
-
构造器概要
构造器 构造器 说明 AbstractValueEncoder()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected java.time.DurationadjustDuration(java.time.Duration x, Field f)protected java.time.LocalDateTimeadjustLocalDateTime(java.time.LocalDateTime x, Field f)protected java.time.LocalTimeadjustLocalTime(java.time.LocalTime x, Field f)protected TimeadjustTime(Time x)protected TimestampadjustTimestamp(Timestamp x, Field f, boolean keepOrigNanos)voidencodeAsQueryAttribute(Message msg, BindValue binding)voidencodeAsText(Message msg, BindValue binding)protected byte[]escapeBytesIfNeeded(byte[] x)longgetBinaryLength(BindValue binding)byte[]getBytes(BindValue binding)protected BigDecimalgetScaled(BigDecimal x, long scaleOrLength)longgetTextLength(BindValue binding)voidinit(PropertySet pset, ServerSession serverSess, ExceptionInterceptor excInterceptor)protected voidwriteDate(Message msg, InternalDate d)protected voidwriteDateTime(Message msg, InternalTimestamp ts)voidwriteDateTimeWithOffset(Message msg, InternalTimestamp timestamp)protected voidwriteTime(Message msg, InternalTime time)-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 com.mysql.cj.protocol.ValueEncoder
encodeAsBinary, getString
-
-
-
-
字段详细资料
-
propertySet
protected PropertySet propertySet
-
serverSession
protected ServerSession serverSession
-
exceptionInterceptor
protected ExceptionInterceptor exceptionInterceptor
-
charEncoding
protected RuntimeProperty<String> charEncoding
-
sendFractionalSeconds
protected RuntimeProperty<Boolean> sendFractionalSeconds
-
sendFractionalSecondsForTime
protected RuntimeProperty<Boolean> sendFractionalSecondsForTime
-
preserveInstants
protected RuntimeProperty<Boolean> preserveInstants
-
-
方法详细资料
-
init
public void init(PropertySet pset, ServerSession serverSess, ExceptionInterceptor excInterceptor)
- 指定者:
init在接口中ValueEncoder
-
getBytes
public byte[] getBytes(BindValue binding)
- 指定者:
getBytes在接口中ValueEncoder
-
encodeAsText
public void encodeAsText(Message msg, BindValue binding)
- 指定者:
encodeAsText在接口中ValueEncoder
-
encodeAsQueryAttribute
public void encodeAsQueryAttribute(Message msg, BindValue binding)
- 指定者:
encodeAsQueryAttribute在接口中ValueEncoder
-
getScaled
protected BigDecimal getScaled(BigDecimal x, long scaleOrLength)
-
adjustLocalTime
protected java.time.LocalTime adjustLocalTime(java.time.LocalTime x, Field f)
-
adjustLocalDateTime
protected java.time.LocalDateTime adjustLocalDateTime(java.time.LocalDateTime x, Field f)
-
adjustDuration
protected java.time.Duration adjustDuration(java.time.Duration x, Field f)
-
writeDate
protected void writeDate(Message msg, InternalDate d)
-
writeTime
protected void writeTime(Message msg, InternalTime time)
-
writeDateTime
protected void writeDateTime(Message msg, InternalTimestamp ts)
-
writeDateTimeWithOffset
public void writeDateTimeWithOffset(Message msg, InternalTimestamp timestamp)
-
escapeBytesIfNeeded
protected byte[] escapeBytesIfNeeded(byte[] x)
-
getTextLength
public long getTextLength(BindValue binding)
- 指定者:
getTextLength在接口中ValueEncoder
-
getBinaryLength
public long getBinaryLength(BindValue binding)
- 指定者:
getBinaryLength在接口中ValueEncoder
-
-