|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
public interface BlogDao
ブログのデータアクセスインターフェースです。
| メソッドの概要 | |
|---|---|
int |
countBlogEntry(int blogId)
ブログが持つブログ記事の数を取得します。 |
int |
countComment(int blogEntryId)
ブログ記事が持つコメント数を取得します。 |
void |
delete(int blogId)
指定した主キーを持つデータを削除します。 |
void |
deleteBlogEntry(int entryId)
指定したブログ記事を削除します。 |
List<BlogEntry> |
findBlogEntries(int blogId,
int no,
int num)
指定した範囲のブログ記事を取得します。 |
Blog |
findByCode(String code)
コードを指定してブログを取得します。 |
List<Blog> |
findByOwnerId(int ownerId)
指定した所有者のブログリストを取得します。 |
List<Comment> |
findComments(int entryId)
指定したブログ記事のコメントを取得します。 |
List<Blog> |
findPublicBlogs()
匿名ユーザに公開しているブログを取得します。 |
List<Blog> |
findPublicBlogsRandomly(int max)
匿名ユーザに公開しているブログを取得します。 |
void |
registerBlogEntry(int blogId,
int entryId)
指定したブログに指定した記事を登録します。 |
void |
registerComment(int entryId,
int commentId)
指定した記事にコメントを登録します。 |
| インタフェース org.unitedfront2.dao.Registerable から継承されたメソッド |
|---|
register |
| インタフェース org.unitedfront2.dao.SimpleFindable から継承されたメソッド |
|---|
find |
| インタフェース org.unitedfront2.dao.Updatable から継承されたメソッド |
|---|
update |
| インタフェース org.unitedfront2.dao.Dao から継承されたメソッド |
|---|
getCurrentDate |
| メソッドの詳細 |
|---|
void registerBlogEntry(int blogId,
int entryId)
blogId - ブログ IDentryId - ブログ記事 ID (メッセージ ID)
void registerComment(int entryId,
int commentId)
entryId - ブログ記事 ID (メッセージ ID)commentId - コメント IDBlog findByCode(String code)
code - コード
nullList<Blog> findByOwnerId(int ownerId)
ownerId - 所有者のユーザ ID
List<Blog> findPublicBlogs()
List<Blog> findPublicBlogsRandomly(int max)
max - 最大件数
void delete(int blogId)
SimpleDeletable の記述:
SimpleDeletable 内の deleteblogId - 主キーint countBlogEntry(int blogId)
blogId - ブログ ID
int countComment(int blogEntryId)
blogEntryId - ブログ記事 ID
List<BlogEntry> findBlogEntries(int blogId,
int no,
int num)
blogId - ブログ IDno - 開始点となる記事番号num - 件数
List<Comment> findComments(int entryId)
entryId - ブログ記事 ID (メッセージ ID)
void deleteBlogEntry(int entryId)
entryId - ブログ記事 ID
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||