1 2 12 package com.versant.core.jdbc.sql.conv; 13 14 import com.versant.core.jdbc.JdbcConverter; 15 import com.versant.core.jdbc.JdbcTypeRegistry; 16 import com.versant.core.jdbc.metadata.JdbcColumn; 17 18 import java.io.File ; 19 20 26 public class FileConverterTrim extends TypeAsTrimStringConverterBase { 27 28 public static class Factory extends NoArgJdbcConverterFactory { 29 30 private FileConverterTrim converter; 31 32 36 public JdbcConverter createJdbcConverter(JdbcColumn col, Object args, 37 JdbcTypeRegistry jdbcTypeRegistry) { 38 if (converter == null) converter = new FileConverterTrim(); 39 return converter; 40 } 41 42 } 43 44 48 protected Object fromString(String s) { 49 return new File (s); 50 } 51 52 56 public Class getValueType() { 57 return File .class; 58 } 59 60 } 61 62 | Popular Tags |