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 / jdbc / TransactionalAction.java @ 40435
History | View | Annotate | Download (551 Bytes)
1 | 40435 | jjdelcerro | package org.gvsig.fmap.dal.store.jdbc; |
---|---|---|---|
2 | |||
3 | /**
|
||
4 | * Contains an action to execute with
|
||
5 | * {@link JDBCHelper#doConnectionAction(ConnectionAction)} inside of a DB
|
||
6 | * transaction.
|
||
7 | *
|
||
8 | * @see {@link JDBCHelper#doConnectionAction(ConnectionAction)},
|
||
9 | * {@link ConnectionAction}
|
||
10 | */
|
||
11 | public interface TransactionalAction extends ConnectionAction { |
||
12 | |||
13 | /**
|
||
14 | * If before run <code>action</code> there's a transaction open and this
|
||
15 | * methos returns <code>false</code> an exception will be throwed
|
||
16 | *
|
||
17 | * @return
|
||
18 | */
|
||
19 | boolean continueTransactionAllowed();
|
||
20 | |||
21 | } |