01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/sam/tags/sakai_2-4-1/samigo-hibernate/src/java/org/sakaiproject/tool/assessment/data/dao/assessment/PublishedSectionMetaData.java $
03: * $Id: PublishedSectionMetaData.java 9273 2006-05-10 22:34:28Z daisyf@stanford.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2004, 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the"License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.tool.assessment.data.dao.assessment;
21:
22: import java.io.IOException;
23: import java.io.Serializable;
24:
25: import org.apache.log4j.Category;
26:
27: import org.sakaiproject.tool.assessment.data.ifc.assessment.SectionDataIfc;
28: import org.sakaiproject.tool.assessment.data.ifc.assessment.SectionMetaDataIfc;
29:
30: public class PublishedSectionMetaData implements Serializable,
31: SectionMetaDataIfc {
32: static Category errorLogger = Category.getInstance("errorLogger");
33:
34: private static final long serialVersionUID = 7526471155622776147L;
35:
36: private Long id;
37: private SectionDataIfc section;
38: private String label;
39: private String entry;
40:
41: public PublishedSectionMetaData() {
42: }
43:
44: public PublishedSectionMetaData(SectionDataIfc section,
45: String label, String entry) {
46: this .section = section;
47: this .label = label;
48: this .entry = entry;
49: }
50:
51: public Long getId() {
52: return id;
53: }
54:
55: public void setId(Long id) {
56: this .id = id;
57: }
58:
59: public SectionDataIfc getSection() {
60: return section;
61: }
62:
63: public void setSection(SectionDataIfc section) {
64: this .section = section;
65: }
66:
67: public String getLabel() {
68: return label;
69: }
70:
71: public void setLabel(String label) {
72: this .label = label;
73: }
74:
75: public String getEntry() {
76: return entry;
77: }
78:
79: public void setEntry(String entry) {
80: this .entry = entry;
81: }
82:
83: private void writeObject(java.io.ObjectOutputStream out)
84: throws IOException {
85: out.defaultWriteObject();
86: }
87:
88: private void readObject(java.io.ObjectInputStream in)
89: throws IOException, ClassNotFoundException {
90: in.defaultReadObject();
91: }
92:
93: }
|