comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/cache/QueryObject.java @ 845:797a6264b89b

Integrated the CacheCleaner for the ThematicDataCache gnv-artifacts/trunk@961 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 20 Apr 2010 18:38:22 +0000
parents
children af53410ad551
comparison
equal deleted inserted replaced
844:74608c12b4fe 845:797a6264b89b
1 /**
2 *
3 */
4 package de.intevation.gnv.state.cache;
5 /**
6 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
7 *
8 */
9 public class QueryObject {
10
11 /**
12 * The Id of the State the Query belongs to
13 */
14 private String stateId = null;
15
16 /**
17 * The Query which belongs to the State
18 */
19 private String query = null;
20
21 /**
22 * Constructor
23 * @param stateId the Id of the State the Query belongs to
24 * @param query the Query which belongs to the State
25 */
26 public QueryObject(String stateId, String query) {
27 this.stateId = stateId;
28 this.query = query.toUpperCase();
29 }
30
31 /**
32 * Returns the StateId
33 * @return the Stateid
34 */
35 public String getStateId() {
36 return stateId;
37 }
38
39 /**
40 * Returns the Querystring
41 * @return the QueryString
42 */
43 public String getQuery() {
44 return query;
45 }
46
47 /**
48 * Returns true if the given Name of the Table is Contained in the Query
49 * @param tableName the Name of the Table
50 * @return true if the Name of the Table is contained in the Query
51 */
52 public boolean queryContainsTableName(String tableName){
53 return this.query.contains(tableName);
54 }
55 }

http://dive4elements.wald.intevation.org