svn-gvsig-desktop / 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 / AbstractConnectionWritableOperation.java @ 43377
History | View | Annotate | Download (640 Bytes)
1 |
|
---|---|
2 |
package org.gvsig.fmap.dal.store.jdbc2.spi.operations; |
3 |
|
4 |
import java.sql.Connection; |
5 |
import org.gvsig.fmap.dal.resource.exception.AccessResourceException; |
6 |
import org.gvsig.fmap.dal.store.jdbc2.JDBCHelper; |
7 |
|
8 |
|
9 |
public abstract class AbstractConnectionWritableOperation extends AbstractConnectionOperation { |
10 |
|
11 |
public AbstractConnectionWritableOperation(JDBCHelper helper) {
|
12 |
super(helper);
|
13 |
} |
14 |
|
15 |
@Override
|
16 |
protected Connection getConnection() throws AccessResourceException { |
17 |
if( this.conn == null ) { |
18 |
this.conn = this.helper.getConnectionWritable(); |
19 |
} |
20 |
return this.conn; |
21 |
} |
22 |
|
23 |
} |