| %line | %branch | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| tsukuba_bunko.peko.session.SaveDataInfo |
|
|
| 1 | /* |
|
| 2 | * All Rights Reserved. |
|
| 3 | * Copyright (C) 1999-2005 Tsukuba Bunko. |
|
| 4 | * |
|
| 5 | * Licensed under the BSD License ("the License"); you may not use |
|
| 6 | * this file except in compliance with the License. |
|
| 7 | * You may obtain a copy of the License at |
|
| 8 | * |
|
| 9 | * http://www.tsukuba-bunko.org/licenses/LICENSE.txt |
|
| 10 | * |
|
| 11 | * Unless required by applicable law or agreed to in writing, software |
|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
|
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
| 14 | * See the License for the specific language governing permissions and |
|
| 15 | * limitations under the License. |
|
| 16 | * |
|
| 17 | * $Id: SaveDataInfo.java,v 1.2 2005/07/23 19:06:28 ppoi Exp $ |
|
| 18 | */ |
|
| 19 | package tsukuba_bunko.peko.session; |
|
| 20 | ||
| 21 | import java.io.Serializable; |
|
| 22 | ||
| 23 | import java.util.Date; |
|
| 24 | ||
| 25 | ||
| 26 | /** |
|
| 27 | * セーブデータの情報を格納する JavaBean です。 |
|
| 28 | * @author $Author: ppoi $ |
|
| 29 | * @version $Revision: 1.2 $ |
|
| 30 | */ |
|
| 31 | public class SaveDataInfo implements Serializable { |
|
| 32 | ||
| 33 | /** |
|
| 34 | * serial version UID |
|
| 35 | */ |
|
| 36 | private static final long serialVersionUID = 2459038570898243264L; |
|
| 37 | ||
| 38 | /** |
|
| 39 | * ID |
|
| 40 | */ |
|
| 41 | 0 | protected int _id = 0; |
| 42 | ||
| 43 | /** |
|
| 44 | * 保存時のタイムスタンプ |
|
| 45 | */ |
|
| 46 | 0 | protected Date _timestamp = null; |
| 47 | ||
| 48 | /** |
|
| 49 | * タイトル |
|
| 50 | */ |
|
| 51 | 0 | protected String _title = null; |
| 52 | ||
| 53 | /** |
|
| 54 | * コメント |
|
| 55 | */ |
|
| 56 | 0 | protected String _comment = null; |
| 57 | ||
| 58 | ||
| 59 | /** |
|
| 60 | * <code>SaveDataInfo</code> のインスタンスを生成します。 |
|
| 61 | */ |
|
| 62 | public SaveDataInfo() |
|
| 63 | { |
|
| 64 | 0 | super(); |
| 65 | 0 | } |
| 66 | ||
| 67 | ||
| 68 | /** |
|
| 69 | * セーブデータ ID を設定します。 |
|
| 70 | * @param id セーブデータ ID |
|
| 71 | */ |
|
| 72 | public void setID( int id ) |
|
| 73 | { |
|
| 74 | 0 | _id = id; |
| 75 | 0 | } |
| 76 | ||
| 77 | /** |
|
| 78 | * セーブデータ ID を取得します。 |
|
| 79 | * @return セーブデータ ID |
|
| 80 | */ |
|
| 81 | public int getID() |
|
| 82 | { |
|
| 83 | 0 | return _id; |
| 84 | } |
|
| 85 | ||
| 86 | /** |
|
| 87 | * タイトルを設定します。 |
|
| 88 | * @param title タイトル |
|
| 89 | */ |
|
| 90 | public void setTitle( String title ) |
|
| 91 | { |
|
| 92 | 0 | _title = title; |
| 93 | 0 | } |
| 94 | ||
| 95 | /** |
|
| 96 | * タイトルを取得します。 |
|
| 97 | * @return タイトル |
|
| 98 | */ |
|
| 99 | public String getTitle() |
|
| 100 | { |
|
| 101 | 0 | return _title; |
| 102 | } |
|
| 103 | ||
| 104 | /** |
|
| 105 | * コメントを設定します。 |
|
| 106 | * @param comment コメント |
|
| 107 | */ |
|
| 108 | public void setComment( String comment ) |
|
| 109 | { |
|
| 110 | 0 | _comment = comment; |
| 111 | 0 | } |
| 112 | ||
| 113 | /** |
|
| 114 | * コメントを取得します。 |
|
| 115 | * @return コメント |
|
| 116 | */ |
|
| 117 | public String getComment() |
|
| 118 | { |
|
| 119 | 0 | return _comment; |
| 120 | } |
|
| 121 | ||
| 122 | /** |
|
| 123 | * タイムスタンプを設定します。 |
|
| 124 | * @param timestamp タイムスタンプ |
|
| 125 | */ |
|
| 126 | public void setTimestamp( Date timestamp ) |
|
| 127 | { |
|
| 128 | 0 | _timestamp = timestamp; |
| 129 | 0 | } |
| 130 | ||
| 131 | /** |
|
| 132 | * タイムスタンプを取得します。 |
|
| 133 | * @return タイムスタンプ |
|
| 134 | */ |
|
| 135 | public Date getTimestamp() |
|
| 136 | { |
|
| 137 | 0 | return _timestamp; |
| 138 | } |
|
| 139 | } |
| This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |