KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ivata > groupware > container > persistence > hibernate > HibernateQuery


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: HibernateQuery.java,v $
31  * Revision 1.2 2005/04/09 17:19:37 colinmacleod
32  * Changed copyright text to GPL v2 explicitly.
33  *
34  * Revision 1.1 2005/03/10 19:23:04 colinmacleod
35  * Moved to ivata groupware.
36  *
37  * Revision 1.1 2004/07/13 19:42:44 colinmacleod
38  * Moved project to POJOs from EJBs.
39  * Applied PicoContainer to services layer (replacing session EJBs).
40  * Applied Hibernate to persistence layer (replacing entity EJBs).
41  * -----------------------------------------------------------------------------
42  */

43 package com.ivata.groupware.container.persistence.hibernate;
44
45 import java.util.Map JavaDoc;
46
47 /**
48  * @author Colin MacLeod
49  * <a HREF='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
50  * @since Mar 27, 2004
51  * @version $Revision: 1.2 $
52  */

53 public class HibernateQuery {
54     String JavaDoc queryString;
55     Map JavaDoc arguments;
56
57     public HibernateQuery(String JavaDoc queryString, Map JavaDoc arguments) {
58         super();
59         this.queryString = queryString;
60         this.arguments = arguments;
61     }
62     String JavaDoc getQueryString() {
63         return queryString;
64     }
65     Map JavaDoc getArguments() {
66         return arguments;
67     }
68
69 }
70
Popular Tags