Top Description Methods
com.mysql.cj.result

public Interface ValueFactory<T>

Known Direct Implementers
com.mysql.cj.result.DefaultValueFactory, com.mysql.cj.result.StringValueFactory
Type Parameters
<T>
value type
Imports
java.math.BigDecimal, .BigInteger, com.mysql.cj.conf.PropertySet, com.mysql.cj.protocol.InternalDate, .InternalTime, .InternalTimestamp

A class implements the ValueFactory<T> interface to create value instances from intermediate forms.

A ValueFactory implementation is responsible for creating instance of a single type, supplying a value for the type parameter T. If an instance cannot be created from the intermediate form, an java.lang.UnsupportedOperationException can be thrown.

Method Summary

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

public T
createFromBytes(byte[] bytes, int offset, int length, Field f)

public T
public T
public T
createFromDouble(double d)

public T
public T

Returns:

T object
createFromNull
()

Create result value from intermediate null value.

public T
public T
public T
public String

Returns:

class name
getTargetTypeName
()

Get the actual class name of T parameter.

public void

Method Detail

createFromBigDecimalback to summary
public T createFromBigDecimal(BigDecimal d)
createFromBigIntegerback to summary
public T createFromBigInteger(BigInteger i)
createFromBitback to summary
public T createFromBit(byte[] bytes, int offset, int length)
createFromBytesback to summary
public T createFromBytes(byte[] bytes, int offset, int length, Field f)
createFromDateback to summary
public T createFromDate(InternalDate idate)
createFromDatetimeback to summary
public T createFromDatetime(InternalTimestamp its)
createFromDoubleback to summary
public T createFromDouble(double d)
createFromLongback to summary
public T createFromLong(long l)
createFromNullback to summary
public T createFromNull()

Create result value from intermediate null value.

Returns:T

T object

createFromTimeback to summary
public T createFromTime(InternalTime it)
createFromTimestampback to summary
public T createFromTimestamp(InternalTimestamp its)
createFromYearback to summary
public T createFromYear(long l)
getTargetTypeNameback to summary
public String getTargetTypeName()

Get the actual class name of T parameter.

Returns:String

class name

setPropertySetback to summary
public void setPropertySet(PropertySet pset)