Subversion Repositories bacoAlunos

Rev

Rev 1306 | Go to most recent revision | Details | 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 java.util.List;
31
import pt.utl.ist.berserk.storage.ITransactionBroker;
32
import pt.utl.ist.berserk.storage.exceptions.StorageException;
33
/**
34
 * Does absolutely nothing.<br/>
35
 * Use this if you don't want a transictional manager.<br/>
36
 * You must specify one. Otherwise BERSERK doesn't work.
37
 * @author Goncalo Luiz gedl [AT] rnl [DOT] ist [DOT] utl [DOT] pt
38
 *
39
 *
40
 * Created at 19/Out/2003 , 14:56:47
41
 *
42
 */
43
public class TransactionBrokerEmpty implements ITransactionBroker
44
{
45
        static private TransactionBrokerEmpty instance;
46
        private TransactionBrokerEmpty()
47
        {
48
        }
49
        public static TransactionBrokerEmpty getInstance()
50
        {
51
                if (instance == null)
52
                        instance = new TransactionBrokerEmpty();
53
                return instance;
54
        }
55
        public void beginTransaction() throws StorageException
56
        {
57
        }
58
        public void commitTransaction() throws StorageException
59
        {
60
        }
61
        public void abortTransaction() throws StorageException
62
        {
63
        }
64
        public void lockRead(5+0%2Fdocs%2Fapi+List">List list) throws StorageException
65
        {
66
        }
67
        public void lockRead(5+0%2Fdocs%2Fapi+Object">Object obj) throws StorageException
68
        {
69
        }
70
        public void lockWrite(5+0%2Fdocs%2Fapi+Object">Object obj) throws StorageException
71
        {
72
        }
73
}