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 DbDoc
s.-
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 DbDoc
createFromBytes(byte[] bytes, int offset, int length, Field f)
Interpret the given byte array as a string.DbDoc
createFromNull()
Create result value from intermediate null value.java.lang.String
getTargetTypeName()
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:ValueFactory
Create result value from intermediate null value.- Specified by:
createFromNull
in interfaceValueFactory<DbDoc>
- Overrides:
createFromNull
in classDefaultValueFactory<DbDoc>
- Returns:
- T object
-
getTargetTypeName
public java.lang.String getTargetTypeName()Description copied from interface:ValueFactory
Get the actual class name of T parameter.- Returns:
- class name
-