001: /*
002: * ObJectRelationalBridge - Bridging Java Objects and Relational Databases
003: * http://objectbridge.sourceforge.net
004: * Copyright (C) 2000, 2001 Thomas Mahler, et al.
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or (at your option) any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
019: */
020:
021: /*
022: * Created by: thma
023: * Date: May 6, 2001
024: */
025: package org.apache.ojb.odmg.shared;
026:
027: import org.apache.commons.lang.builder.ToStringBuilder;
028:
029: import java.util.Collection;
030: import java.io.Serializable;
031:
032: public class Role implements Serializable {
033: private int member_id;
034: private int project_id;
035: private Member member;
036: private Project project;
037: private String roleName;
038: private Collection tasks;
039:
040: public Role() {
041: }
042:
043: public Role(int pMemberId, int pProjectId, String pRolename) {
044: member_id = pMemberId;
045: project_id = pProjectId;
046: roleName = pRolename;
047: }
048:
049: public String getRoleName() {
050: return roleName;
051: }
052:
053: public void setRoleName(String roleName) {
054: this .roleName = roleName;
055: }
056:
057: public int getMember_id() {
058: return member_id;
059: }
060:
061: public void setMember_id(int member_id) {
062: this .member_id = member_id;
063: }
064:
065: public int getProject_id() {
066: return project_id;
067: }
068:
069: public void setProject_id(int project_id) {
070: this .project_id = project_id;
071: }
072:
073: public Member getMember() {
074: return member;
075: }
076:
077: public void setMember(Member member) {
078: this .member = member;
079: }
080:
081: public Project getProject() {
082: return project;
083: }
084:
085: public void setProject(Project project) {
086: this .project = project;
087: }
088:
089: public Collection getTasks() {
090: return tasks;
091: }
092:
093: public void setTasks(Collection tasks) {
094: this .tasks = tasks;
095: }
096:
097: public String toString() {
098: ToStringBuilder buf = new ToStringBuilder(this );
099: buf.append("roleName", roleName).append("memberId", member_id)
100: .append("member", member).append("projectId",
101: project_id).append("project", project).append(
102: "tasks", tasks);
103: return buf.toString();
104: }
105: }
|