Rev 1310 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
/*
BERSERK - a BusinEss Runtime and SEcurity Resources Kit
Copyright (C) 2003 Goncalo Luiz
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
To contact Goncalo Luiz use the following e-mail address (use an @ instead of the _):
gedl_mega.ist.utl.pt
*/
/*
* @author Goncalo Luiz gedl [AT] rnl [DOT] ist [DOT] utl [DOT] pt
*
*
* Created at 19/Out/2003 , 14:56:47
*
*/
package pt.utl.ist.berserk.storage.empty;
import pt.utl.ist.berserk.storage.ITransactionBroker;
import pt.utl.ist.berserk.storage.exceptions.StorageException;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
import java.util.List;
/**
* Does absolutely nothing.<br/>
* Use this if you don't want a transictional manager.<br/>
* You must specify one. Otherwise BERSERK doesn't work.
* @author Goncalo Luiz gedl [AT] rnl [DOT] ist [DOT] utl [DOT] pt
*
*
* Created at 19/Out/2003 , 14:56:47
*
*/
public class TransactionBrokerEmpty
implements ITransactionBroker
{
static private TransactionBrokerEmpty instance
;
private TransactionBrokerEmpty
()
{
}
public static TransactionBrokerEmpty getInstance
()
{
if (instance ==
null)
instance =
new TransactionBrokerEmpty
();
return instance
;
}
public boolean isTransactionActive
() throws StorageException
{
throw new NotImplementedException
();
}
public void beginTransaction
() throws StorageException
{
}
public void commitTransaction
() throws StorageException
{
}
public void abortTransaction
() throws StorageException
{
}
public void lockRead
(5+0%2Fdocs%2Fapi+List">List list
) throws StorageException
{
}
public void lockRead
(5+0%2Fdocs%2Fapi+Object">Object obj
) throws StorageException
{
}
public void lockWrite
(5+0%2Fdocs%2Fapi+Object">Object obj
) throws StorageException
{
}
}