Class KualiIntegerConverter

java.lang.Object
org.kuali.rice.krad.data.jpa.converters.KualiIntegerConverter
All Implemented Interfaces:
javax.persistence.AttributeConverter<KualiInteger,Long>

public class KualiIntegerConverter extends Object implements javax.persistence.AttributeConverter<KualiInteger,Long>
Converts the custom KualiInteger objects for OJB by converting them to/from Long.
  • Constructor Details

    • KualiIntegerConverter

      public KualiIntegerConverter()
  • Method Details

    • convertToDatabaseColumn

      public Long convertToDatabaseColumn(KualiInteger objectValue)
      This implementation will convert from a KualiInteger to a Long.
      Specified by:
      convertToDatabaseColumn in interface javax.persistence.AttributeConverter<KualiInteger,Long>
    • convertToEntityAttribute

      public KualiInteger convertToEntityAttribute(Long dataValue)
      This implementation will convert from a Long to a KualiInteger.
      Specified by:
      convertToEntityAttribute in interface javax.persistence.AttributeConverter<KualiInteger,Long>