Class RgbaQuadrupletConverter

  • All Implemented Interfaces:
    javax.persistence.AttributeConverter<RgbaQuadruplet,​String>

    public class RgbaQuadrupletConverter
    extends Object
    implements javax.persistence.AttributeConverter<RgbaQuadruplet,​String>
    JPA converter for colors represented as RgbaQuadruplet.
    Since:
    8.2.0
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • RgbaQuadrupletConverter

        public RgbaQuadrupletConverter()
    • Method Detail

      • convertToDatabaseColumn

        public String convertToDatabaseColumn​(RgbaQuadruplet attribute)
        Specified by:
        convertToDatabaseColumn in interface javax.persistence.AttributeConverter<RgbaQuadruplet,​String>
      • convertToEntityAttribute

        public RgbaQuadruplet convertToEntityAttribute​(String dbData)
        Specified by:
        convertToEntityAttribute in interface javax.persistence.AttributeConverter<RgbaQuadruplet,​String>