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

public Class DbDocValueFactory

extends DefaultValueFactory<DbDoc>
Class Inheritance
Imports
java.io.IOException, .StringReader, com.mysql.cj.conf.PropertySet, com.mysql.cj.exceptions.AssertionFailedException, com.mysql.cj.result.DefaultValueFactory, .Field, .ValueFactory, com.mysql.cj.util.StringUtils

A ValueFactory implementation to create DbDocs.

Field Summary

Inherited from com.mysql.cj.result.DefaultValueFactory:
jdbcCompliantTruncationForReadspset

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public DbDoc
createFromBytes(byte[] bytes, int offset, int length, Field f)

Implements com.mysql.cj.result.ValueFactory.createFromBytes.

Interpret the given byte array as a string.

public DbDoc
createFromNull()

Overrides com.mysql.cj.result.DefaultValueFactory.createFromNull.

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

Create result value from intermediate null value.

public String
getTargetTypeName()

Implements com.mysql.cj.result.ValueFactory.getTargetTypeName.

Get the actual class name of T parameter.

Inherited from com.mysql.cj.result.DefaultValueFactory:
createFromBigDecimalcreateFromBigIntegercreateFromBitcreateFromDatecreateFromDatetimecreateFromDoublecreateFromLongcreateFromTimecreateFromTimestampcreateFromYearsetPropertySetunsupported

Constructor Detail

DbDocValueFactoryback to summary
public DbDocValueFactory(PropertySet pset)

Constructor.

Parameters
pset:PropertySet

PropertySet

Method Detail

createFromBytesback to summary
public DbDoc createFromBytes(byte[] bytes, int offset, int length, Field f)

Implements com.mysql.cj.result.ValueFactory.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.

Annotations
@Override
createFromNullback to summary
public DbDoc createFromNull()

Overrides com.mysql.cj.result.DefaultValueFactory.createFromNull.

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

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

Create result value from intermediate null value.

Returns:DbDoc

T object

Annotations
@Override
getTargetTypeNameback to summary
public String getTargetTypeName()

Implements com.mysql.cj.result.ValueFactory.getTargetTypeName.

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

Get the actual class name of T parameter.

Returns:String

class name

Annotations
@Override