KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ivata > groupware > business > search > stopword > SearchStopwordDO


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; either version 2
12  * of the License, or (at your option) any later version.
13  *
14  * These programs are distributed in the hope that they will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17  *
18  * See the GNU General Public License in the file LICENSE.txt for more
19  * details.
20  *
21  * If you would like a copy of the GNU General Public License write to
22  *
23  * Free Software Foundation, Inc.
24  * 59 Temple Place - Suite 330
25  * Boston, MA 02111-1307, USA.
26  *
27  *
28  * To arrange commercial support and licensing, contact ivata at
29  * http://www.ivata.com/contact.jsp
30  * ---------------------------------------------------------
31  * $Log: SearchStopwordDO.java,v $
32  * Revision 1.1 2005/04/30 13:06:00 colinmacleod
33  * The DO is not yet used, but it ensures Hibernate
34  * creates the associated table.
35  *
36  * ---------------------------------------------------------
37  */

38 package com.ivata.groupware.business.search.stopword;
39
40 import org.apache.log4j.Logger;
41
42 import com.ivata.groupware.container.persistence.BaseDO;
43
44 /**
45  * This table stores 'stopwords' which are treated as punctuation when
46  * indexing the search engine.
47  *
48  * @since ivata groupware 0.11 (29-Apr-2005)
49  * @author Colin MacLeod
50  * <a HREF='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
51  * @version $Revision: 1.1 $
52  *
53  * @hibernate.class
54  * table="search_stopword"
55  */

56 public class SearchStopwordDO extends BaseDO {
57     /**
58      * Logger for this class.
59      */

60     private static final Logger logger = Logger
61             .getLogger(SearchStopwordDO.class);
62
63     /**
64      * Refer to {@link #getWord}.
65      */

66     private String JavaDoc word;
67     /**
68      * The stopword.
69      *
70      * @return Returns the stopword.
71      * @hibernate.property
72      */

73     public String JavaDoc getWord() {
74         return word;
75     }
76     /**
77      * Refer to {@link #getWord}.
78      * @param wordParam Refer to {@link #getWord}.
79      */

80     public void setWord(String JavaDoc wordParam) {
81         if (logger.isDebugEnabled()) {
82             logger.debug("Setting word. Before '" + word + "', after '"
83                     + wordParam + "'");
84         }
85         word = wordParam;
86     }
87 }
88
Popular Tags