Class IntegerToLongConverter

java.lang.Object
com.netflix.genie.web.data.services.impl.jpa.converters.IntegerToLongConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<Long,Integer>

public class IntegerToLongConverter extends Object implements jakarta.persistence.AttributeConverter<Long,Integer>
An AttributeConverter to convert Integer objects into Long for storage and vice versa.
Since:
4.3.0
  • Constructor Details

    • IntegerToLongConverter

      public IntegerToLongConverter()
  • Method Details

    • convertToDatabaseColumn

      @Nullable public Integer convertToDatabaseColumn(@Nullable Long attribute)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<Long,Integer>
    • convertToEntityAttribute

      @Nullable public Long convertToEntityAttribute(@Nullable Integer dbData)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<Long,Integer>