Revision 51171c9d
Added by Andreas Müller almost 13 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/berlinModel/out/BerlinModelAuthorExport.java | ||
---|---|---|
77 | 77 |
* @see eu.etaxonomy.cdm.io.berlinModel.out.BerlinModelExportBase#doInvoke(eu.etaxonomy.cdm.io.berlinModel.out.BerlinModelExportState) |
78 | 78 |
*/ |
79 | 79 |
@Override |
80 |
protected boolean doInvoke(BerlinModelExportState state) {
|
|
80 |
protected void doInvoke(BerlinModelExportState state) {
|
|
81 | 81 |
try{ |
82 |
boolean success = true; |
|
82 | 83 |
BerlinModelExportConfigurator bmeConfig = (BerlinModelExportConfigurator)state.getConfig(); |
83 | 84 |
|
84 | 85 |
logger.info("start make "+pluralString+" ..."); |
85 |
boolean success = true ; |
|
86 | 86 |
doDelete(bmeConfig); |
87 | 87 |
|
88 | 88 |
TransactionStatus txStatus = startTransaction(true); |
... | ... | |
103 | 103 |
|
104 | 104 |
commitTransaction(txStatus); |
105 | 105 |
logger.info("end make "+pluralString+" ..." + getSuccessString(success)); |
106 |
return success; |
|
106 |
if (!success){ |
|
107 |
state.setUnsuccessfull(); |
|
108 |
} |
|
109 |
return; |
|
107 | 110 |
}catch(SQLException e){ |
108 | 111 |
e.printStackTrace(); |
109 | 112 |
logger.error(e.getMessage()); |
110 |
return false; |
|
113 |
state.setUnsuccessfull(); |
|
114 |
return; |
|
111 | 115 |
} |
112 | 116 |
} |
113 | 117 |
|
Also available in: Unified diff
last updates for Taxon Excel Import and moving all success variables to state