KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ivata > groupware > business > search > item > content > SearchItemContentDO


1 /*
2  * Copyright (c) 2001 - 2005 ivata limited.
3  * All rights reserved.
4  * -----------------------------------------------------------------------------
5  * ivata groupware may be redistributed under the GNU General Public
6  * License as published by the Free Software Foundation;
7  * version 2 of the License.
8  *
9  * These programs are free software; you can redistribute them and/or
10  * modify them under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; version 2 of the License.
12  *
13  * These programs are distributed in the hope that they will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  *
17  * See the GNU General Public License in the file LICENSE.txt for more
18  * details.
19  *
20  * If you would like a copy of the GNU General Public License write to
21  *
22  * Free Software Foundation, Inc.
23  * 59 Temple Place - Suite 330
24  * Boston, MA 02111-1307, USA.
25  *
26  *
27  * To arrange commercial support and licensing, contact ivata at
28  * http://www.ivata.com/contact.jsp
29  * -----------------------------------------------------------------------------
30  * $Log: SearchItemContentDO.java,v $
31  * Revision 1.4 2005/04/29 02:48:20 colinmacleod
32  * Data bugfixes.
33  * Changed primary key back to Integer.
34  *
35  * Revision 1.3 2005/04/10 20:09:48 colinmacleod
36  * Added new themes.
37  * Changed id type to String.
38  * Changed i tag to em and b tag to strong.
39  * Improved PicoContainerFactory with NanoContainer scripts.
40  *
41  * Revision 1.2 2005/04/09 17:19:55 colinmacleod
42  * Changed copyright text to GPL v2 explicitly.
43  *
44  * Revision 1.1.1.1 2005/03/10 17:52:38 colinmacleod
45  * Restructured ivata op around Hibernate/PicoContainer.
46  * Renamed ivata groupware.
47  *
48  * Revision 1.2 2004/09/30 15:01:44 colinmacleod
49  * Fixed hibernate tags.
50  *
51  * Revision 1.1 2004/08/01 11:40:28 colinmacleod
52  * Moved search classes to separate subproject.
53  *
54  * -----------------------------------------------------------------------------
55  */

56 package com.ivata.groupware.business.search.item.content;
57
58 import com.ivata.groupware.business.search.item.SearchItemDO;
59 import com.ivata.groupware.container.persistence.BaseDO;
60
61 /**
62  * <p>
63  * Each item searched for in <strong>ivata groupware</strong> can have different
64  * content associated with it. Whether it is a page in a library item, or a
65  * comment about a library item, for example, it is more efficient to index
66  * these separately so they can be updated separately when they change.
67  * </p>
68  *
69  * @since Aug 1, 2004
70  * @author Colin MacLeod
71  * <a HREF='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
72  * @version $Revision: 1.4 $
73  *
74  * @hibernate.class
75  * table="search_item_content"
76  * @hibernate.cache
77  * usage="read-write"
78  */

79 public class SearchItemContentDO extends BaseDO {
80
81     /**
82      * <p>
83      * This refers to the item which contains this content.
84      * </p>
85      */

86     private SearchItemDO item;
87     /**
88      * <p> Unique identifier of the object being indexed. </p>
89      */

90     private Integer JavaDoc targetId;
91
92     /**
93      * <p> This is a text to describe the type of the object being indexed. In
94      * <strong>ivata groupware</strong>, this always refers to the class of the
95      * indexed object. </p>
96      */

97     private String JavaDoc type;
98
99     /**
100      * <p>
101      * This refers to the item which contains this content.
102      * </p>
103      *
104      * @return Returns the item.
105      * @hibernate.many-to-one
106      * column="search_item"
107      */

108     public final SearchItemDO getItem() {
109         return item;
110     }
111
112     /**
113      * <p>
114      * Unique identifier of the object being indexed.
115      * </p>
116      *
117      * @return Returns the targetId.
118      * @hibernate.property
119      * column="target_id"
120      */

121     public final Integer JavaDoc getTargetId() {
122         return targetId;
123     }
124
125     /**
126      * <p>
127      * This is a text to describe the type of the object being indexed. In
128      * <strong>ivata groupware</strong>, this always refers to the class of the
129      * indexed object.
130      * </p>
131      *
132      * @return Returns the type.
133      * @hibernate.property
134      */

135     public final String JavaDoc getType() {
136         return type;
137     }
138     /**
139      * <p>
140      * This refers to the item which contains this content.
141      * </p>
142      *
143      * @param item The item to set.
144      */

145     public final void setItem(final SearchItemDO item) {
146         this.item = item;
147     }
148
149     /**
150      * <p>
151      * Unique identifier of the object being indexed.
152      * </p>
153      *
154      * @param targetId The targetId to set.
155      */

156     public final void setTargetId(final Integer JavaDoc targetId) {
157         this.targetId = targetId;
158     }
159
160     /**
161      * <p>
162      * This is a text to describe the type of the object being indexed. In
163      * <strong>ivata groupware</strong>, this always refers to the class of the
164      * indexed object.
165      * </p>
166      *
167      * @param type The type to set.
168      */

169     public final void setType(final String JavaDoc type) {
170         this.type = type;
171     }
172 }
173
Popular Tags