Project

General

Profile

« Previous | Next » 

Revision 8d9f9e27

Added by Andreas Müller over 2 years ago

cleanup

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/mapping/out/DbDateMapper.java
17 17
/**
18 18
 * @author a.mueller
19 19
 * @since 12.05.2009
20
 * @version 1.0
21 20
 */
22 21
public class DbDateMapper extends DbSingleAttributeExportMapperBase implements IDbExportMapper {
22

  
23 23
	@SuppressWarnings("unused")
24 24
	private static final Logger logger = Logger.getLogger(DbStringMapper.class);
25 25

  
......
31 31
		return new DbDateMapper(cdmAttributeString, dbAttributeString, defaultValue);
32 32
	}
33 33

  
34
	/**
35
	 * @param dbAttributeString
36
	 * @param cdmAttributeString
37
	 */
38 34
	private DbDateMapper(String cdmAttributeString, String dbAttributeString, DateTime defaultValue) {
39 35
		super(cdmAttributeString, dbAttributeString, defaultValue);
40 36
	}
41 37

  
42
//	/* (non-Javadoc)
43
//	 * @see eu.etaxonomy.cdm.io.berlinModel.out.mapper.DbExportMapperBase#doInvoke(eu.etaxonomy.cdm.model.common.CdmBase)
44
//	 */
45 38
//	@Override
46 39
//	protected boolean doInvoke(CdmBase cdmBase) throws SQLException{
47 40
//		boolean obligat = true;
......
63 56
//		}
64 57
//	}
65 58

  
66
//
67
//	/* (non-Javadoc)
68
//	 * @see eu.etaxonomy.cdm.io.berlinModel.out.mapper.DbSingleAttributeExportMapperBase#getValue()
69
//	 */
70 59
//	@Override
71 60
//	protected Object getValue(CdmBase cdmBase) {
72 61
//		boolean obligat = true;
......
75 64

  
76 65

  
77 66

  
78
	/* (non-Javadoc)
79
	 * @see eu.etaxonomy.cdm.io.berlinModel.out.mapper.DbSingleAttributeExportMapperBase#getValueType()
80
	 */
81 67
	@Override
82 68
	protected int getSqlType() {
83 69
		return Types.DATE;
84 70
	}
85 71

  
86
	/* (non-Javadoc)
87
	 * @see eu.etaxonomy.cdm.io.common.CdmSingleAttributeMapperBase#getTypeClass()
88
	 */
89 72
	@Override
90 73
	public Class<?> getTypeClass() {
91 74
		return DateTime.class;
92 75
	}
93

  
94

  
95
}
76
}
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/IParsable.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
*/
......
22 22
public interface IParsable {
23 23

  
24 24
	/**
25
	 * Returns an integer value indicating whether the used parser 
25
	 * Returns an integer value indicating whether the used parser
26 26
	 * method was able to parse a string successfully into this object (<code>0</code>)
27
	 * or not (<code>!=0</code>). The the parsing was not successful the value returned 
27
	 * or not (<code>!=0</code>). The the parsing was not successful the value returned
28 28
	 * defines in more detail what the problem was. The definition of these values depends
29 29
	 * on the parser that has been used for parsing.
30
	 *  
30
	 *
31 31
	 * @return  the int value parsingProblem
32 32
	 */
33 33
	public int getParsingProblem();
34
	
34

  
35 35
	/**
36 36
	 * @see  #getParsingProblem()
37 37
	 */
38 38
	public void setParsingProblem(int hasProblem);
39
	
39

  
40 40
	/**
41
	 * Returns true if any parsing problem (warning or error) exists.  
42
	 *  
41
	 * Returns true if any parsing problem (warning or error) exists.
42
	 *
43 43
	 * @see  #getHasProblem()
44 44
	 */
45 45
	public boolean hasProblem();
46
	
46

  
47 47
	/**
48 48
	 * Returns true, if the specified problem exists. False otherwise.
49 49
	 * @param problem
50 50
	 * @return
51 51
	 */
52 52
	public boolean hasProblem(ParserProblem problem);
53
	
54
	
53

  
54

  
55 55
	/**
56 56
	 * Returns a list of all warnings and errors that have been recognized during the parsing
57 57
	 * and not yet handled.
58 58
	 * @return
59 59
	 */
60 60
	public List<ParserProblem> getParsingProblems();
61
	
61

  
62 62
	/**
63 63
	 * Adds a parsing problem to the list of parsing problems
64 64
	 * @param problem
65 65
	 */
66 66
	public void addParsingProblem(ParserProblem problem);
67
	
67

  
68 68
	/**
69 69
	 * Removes a parsing problem from the list of parsing problems.
70 70
	 * If the problem is not in the list or is <code>null</code>, nothing happens.
71 71
	 * @param warning
72 72
	 */public void removeParsingProblem(ParserProblem problem);
73
	
74
	
73

  
74

  
75 75
	/**
76 76
	 * Returns the integer value of the position where a parsing problem starts.
77 77
	 * If no problem exists -1 is returned.
78 78
	 * Default: -1
79
	 * @deprecated This method will be removed by a more sophisticated method in future versions, 
79
	 * @deprecated This method will be removed by a more sophisticated method in future versions,
80 80
	 * therefore it is deprecated.<BR>
81 81
	 * @see  #getHasProblem()
82 82
	 */
83 83
	@Deprecated
84 84
	public int getProblemStarts();
85
	
85

  
86 86
	/**
87 87
	 * Returns the integer value of the position where a parsing problem ends.
88 88
	 * If no problem exists -1 is returned.
89 89
	 * Default: -1
90
	 * @deprecated This method will be removed by a more sophisticated method in future versions, 
91
	 * therefore it is deprecated. <BR>
90
	 * @deprecated This method will be removed by a more sophisticated method in future versions,
91
	 *             therefore it is deprecated. <BR>
92 92
	 * @see  #getHasProblem()
93 93
	 */
94 94
	@Deprecated
95 95
	public int getProblemEnds();
96
	
96

  
97 97
	/**
98
	 * @deprecated This method will be removed by a more sophisticated method in future versions, 
99
	 * therefore it is deprecated. <BR>
98
	 * @deprecated This method will be removed by a more sophisticated method in future versions,
99
	 *             therefore it is deprecated. <BR>
100 100
	 * @see  #getProblemStarts()
101 101
	 */
102 102
	@Deprecated
103 103
	public void setProblemStarts(int start);
104
	
104

  
105 105
	/**
106
	 * @deprecated This method will be removed by a more sophisticated method in future versions, 
107
	 * therefore it is deprecated. <BR>
106
	 * @deprecated This method will be removed by a more sophisticated method in future versions,
107
	 *             therefore it is deprecated. <BR>
108 108
	 * @see  #getProblemEnds()
109 109
	 */
110 110
	@Deprecated
111 111
	public void setProblemEnds(int end);
112
	
112

  
113 113
}

Also available in: Unified diff