|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.mosp.common.common.BaseDao
jp.mosp.common.dao.CtAccountDao
public class CtAccountDao
アカウントテーブルを操作をする機能を提供する。
CtAccountDto
を用いて、DBとJavaプログラム間でレコードを共有する。
フィールドの概要 | |
---|---|
static String |
COL_ATTEMPT
アカウントテーブル、列名(試行回数)。 |
static String |
COL_USER_ID
アカウントテーブル、列名(ユーザーID)。 |
static String |
KEY_01
アカウントテーブル、主キー。 |
static String |
TABLE
アカウントテーブル名。 |
クラス jp.mosp.common.common.BaseDao から継承されたフィールド |
---|
aspUserId, cfg, cmd, cnt, conn, index, INSERT_DATE, INSERT_USER, ps, rs, UPDATE_DATE, UPDATE_USER, userId |
コンストラクタの概要 | |
---|---|
CtAccountDao()
コンストラクタ。 |
|
CtAccountDao(Properties cfg,
String cmd,
CmAspUserDto aspUser,
CmUserDto user,
Connection conn)
コンストラクタ。 |
メソッドの概要 | |
---|---|
List<CtAccountDto> |
findAllCtAccount()
全データ取得。 |
CtAccountDto |
findCtAccountForUserId(String userId)
キーによるデータ取得。 |
int |
insert(CtAccountDto dto)
データ挿入。 |
int |
update(CtAccountDto dto)
データ更新。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final String TABLE
public static final String KEY_01
public static final String COL_USER_ID
public static final String COL_ATTEMPT
コンストラクタの詳細 |
---|
public CtAccountDao()
public CtAccountDao(Properties cfg, String cmd, CmAspUserDto aspUser, CmUserDto user, Connection conn)
cfg
- 設定ファイルcmd
- コマンドaspUser
- ASPユーザーuser
- ユーザーconn
- DBコネクションメソッドの詳細 |
---|
public List<CtAccountDto> findAllCtAccount() throws SQLException, IllegalAccessException, NoSuchFieldException
SQLException
IllegalAccessException
NoSuchFieldException
public CtAccountDto findCtAccountForUserId(String userId) throws SQLException, IllegalAccessException, NoSuchFieldException
userId
- ユーザーID(検索キー)
SQLException
IllegalAccessException
NoSuchFieldException
public int insert(CtAccountDto dto) throws SQLException, IllegalAccessException, NoSuchFieldException
dto
- 挿入対象DTO
SQLException
IllegalAccessException
NoSuchFieldException
public int update(CtAccountDto dto) throws SQLException, IllegalAccessException, NoSuchFieldException
dto
- 更新対象DTO
SQLException
IllegalAccessException
NoSuchFieldException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |