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

public abstract Class DefaultValueFactory<T>

extends Object
implements ValueFactory<T>
Class Inheritance
All Implemented Interfaces
com.mysql.cj.result.ValueFactory
Known Direct Subclasses
com.mysql.cj.xdevapi.DbDocValueFactory, com.mysql.cj.result.AbstractDateTimeValueFactory, com.mysql.cj.result.AbstractNumericValueFactory, com.mysql.cj.result.BinaryStreamValueFactory, com.mysql.cj.result.BooleanValueFactory, com.mysql.cj.result.ByteValueFactory
Type Parameters
<T>
value type
Imports
java.math.BigDecimal, .BigInteger, com.mysql.cj.Messages, com.mysql.cj.conf.PropertyKey, .PropertySet, com.mysql.cj.exceptions.DataConversionException, com.mysql.cj.protocol.InternalDate, .InternalTime, .InternalTimestamp

The default value factory provides a base class that can be used for value factories that do not support creation from every type. The default value factory will thrown an UnsupportedOperationException for every method and individual methods must be overridden by subclasses.

Field Summary

Modifier and TypeField and Description
protected boolean
protected PropertySet

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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

public T
public T
public T
public T
public T
createFromNull()

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

Create result value from intermediate null value.

public T
public T
public T
public void
protected T
unsupported(String sourceType)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

jdbcCompliantTruncationForReadsback to summary
protected boolean jdbcCompliantTruncationForReads
psetback to summary
protected PropertySet pset

Constructor Detail

DefaultValueFactoryback to summary
public DefaultValueFactory(PropertySet pset)

Method Detail

createFromBigDecimalback to summary
public T createFromBigDecimal(BigDecimal d)

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

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

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

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

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

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

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

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

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

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

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

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

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

Annotations
@Override
createFromNullback to summary
public T createFromNull()

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

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

Create result value from intermediate null value.

Returns:T

T object

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

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

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

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

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

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

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

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

Annotations
@Override
unsupportedback to summary
protected T unsupported(String sourceType)