Subversion Repositories bacoAlunos

Rev

Rev 1781 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 fvelez 1
/*
2
BERSERK - a BusinEss Runtime and SEcurity Resources Kit
3
Copyright (C) 2003 Goncalo Luiz
4
 
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Lesser General Public
7
License as published by the Free Software Foundation; either
8
version 2.1 of the License, or (at your option) any later version.
9
 
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Lesser General Public License for more details.
14
 
15
You should have received a copy of the GNU Lesser General Public
16
License along with this library; if not, write to the Free Software
17
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
 
19
To contact Goncalo Luiz use the following e-mail address (use an @ instead of the _):
20
gedl_mega.ist.utl.pt
21
*/
22
/*
23
 * @author Goncalo Luiz gedl [AT] rnl [DOT] ist [DOT] utl [DOT] pt
24
 *
25
 *
26
 * Created at 19/Out/2003 , 14:56:47
27
 *
28
 */
29
package pt.utl.ist.berserk.storage.empty;
30
import pt.utl.ist.berserk.storage.ITransactionBroker;
31
import pt.utl.ist.berserk.storage.exceptions.StorageException;
1781 jmachado 32
 
33
import java.util.List;
1 fvelez 34
/**
35
 * Does absolutely nothing.<br/>
36
 * Use this if you don't want a transictional manager.<br/>
37
 * You must specify one. Otherwise BERSERK doesn't work.
38
 * @author Goncalo Luiz gedl [AT] rnl [DOT] ist [DOT] utl [DOT] pt
39
 *
40
 *
41
 * Created at 19/Out/2003 , 14:56:47
42
 *
43
 */
44
public class TransactionBrokerEmpty implements ITransactionBroker
45
{
46
        static private TransactionBrokerEmpty instance;
47
        private TransactionBrokerEmpty()
48
        {
49
        }
50
        public static TransactionBrokerEmpty getInstance()
51
        {
52
                if (instance == null)
53
                        instance = new TransactionBrokerEmpty();
54
                return instance;
55
        }
1781 jmachado 56
    public boolean isTransactionActive() throws StorageException
57
    {
1827 jmachado 58
        throw new 1.5.0/docs/api/java/lang/RuntimeException.html">RuntimeException("Not Implemented");
1781 jmachado 59
    }
1 fvelez 60
        public void beginTransaction() throws StorageException
61
        {
62
        }
63
        public void commitTransaction() throws StorageException
64
        {
65
        }
66
        public void abortTransaction() throws StorageException
67
        {
68
        }
69
        public void lockRead(5+0%2Fdocs%2Fapi+List">List list) throws StorageException
70
        {
71
        }
72
        public void lockRead(5+0%2Fdocs%2Fapi+Object">Object obj) throws StorageException
73
        {
74
        }
75
        public void lockWrite(5+0%2Fdocs%2Fapi+Object">Object obj) throws StorageException
76
        {
77
        }
78
}