Class KualiIntegerConverter

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

public class KualiIntegerConverter extends Object implements javax.persistence.AttributeConverter<org.kuali.rice.core.api.util.type.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(org.kuali.rice.core.api.util.type.KualiInteger objectValue)
      This implementation will convert from a KualiInteger to a Long.
      Specified by:
      convertToDatabaseColumn in interface javax.persistence.AttributeConverter<org.kuali.rice.core.api.util.type.KualiInteger,Long>
    • convertToEntityAttribute

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