Package jp.co.nskint.uq.pd.signage.model

Examples of jp.co.nskint.uq.pd.signage.model.Board


     * @param bid 掲示板ID
     * @return 掲示板情報
     */
    public Board get(long bid) {
        Transaction tx = Datastore.beginTransaction();
        Board result = this.get(tx, bid);
        tx.commit();
        return result;
    }
View Full Code Here


     * @param tx トランザクション
     * @param bid 掲示板ID
     * @return 掲示板情報
     */
    public Board get(Transaction tx, long bid) {
        Board result;
        result = Datastore.getOrNull(tx, BoardMeta.get(), BoardService.createKey(bid));
        return result;
    }
View Full Code Here

     * @param title タイトル
     * @return
     */
    public Board put(long bid, String title) {
        Transaction tx = Datastore.beginTransaction();
        Board result = put(tx, bid, title);

        tx.commit();

        return result;
    }
View Full Code Here

     * @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;
    }
View Full Code Here

TOP

Related Classes of jp.co.nskint.uq.pd.signage.model.Board

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.