Class ConverterTextArray

java.lang.Object
eu.dnetlib.openaire.common.ConverterTextArray
All Implemented Interfaces:
javax.persistence.AttributeConverter<List<String>,Array>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class ConverterTextArray extends Object implements javax.persistence.AttributeConverter<List<String>,Array>, org.springframework.context.ApplicationContextAware
Created by claudio on 05/07/2017.
  • Constructor Details

    • ConverterTextArray

      public ConverterTextArray()
  • Method Details

    • convertToDatabaseColumn

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

      public List<String> convertToEntityAttribute(Array dbData)
      Specified by:
      convertToEntityAttribute in interface javax.persistence.AttributeConverter<List<String>,Array>
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException