public class DateParameter extends NotLongDataParameterHolder
Constructor and Description |
---|
DateParameter(Date date,
Calendar cal,
Options options)
Represents a date, constructed with time in millis since epoch.
|
Modifier and Type | Method and Description |
---|---|
long |
getApproximateTextProtocolLength() |
MariaDbType |
getMariaDbType() |
void |
writeBinary(PacketOutputStream writeBuffer)
Write to server OutputStream in binary protocol.
|
void |
writeTo(OutputStream os)
Write to server OutputStream in text protocol.
|
isLongData, isNotLongData, isNullParameter
toString, writeBufferType
public void writeTo(OutputStream os) throws IOException
writeTo
in class ParameterHolder
os
- output bufferIOException
- when something goes wrongpublic long getApproximateTextProtocolLength()
getApproximateTextProtocolLength
in class ParameterHolder
public void writeBinary(PacketOutputStream writeBuffer)
writeBinary
in class NotLongDataParameterHolder
writeBuffer
- output bufferpublic MariaDbType getMariaDbType()
getMariaDbType
in class ParameterHolder
Copyright © 2016. All rights reserved.