1 /*
2 QueryJ
3
4 Copyright (C) 2002 Jose San Leandro Armend?riz
5 jsanleandro@yahoo.es
6 chousz@yahoo.com
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
22 Thanks to ACM S.L. for distributing this library under the GPL license.
23 Contact info: jsanleandro@yahoo.es
24 Postal Address: c/Playa de Lagoa, 1
25 Urb. Valdecaba?as
26 Boadilla del monte
27 28660 Madrid
28 Spain
29
30 ******************************************************************************
31 *
32 * Filename: $RCSfile: TransactionToken.java,v $
33 *
34 * Author: Jose San Leandro Armend?riz
35 *
36 * Description: Represents a transaction runtime environment. The one that
37 * created it manages the transaction.
38 *
39 * Last modified by: $Author: chous $ at $Date: 2003/08/29 08:15:00 $
40 *
41 * File version: $Revision: 1.1 $
42 *
43 * Project version: $Name: $
44 *
45 * $Id: TransactionToken.java,v 1.1 2003/08/29 08:15:00 chous Exp $
46 *
47 */
48 package org.acmsl.queryj.dao;
49
50 /***
51 * Represents a transaction runtime environment. The one that created it
52 * manages the transaction.
53 * @author <a href="mailto:jsanleandro@yahoo.es"
54 >Jose San Leandro Armend?riz</a>
55 * @version $Revision: 1.1 $
56 */
57 public interface TransactionToken
58 {
59 /***
60 * Checks if there's any active transaction.
61 * @return true if a transaction is active.
62 */
63 public boolean isTransactionAlive();
64
65 /***
66 * Gets notified whenever the transaction starts.
67 */
68 public void beginTransaction();
69
70 /***
71 * Releases the transaction.
72 */
73 public void release();
74
75 /***
76 * Takes into account that the transaction is over.
77 */
78 public void endTransaction();
79
80 /***
81 * Sets the need for a rollback of the whole transaction.
82 * @param flag to indicate to rollback the transaction.
83 */
84 public void setRollbackPending(boolean flag);
85
86 /***
87 * Checks the need for a rollback of the whole transaction.
88 * @return such information.
89 */
90 public boolean isRollbackPending();
91 }
This page was automatically generated by Maven