public class KualiPercentConverter extends Object implements javax.persistence.AttributeConverter<KualiPercent,BigDecimal>
KualiPercent
objects for OJB by converting them to/from BigDecimal
.Constructor and Description |
---|
KualiPercentConverter() |
Modifier and Type | Method and Description |
---|---|
BigDecimal |
convertToDatabaseColumn(KualiPercent objectValue)
This implementation will convert from a
KualiPercent to a BigDecimal . |
KualiPercent |
convertToEntityAttribute(BigDecimal dataValue)
This implementation will convert from a
BigDecimal to a KualiPercent . |
public KualiPercentConverter()
public BigDecimal convertToDatabaseColumn(KualiPercent objectValue)
KualiPercent
to a BigDecimal
.convertToDatabaseColumn
in interface javax.persistence.AttributeConverter<KualiPercent,BigDecimal>
public KualiPercent convertToEntityAttribute(BigDecimal dataValue)
BigDecimal
to a KualiPercent
.convertToEntityAttribute
in interface javax.persistence.AttributeConverter<KualiPercent,BigDecimal>
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.