com.atomikos.osgi.sample.internal.dao.jdbc
Class AccountDaoImpl
java.lang.Object
com.atomikos.osgi.sample.internal.dao.jdbc.AccountDaoImpl
- All Implemented Interfaces:
- AccountDao
public class AccountDaoImpl
- extends Object
- implements AccountDao
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccountDaoImpl
public AccountDaoImpl()
getBalance
public long getBalance(int accno)
throws Exception
- Specified by:
getBalance
in interface AccountDao
- Throws:
Exception
setDataSource
public void setDataSource(DataSource dataSource)
getDataSource
public DataSource getDataSource()
getOwner
public String getOwner(int accno)
throws Exception
- Specified by:
getOwner
in interface AccountDao
- Throws:
Exception
withdraw
public void withdraw(int accno,
int amount)
throws Exception
- Specified by:
withdraw
in interface AccountDao
- Throws:
Exception
Copyright © 2012. All Rights Reserved.