com.atomikos.osgi.sample.internal.dao.jdbc
Class AccountDaoImpl

java.lang.Object
  extended by com.atomikos.osgi.sample.internal.dao.jdbc.AccountDaoImpl
All Implemented Interfaces:
AccountDao

public class AccountDaoImpl
extends Object
implements AccountDao


Constructor Summary
AccountDaoImpl()
           
 
Method Summary
 long getBalance(int accno)
           
 DataSource getDataSource()
           
 String getOwner(int accno)
           
 void setDataSource(DataSource dataSource)
           
 void withdraw(int accno, int amount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountDaoImpl

public AccountDaoImpl()
Method Detail

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.