Package com.mysql.cj.result
Class DefaultValueFactory<T>
java.lang.Object
com.mysql.cj.result.DefaultValueFactory<T>
- Type Parameters:
T- value type
- All Implemented Interfaces:
ValueFactory<T>
- Direct Known Subclasses:
AbstractDateTimeValueFactory,AbstractNumericValueFactory,BinaryStreamValueFactory,BooleanValueFactory,ByteValueFactory,DbDocValueFactory
public abstract class DefaultValueFactory<T> extends java.lang.Object implements ValueFactory<T>
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
Fields Modifier and Type Field Description protected booleanjdbcCompliantTruncationForReadsprotected PropertySetpset -
Constructor Summary
Constructors Constructor Description DefaultValueFactory(PropertySet pset) -
Method Summary
Modifier and Type Method Description TcreateFromBigDecimal(java.math.BigDecimal d)TcreateFromBigInteger(java.math.BigInteger i)TcreateFromBit(byte[] bytes, int offset, int length)TcreateFromDate(InternalDate idate)TcreateFromDatetime(InternalTimestamp its)TcreateFromDouble(double d)TcreateFromLong(long l)TcreateFromNull()Create result value from intermediate null value.TcreateFromTime(InternalTime it)TcreateFromTimestamp(InternalTimestamp its)TcreateFromYear(long l)voidsetPropertySet(PropertySet pset)protected Tunsupported(java.lang.String sourceType)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mysql.cj.result.ValueFactory
createFromBytes, getTargetTypeName
-
Field Details
-
jdbcCompliantTruncationForReads
protected boolean jdbcCompliantTruncationForReads -
pset
-
-
Constructor Details
-
Method Details
-
setPropertySet
- Specified by:
setPropertySetin interfaceValueFactory<T>
-
unsupported
-
createFromDate
- Specified by:
createFromDatein interfaceValueFactory<T>
-
createFromTime
- Specified by:
createFromTimein interfaceValueFactory<T>
-
createFromTimestamp
- Specified by:
createFromTimestampin interfaceValueFactory<T>
-
createFromDatetime
- Specified by:
createFromDatetimein interfaceValueFactory<T>
-
createFromLong
- Specified by:
createFromLongin interfaceValueFactory<T>
-
createFromBigInteger
- Specified by:
createFromBigIntegerin interfaceValueFactory<T>
-
createFromDouble
- Specified by:
createFromDoublein interfaceValueFactory<T>
-
createFromBigDecimal
- Specified by:
createFromBigDecimalin interfaceValueFactory<T>
-
createFromBit
- Specified by:
createFromBitin interfaceValueFactory<T>
-
createFromYear
- Specified by:
createFromYearin interfaceValueFactory<T>
-
createFromNull
Description copied from interface:ValueFactoryCreate result value from intermediate null value.- Specified by:
createFromNullin interfaceValueFactory<T>- Returns:
- T object
-