All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class bank.storage.CustomerTableMapper

java.lang.Object
   |
   +----bank.storage.JdbcTableMapper
           |
           +----bank.storage.CustomerTableMapper

public class CustomerTableMapper
extends JdbcTableMapper
bank.model.CustomerをRdbのCustomerテーブルにマッピングする #pattern: Strategy #toDo: Static SQL、ストアドプロシジャで速度性能を高める

See Also:
Customer

Constructor Index

 o CustomerTableMapper()

Method Index

 o fromResultSet(ResultSet)
SQL実行により返却されたデータからCustomerのインスタンスを復元する
 o selectQuery(Object)
Customerのインスタンスを取り出すためのSelect文の生成

Constructors

 o CustomerTableMapper
 public CustomerTableMapper()

Methods

 o fromResultSet
 public Object fromResultSet(ResultSet rs) throws SQLException, NotFoundException
SQL実行により返却されたデータからCustomerのインスタンスを復元する

Parameters:
rs - ResultSet
Returns:
Account
Overrides:
fromResultSet in class JdbcTableMapper
 o selectQuery
 public String selectQuery(Object key)
Customerのインスタンスを取り出すためのSelect文の生成

Returns:
java.lang.String
Overrides:
selectQuery in class JdbcTableMapper

All Packages  Class Hierarchy  This Package  Previous  Next  Index