Revision fa63b6b4
Added by Andreas Müller over 5 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/mapping/DbImportStringMapper.java | ||
---|---|---|
1 | 1 |
/** |
2 | 2 |
* Copyright (C) 2007 EDIT |
3 |
* European Distributed Institute of Taxonomy
|
|
3 |
* European Distributed Institute of Taxonomy |
|
4 | 4 |
* http://www.e-taxonomy.eu |
5 |
*
|
|
5 |
* |
|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
... | ... | |
19 | 19 |
/** |
20 | 20 |
* @author a.mueller |
21 | 21 |
* @since 24.02.2010 |
22 |
* @version 1.0 |
|
23 | 22 |
*/ |
24 | 23 |
public class DbImportStringMapper extends DbSingleAttributeImportMapperBase<DbImportStateBase<?,?>, CdmBase>{ |
25 | 24 |
|
26 | 25 |
@SuppressWarnings("unused") |
27 | 26 |
private static final Logger logger = Logger.getLogger(DbImportStringMapper.class); |
28 |
|
|
27 |
|
|
29 | 28 |
/** |
30 | 29 |
* @param dbAttributString |
31 | 30 |
* @param cdmAttributeString |
... | ... | |
36 | 35 |
Object defaultValue = null; |
37 | 36 |
return DbImportStringMapper.NewInstance(dbAttributeString, cdmAttributeString, defaultValue, obligatory); |
38 | 37 |
} |
39 |
|
|
40 |
|
|
38 |
|
|
41 | 39 |
/** |
42 | 40 |
* @param cdmAttributeString |
43 | 41 |
* @param dbAttributString |
... | ... | |
57 | 55 |
return new DbImportStringMapper(dbAttributeString, cdmAttributeString, defaultValue, obligatory); |
58 | 56 |
} |
59 | 57 |
|
60 |
|
|
61 |
|
|
62 | 58 |
/** |
63 | 59 |
* @param cdmAttributeString |
64 | 60 |
* @param dbAttributString |
... | ... | |
68 | 64 |
super(dbAttributeString, cdmAttributeString, defaultValue, obligatory); |
69 | 65 |
} |
70 | 66 |
|
71 |
/* (non-Javadoc) |
|
72 |
* @see eu.etaxonomy.cdm.io.common.mapping.DbSingleAttributeImportMapperBase#doInvoke(eu.etaxonomy.cdm.model.common.CdmBase) |
|
73 |
*/ |
|
74 | 67 |
@Override |
75 | 68 |
protected CdmBase doInvoke(CdmBase cdmBase, Object value) throws SQLException { |
76 | 69 |
return super.doInvoke(cdmBase, value); |
77 | 70 |
} |
78 | 71 |
|
79 | 72 |
|
80 |
/* (non-Javadoc) |
|
81 |
* @see eu.etaxonomy.cdm.io.common.CdmSingleAttributeMapperBase#getTypeClass() |
|
82 |
*/ |
|
83 | 73 |
@Override |
84 | 74 |
public Class getTypeClass() { |
85 | 75 |
return String.class; |
86 | 76 |
} |
87 |
|
|
88 | 77 |
|
89 | 78 |
} |
Also available in: Unified diff
cleanup