|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjp.mosp.common.common.BaseDao
jp.mosp.common.dao.CmUserDao
public class CmUserDao
ユーザーテーブルを操作をする機能を提供する。
CmUserDtoを用いて、DBとJavaプログラム間でレコードを共有する。
| フィールドの概要 | |
|---|---|
static String |
COL_AUTHORITY
ユーザーテーブル、列名(プログラム利用権限)。 |
static String |
COL_CHANGE_PASS
ユーザーテーブル、列名(パスワード変更日)。 |
static String |
COL_DATA_LEVEL
ユーザーテーブル、列名(データ参照レベル)。 |
static String |
COL_DELETE_FLAG
ユーザーテーブル、列名(削除フラグ)。 |
static String |
COL_K_CODE
ユーザーテーブル、列名(社員コード)。 |
static String |
COL_PASSWORD
ユーザーテーブル、列名(パスワード)。 |
static String |
COL_USER_ID
ユーザーテーブル、列名(ID)。 |
static String |
COL_USER_NAME
ユーザーテーブル、列名(ユーザー名)。 |
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 |
| コンストラクタの概要 | |
|---|---|
CmUserDao()
コンストラクタ。 |
|
CmUserDao(Properties cfg,
String cmd,
CmAspUserDto aspUser,
CmUserDto user,
Connection conn)
コンストラクタ。 |
|
| メソッドの概要 | |
|---|---|
List<CmUserDto> |
findAllCmUser()
全データ取得。 |
List<CmUserDto> |
findCmUserForCondition(String userId,
String userName,
String authority,
String deleteFlag)
条件文によるデータ取得。 |
CmUserDto |
findForKey(String userId)
キーによるデータ取得。 |
CmUserDto |
findForUpdate(String userId)
キーによる行ロック取得。 |
int |
insert(CmUserDto dto)
データ挿入。 |
int |
update(CmUserDto 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_PASSWORD
public static final String COL_K_CODE
public static final String COL_USER_NAME
public static final String COL_AUTHORITY
public static final String COL_DATA_LEVEL
public static final String COL_CHANGE_PASS
public static final String COL_DELETE_FLAG
| コンストラクタの詳細 |
|---|
public CmUserDao()
public CmUserDao(Properties cfg,
String cmd,
CmAspUserDto aspUser,
CmUserDto user,
Connection conn)
cfg - 設定ファイルcmd - コマンドaspUser - ASPユーザーuser - ユーザーconn - DBコネクション| メソッドの詳細 |
|---|
public List<CmUserDto> findAllCmUser()
throws SQLException,
IllegalAccessException,
NoSuchFieldException
SQLException
IllegalAccessException
NoSuchFieldException
public CmUserDto findForKey(String userId)
throws SQLException,
IllegalAccessException,
NoSuchFieldException
userId - ユーザーID(検索キー)
SQLException
IllegalAccessException
NoSuchFieldException
public CmUserDto findForUpdate(String userId)
throws SQLException,
IllegalAccessException,
NoSuchFieldException
userId - ユーザーID(検索キー)
SQLException
IllegalAccessException
NoSuchFieldException
public List<CmUserDto> findCmUserForCondition(String userId,
String userName,
String authority,
String deleteFlag)
throws SQLException,
IllegalAccessException,
NoSuchFieldException
userId - 検索ユーザーIDuserName - 検索ユーザー名authority - 検索MosP利用権限deleteFlag - 検索削除フラグ
SQLException
IllegalAccessException
NoSuchFieldException
public int insert(CmUserDto dto)
throws SQLException,
IllegalAccessException,
NoSuchFieldException,
MospException
dto - 挿入対象DTO
SQLException
IllegalAccessException
NoSuchFieldException
MospException
public int update(CmUserDto dto)
throws SQLException,
IllegalAccessException,
NoSuchFieldException,
MospException
dto - 更新対象DTO
SQLException
IllegalAccessException
NoSuchFieldException
MospException
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||