パッケージ com.handywedge.db

インタフェース FWConnectionManager

  • 既知のサブインタフェースのリスト:
    FWFullConnectionManager

    public interface FWConnectionManager
    DBコネクションを生成するインターフェースです。
    DBへアクセスするにはgetConnectionメソッドからFWConnectionインスタンスを取得してアクセスします。
     
       @Inject
       private FWConnectionManager mgr;
     ・・・
        FWConnection con = mgr.getConnection();
        FWPreparedStatement ps = con.prepareStatement("select * from hoge where id = ?");
     ・・・
     
     
     
    • メソッドの詳細

      • getConnection

        FWConnection getConnection()
        DBコネクションを返します。
        戻り値:
        DBコネクション