Revision 44058 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.db/org.gvsig.fmap.dal.db.jdbc/src/main/java/org/gvsig/fmap/dal/store/jdbc2/spi/operations/AbstractConnectionOperation.java
AbstractConnectionOperation.java | ||
---|---|---|
11 | 11 |
|
12 | 12 |
public abstract class AbstractConnectionOperation implements ConnectionOperation { |
13 | 13 |
|
14 |
final static protected Logger logger = LoggerFactory.getLogger(AbstractConnectionOperation.class);
|
|
14 |
final static protected Logger LOGGER = LoggerFactory.getLogger(AbstractConnectionOperation.class);
|
|
15 | 15 |
|
16 | 16 |
final protected JDBCHelper helper; |
17 | 17 |
|
... | ... | |
55 | 55 |
|
56 | 56 |
protected Object perform_operation() throws Exception { |
57 | 57 |
Object result = null; |
58 |
logger.debug("preparing execution of "+this.getClass().getSimpleName()+".");
|
|
58 |
LOGGER.debug("preparing execution of "+this.getClass().getSimpleName()+".");
|
|
59 | 59 |
if( needTransaction() ) { |
60 | 60 |
try { |
61 | 61 |
// XXX OJO esta condicion NO ES FIABLE |
... | ... | |
66 | 66 |
} |
67 | 67 |
this.getConnection().setAutoCommit(false); |
68 | 68 |
try { |
69 |
logger.debug("Excuting operation {}.", this.getClass().getSimpleName());
|
|
69 |
LOGGER.debug("Excuting operation {}.", this.getClass().getSimpleName());
|
|
70 | 70 |
result = perform(this.getConnection()); |
71 | 71 |
} catch (Exception ex) { |
72 | 72 |
try { |
... | ... | |
83 | 83 |
} |
84 | 84 |
} else { |
85 | 85 |
try { |
86 |
logger.debug("Excuting operation {}.", this.getClass().getSimpleName());
|
|
86 |
LOGGER.debug("Excuting operation {}.", this.getClass().getSimpleName());
|
|
87 | 87 |
result = perform(this.getConnection()); |
88 | 88 |
} catch (Exception ex) { |
89 | 89 |
throw new RuntimeException("Can't perform operation '"+this.getClass().getSimpleName()+"'.",ex); |
Also available in: Unified diff