Top Description Fields Constructors Methods
com.mysql.cj.result

public Class StringValueFactory

extends Object
implements ValueFactory<String>
Class Inheritance
All Implemented Interfaces
com.mysql.cj.result.ValueFactory
Imports
java.math.BigDecimal, .BigInteger, com.mysql.cj.CharsetMapping, com.mysql.cj.conf.PropertyKey, .PropertySet, com.mysql.cj.protocol.InternalDate, .InternalTime, .InternalTimestamp, com.mysql.cj.util.DataTypeUtil, .StringUtils

A com.mysql.cj.result.ValueFactory implementation to create strings.

Field Summary

Modifier and TypeField and Description
protected PropertySet

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public String
public String
createFromBit(byte[] bytes, int offset, int length)

Implements com.mysql.cj.result.ValueFactory.createFromBit.

public String

Returns:

string
createFromBytes
(byte[]
byte array
bytes
,
int
offset
offset
,
int
data length in bytes
length
,
Field
field
f
)

Implements com.mysql.cj.result.ValueFactory.createFromBytes.

Interpret the given byte array as a string.

public String

Returns:

string
createFromDate
(InternalDate idate)

Implements com.mysql.cj.result.ValueFactory.createFromDate.

Create a string from InternalDate.

public String
public String
public String
public String
createFromNull()

Implements com.mysql.cj.result.ValueFactory.createFromNull.

Create result value from intermediate null value.

public String

Returns:

string
createFromTime
(InternalTime it)

Implements com.mysql.cj.result.ValueFactory.createFromTime.

Create a string from InternalTime.

public String
public String
public String
getTargetTypeName()

Implements com.mysql.cj.result.ValueFactory.getTargetTypeName.

Get the actual class name of T parameter.

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

psetback to summary
protected PropertySet pset

Constructor Detail

StringValueFactoryback to summary
public StringValueFactory(PropertySet pset)

Method Detail

createFromBigDecimalback to summary
public String createFromBigDecimal(BigDecimal d)

Implements com.mysql.cj.result.ValueFactory.createFromBigDecimal.

Annotations
@Override
createFromBigIntegerback to summary
public String createFromBigInteger(BigInteger i)

Implements com.mysql.cj.result.ValueFactory.createFromBigInteger.

Annotations
@Override
createFromBitback to summary
public String createFromBit(byte[] bytes, int offset, int length)

Implements com.mysql.cj.result.ValueFactory.createFromBit.

Annotations
@Override
createFromBytesback to summary
public String createFromBytes(byte[] bytes, int offset, int length, Field f)

Implements com.mysql.cj.result.ValueFactory.createFromBytes.

Interpret the given byte array as a string. This value factory needs to know the encoding to interpret the string. The default (null) will interpret the byte array using the platform encoding.

Parameters
bytes:byte[]

byte array

offset:int

offset

length:int

data length in bytes

f:Field

field

Returns:String

string

Annotations
@Override
createFromDateback to summary
public String createFromDate(InternalDate idate)

Implements com.mysql.cj.result.ValueFactory.createFromDate.

Create a string from InternalDate. The fields are formatted in a YYYY-mm-dd format.

Parameters
idate:InternalDate

InternalDate

Returns:String

string

Annotations
@Override
createFromDatetimeback to summary
public String createFromDatetime(InternalTimestamp its)

Implements com.mysql.cj.result.ValueFactory.createFromDatetime.

Create a string from time fields. The fields are formatted by concatenating the result of createFromDate(InternalDate) and createFromTime(InternalTime).

Parameters
its:InternalTimestamp

InternalTimestamp

Returns:String

string

Annotations
@Override
createFromDoubleback to summary
public String createFromDouble(double d)

Implements com.mysql.cj.result.ValueFactory.createFromDouble.

Annotations
@Override
createFromLongback to summary
public String createFromLong(long l)

Implements com.mysql.cj.result.ValueFactory.createFromLong.

Annotations
@Override
createFromNullback to summary
public String createFromNull()

Implements com.mysql.cj.result.ValueFactory.createFromNull.

Doc from com.mysql.cj.result.ValueFactory.createFromNull.

Create result value from intermediate null value.

Returns:String

T object

Annotations
@Override
createFromTimeback to summary
public String createFromTime(InternalTime it)

Implements com.mysql.cj.result.ValueFactory.createFromTime.

Create a string from InternalTime. The fields are formatted in a HH:MM:SS[.nnnnnnnnn] format.

Parameters
it:InternalTime

InternalTime

Returns:String

string

Annotations
@Override
createFromTimestampback to summary
public String createFromTimestamp(InternalTimestamp its)

Implements com.mysql.cj.result.ValueFactory.createFromTimestamp.

Create a string from time fields. The fields are formatted by concatenating the result of createFromDate(InternalDate) and createFromTime(InternalTime).

Parameters
its:InternalTimestamp

InternalTimestamp

Returns:String

string

Annotations
@Override
createFromYearback to summary
public String createFromYear(long l)

Implements com.mysql.cj.result.ValueFactory.createFromYear.

Annotations
@Override
getTargetTypeNameback to summary
public String getTargetTypeName()

Implements com.mysql.cj.result.ValueFactory.getTargetTypeName.

Doc from com.mysql.cj.result.ValueFactory.getTargetTypeName.

Get the actual class name of T parameter.

Returns:String

class name

Annotations
@Override
setPropertySetback to summary
public void setPropertySet(PropertySet pset)

Implements com.mysql.cj.result.ValueFactory.setPropertySet.

Annotations
@Override