Class KualiPercentConverter

java.lang.Object
org.kuali.rice.krad.data.jpa.converters.KualiPercentConverter
All Implemented Interfaces:
javax.persistence.AttributeConverter<org.kuali.rice.core.api.util.type.KualiPercent,BigDecimal>

public class KualiPercentConverter extends Object implements javax.persistence.AttributeConverter<org.kuali.rice.core.api.util.type.KualiPercent,BigDecimal>
Converts the custom KualiPercent objects for OJB by converting them to/from BigDecimal.
  • Constructor Details

    • KualiPercentConverter

      public KualiPercentConverter()
  • Method Details

    • convertToDatabaseColumn

      public BigDecimal convertToDatabaseColumn(org.kuali.rice.core.api.util.type.KualiPercent objectValue)
      This implementation will convert from a KualiPercent to a BigDecimal.
      Specified by:
      convertToDatabaseColumn in interface javax.persistence.AttributeConverter<org.kuali.rice.core.api.util.type.KualiPercent,BigDecimal>
    • convertToEntityAttribute

      public org.kuali.rice.core.api.util.type.KualiPercent convertToEntityAttribute(BigDecimal dataValue)
      This implementation will convert from a BigDecimal to a KualiPercent.
      Specified by:
      convertToEntityAttribute in interface javax.persistence.AttributeConverter<org.kuali.rice.core.api.util.type.KualiPercent,BigDecimal>