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

public Class BigDecimalValueFactory

extends AbstractNumericValueFactory<BigDecimal>
Class Inheritance
Imports
java.math.BigDecimal, .BigInteger, java.nio.ByteBuffer, com.mysql.cj.conf.PropertySet

A value factory for creating java.math.BigDecimal values.

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv int

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
private BigDecimal

Returns:

result
adjustResult
(BigDecimal
value
d
)

Adjust the result value by apply the scale, if appropriate.

public BigDecimal
public BigDecimal
public BigDecimal
public BigDecimal
public BigDecimal
public String
getTargetTypeName()

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

Get the actual class name of T parameter.

Inherited from com.mysql.cj.result.AbstractNumericValueFactory:
createFromBytescreateFromYear

Field Detail

hasScaleback to summary
pack-priv boolean hasScale
scaleback to summary
pack-priv int scale

Constructor Detail

BigDecimalValueFactoryback to summary
public BigDecimalValueFactory(PropertySet pset)
BigDecimalValueFactoryback to summary
public BigDecimalValueFactory(PropertySet pset, int scale)

Method Detail

adjustResultback to summary
private BigDecimal adjustResult(BigDecimal d)

Adjust the result value by apply the scale, if appropriate.

Parameters
d:BigDecimal

value

Returns:BigDecimal

result

createFromBigDecimalback to summary
public BigDecimal createFromBigDecimal(BigDecimal d)

Overrides com.mysql.cj.result.DefaultValueFactory.createFromBigDecimal.

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

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

Overrides com.mysql.cj.result.DefaultValueFactory.createFromBigInteger.

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

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

Overrides com.mysql.cj.result.DefaultValueFactory.createFromBit.

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

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

Overrides com.mysql.cj.result.DefaultValueFactory.createFromDouble.

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

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

Overrides com.mysql.cj.result.DefaultValueFactory.createFromLong.

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

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