Project

General

Profile

Download (1.75 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy 
5
* http://www.e-taxonomy.eu
6
* 
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10

    
11
package eu.etaxonomy.cdm.io.berlinModel.out.mapper;
12

    
13
import org.apache.log4j.Logger;
14
import org.hsqldb.Types;
15

    
16
import eu.etaxonomy.cdm.io.berlinModel.out.DbExportState;
17

    
18
/**
19
 * @author a.mueller
20
 * @created 12.05.2009
21
 * @version 1.0
22
 */
23
public class DbClobMapper extends DbSingleAttributeExportMapperBase<DbExportState<?>> implements IDbExportMapper<DbExportState<?>> {
24
	@SuppressWarnings("unused")
25
	private static final Logger logger = Logger.getLogger(DbClobMapper.class);
26
	
27
	public static DbClobMapper NewInstance(String cdmAttributeString, String dbAttributeString){
28
		return new DbClobMapper(cdmAttributeString, dbAttributeString, null);
29
	}
30

    
31
	public static DbClobMapper NewInstance(String cdmAttributeString, String dbAttributeString, String defaultValue){
32
		return new DbClobMapper(cdmAttributeString, dbAttributeString, defaultValue);
33
	}
34

    
35
	/**
36
	 * @param dbAttributeString
37
	 * @param cdmAttributeString
38
	 */
39
	private DbClobMapper(String cdmAttributeString, String dbAttributeString, String defaultValue) {
40
		super(cdmAttributeString, dbAttributeString, defaultValue);
41
	}
42
	
43
	/* (non-Javadoc)
44
	 * @see eu.etaxonomy.cdm.io.berlinModel.out.mapper.DbSingleAttributeExportMapperBase#getValueType()
45
	 */
46
	@Override
47
	protected int getSqlType() {
48
		return Types.CLOB;
49
	}
50

    
51

    
52
	/* (non-Javadoc)
53
	 * @see eu.etaxonomy.cdm.io.common.CdmSingleAttributeMapperBase#getTypeClass()
54
	 */
55
	@Override
56
	public Class<?> getTypeClass() {
57
		return String.class;
58
	}
59

    
60

    
61
	
62
}
(3-3/15)