* @param bid 掲示板ID
* @param title タイトル
* @return
*/
protected Board put(Transaction tx, long bid, String title) {
Board result = null;
if (bid == 0) {
result = new Board();
// 初期化キーを設定
result.setUpdatedDate(new Date());
result.setRegisteredDate(result.getUpdatedDate());
} else {
result = get(tx, bid);
result.setUpdatedDate(new Date());
}
Datastore.put(tx, result);
return result;
}