All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bld.commons.utils.formatter.ClobAnnotationFormatterFactory Maven / Gradle / Ivy

There is a newer version: 2.0.6
Show newest version
package com.bld.commons.utils.formatter;

import java.sql.Clob;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import org.springframework.format.AnnotationFormatterFactory;
import org.springframework.format.Parser;
import org.springframework.format.Printer;

import com.bld.commons.utils.json.annotations.TextClob;

public final class ClobAnnotationFormatterFactory implements AnnotationFormatterFactory {

	private final static Set> FIELD_TYPES=new HashSet<>(Arrays.asList(Clob.class));
	
	
	@Override
	public Set> getFieldTypes() {
		return FIELD_TYPES;
	}

	@Override
	public Printer getPrinter(TextClob annotation, Class fieldType) {
		return new ClobFormatter();
	}

	@Override
	public Parser getParser(TextClob annotation, Class fieldType) {
		return new ClobFormatter();
	}

	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy