Package com.mysql.cj.xdevapi
Class DbDocValueFactory
java.lang.Object
- All Implemented Interfaces:
ValueFactory<DbDoc>
public class DbDocValueFactory extends DefaultValueFactory<DbDoc>
A
ValueFactory implementation to create DbDocs.-
Field Summary
Fields inherited from class com.mysql.cj.result.DefaultValueFactory
jdbcCompliantTruncationForReads, pset -
Constructor Summary
Constructors Constructor Description DbDocValueFactory(PropertySet pset)Constructor. -
Method Summary
Modifier and Type Method Description DbDoccreateFromBytes(byte[] bytes, int offset, int length, Field f)Interpret the given byte array as a string.DbDoccreateFromNull()Create result value from intermediate null value.java.lang.StringgetTargetTypeName()Get the actual class name of T parameter.Methods inherited from class com.mysql.cj.result.DefaultValueFactory
createFromBigDecimal, createFromBigInteger, createFromBit, createFromDate, createFromDatetime, createFromDouble, createFromLong, createFromTime, createFromTimestamp, createFromYear, setPropertySet, unsupported
-
Constructor Details
-
DbDocValueFactory
Constructor.- Parameters:
pset-PropertySet
-
-
Method Details
-
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. -
createFromNull
Description copied from interface:ValueFactoryCreate result value from intermediate null value.- Specified by:
createFromNullin interfaceValueFactory<DbDoc>- Overrides:
createFromNullin classDefaultValueFactory<DbDoc>- Returns:
- T object
-
getTargetTypeName
public java.lang.String getTargetTypeName()Description copied from interface:ValueFactoryGet the actual class name of T parameter.- Returns:
- class name
-