Revision 33053

View differences:

branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/gui/selectionByTheme/MySelectionByThemeListener.java
313 313
		public String getName() {
314 314
			return "select by theme";
315 315
		}
316
		public String getCQL() {
316

  
317
		public String getSQL() {
317 318
			// TODO Auto-generated method stub
318 319
			return null;
319 320
		}
branches/v2_0_0_prep/libraries/libEvaluator_SQLJEP/src/org/gvsig/tools/evaluator/sqljep/SQLJEPEvaluator.java
27 27
		return "SQLJEP(" + expresion + ")";
28 28
	}
29 29

  
30
	public String getCQL() {
30
	public String getSQL() {
31 31
		return expresion;
32 32
	}
33 33

  
branches/v2_0_0_prep/libraries/libFMap_dal/src-test/org/gvsig/fmap/dal/feature/BaseTestFeatureStore.java
653 653
				return Boolean.TRUE;
654 654
			}
655 655

  
656
			public String getCQL() {
656
			public String getSQL() {
657 657
				return "true = true";
658 658
			}
659 659

  
branches/v2_0_0_prep/libraries/libFMap_dal/src-test/org/gvsig/fmap/dal/feature/BaseTestEditableFeatureStore.java
97 97
			return value.toLowerCase();
98 98
		}
99 99

  
100
		public String getCQL() {
100
		public String getSQL() {
101 101
			return null;
102 102
		}
103 103

  
......
127 127
			return value.toUpperCase();
128 128
		}
129 129

  
130
		public String getCQL() {
130
		public String getSQL() {
131 131
			return null;
132 132
		}
133 133

  
branches/v2_0_0_prep/libraries/libFMap_daldb/src-test/org/gvsig/fmap/dal/store/postgresql/TestPostgreSQL.java
117 117
				return Boolean.TRUE;
118 118
			}
119 119

  
120
			public String getCQL() {
120
			public String getSQL() {
121 121
				return "true = true";
122 122
			}
123 123

  
branches/v2_0_0_prep/libraries/libFMap_daldb/src-test/org/gvsig/fmap/dal/store/postgresql/TestPostgreSQLWrite.java
130 130
				return Boolean.TRUE;
131 131
			}
132 132

  
133
			public String getCQL() {
133
			public String getSQL() {
134 134
				return "true = true";
135 135
			}
136 136

  
branches/v2_0_0_prep/libraries/libFMap_daldb/src/org/gvsig/fmap/dal/store/jdbc/JDBCSetProvider.java
116 116
			return null;
117 117
		}
118 118
		EvaluatorFieldsInfo info = filter.getFieldsInfo();
119
		String filterString = filter.getCQL();
119
		String filterString = filter.getSQL();
120 120
		if (info == null) {
121 121
			return filterString;
122 122
		}
......
200 200
	public boolean canFilter() {
201 201
		Evaluator filter = getQuery().getFilter();
202 202
		if (filter != null) {
203
			if (filter.getCQL() == null || filter.getCQL().length() == 0) {
203
			if (filter.getSQL() == null || filter.getSQL().length() == 0) {
204 204
				return false;
205 205
			} else {
206 206
				// TODO Check Geom fields if
......
251 251
		if (query.hasOrder()) {
252 252
			Iterator iter = query.getOrder().iterator();
253 253
			FeatureQueryOrderMember menber;
254
			String cql;
254
			String sql;
255 255
			while (iter.hasNext()){
256 256
				menber = (FeatureQueryOrderMember) iter.next();
257 257
				if (menber.hasEvaluator()){
258
					cql =menber.getEvaluator().getCQL();
259
					if (cql == null || cql.length() == 0) {
258
					sql = menber.getEvaluator().getSQL();
259
					if (sql == null || sql.length() == 0) {
260 260
						return false;
261 261
					}
262 262
				}
branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/EqualsGeometryEvaluator.java
73 73
		return "equals with geometry";
74 74
	}
75 75

  
76
	public String getCQL() {
76
	public String getSQL() {
77 77
		if (geometryWKT == null) {
78 78
			try {
79 79
				geometryWKT = (String) geometry.invokeOperation(ToWKT.CODE,
branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/OverlapsGeometryEvaluator.java
68 68
		return "overlaps with geometry";
69 69
	}
70 70

  
71
	public String getCQL() {
71
	public String getSQL() {
72 72
		return " overlaps(GeomFromText('" + geometry.toString() + "', " + "'"
73 73
				+ srs + "'" + "), " + geomName + ") ";
74 74
	}
branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/ContainsEnvelopeEvaluator.java
67 67
		return "contains in envelope";
68 68
	}
69 69

  
70
	public String getCQL() {
70
	public String getSQL() {
71 71
		if (envelopeWKT == null) {
72 72
			try {
73 73
				envelopeWKT = (String) envelope.getGeometry().invokeOperation(
branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/WithinGeometryEvaluator.java
68 68
		return "within with geometry";
69 69
	}
70 70

  
71
	public String getCQL() {
71
	public String getSQL() {
72 72
		return " within(GeomFromText('" + geometry.toString() + "', " + "'"
73 73
				+ srs + "'" + "), " + geomName + ") ";
74 74
	}
branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/IntersectsEnvelopeEvaluator.java
68 68
		return "intersets in envelope";
69 69
	}
70 70

  
71
	public String getCQL() {
71
	public String getSQL() {
72 72

  
73 73

  
74 74
		if (envelopeWKT == null) {
branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/OutGeometryEvaluator.java
68 68
		return "out of geometry";
69 69
	}
70 70

  
71
	public String getCQL() {
71
	public String getSQL() {
72 72
		return " not contains(GeomFromText('" + geometry.toString() + "', " + "'"
73 73
				+ srs + "'" + "), " + geomName + ") ";
74 74
	}
branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/TouchesGeometryEvaluator.java
68 68
		return "touches with geometry";
69 69
	}
70 70

  
71
	public String getCQL() {
71
	public String getSQL() {
72 72
		return " touches(GeomFromText('" + geometry.toString() + "', " + "'"
73 73
				+ srs + "'" + "), " + geomName + ") ";
74 74
	}
branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/CrossEnvelopeEvaluator.java
86 86
		return "contains in envelope";
87 87
	}
88 88

  
89
	public String getCQL() {
89
	public String getSQL() {
90 90
		if (envelopeWKT == null) {
91 91
			try {
92 92
				envelopeWKT = (String) envelope.getGeometry().invokeOperation(
branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/ContainsGeometryEvaluator.java
73 73
		return "contains with geometry";
74 74
	}
75 75

  
76
	public String getCQL() {
76
	public String getSQL() {
77 77
		if (geometryWKT == null) {
78 78
			try {
79 79
				geometryWKT = (String) geometry.invokeOperation(ToWKT.CODE,
branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/CrossesGeometryEvaluator.java
73 73
		return "crosses with geometry";
74 74
	}
75 75

  
76
	public String getCQL() {
76
	public String getSQL() {
77 77
		if (geometryWKT == null) {
78 78
			try {
79 79
				geometryWKT = (String) geometry.invokeOperation(ToWKT.CODE,
branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/DisjointGeometryEvaluator.java
74 74
		return "disjoint with geometry";
75 75
	}
76 76

  
77
	public String getCQL() {
77
	public String getSQL() {
78 78
		if (geometryWKT == null) {
79 79
			try {
80 80
				geometryWKT = (String) geometry.invokeOperation(ToWKT.CODE,
branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/IntersectsGeometryEvaluator.java
69 69
		return "intersects with geometry";
70 70
	}
71 71

  
72
	public String getCQL() {
72
	public String getSQL() {
73 73
		if (geometryWKT == null) {
74 74
			try {
75 75
				geometryWKT = (String) geometry.invokeOperation(ToWKT.CODE,
branches/v2_0_0_prep/libraries/libFMap_dalfile/src-test/org/gvsig/fmap/dal/store/dbf/JoinTransform.java
262 262

  
263 263
		private String attribute;
264 264
		private Object value;
265
		private String cql;
265
		private String sql;
266 266
		private EvaluatorFieldsInfo info = null;
267 267

  
268 268
		//		private int attributeIndex;
......
277 277

  
278 278
		public void updateValue(Object value) {
279 279
			this.value = value;
280
			this.cql = this.attribute + "= '" + this.value + "'";
280
			this.sql = this.attribute + "= '" + this.value + "'";
281 281
			this.info = new EvaluatorFieldsInfo();
282 282
			this.info.addMatchFieldValue(this.attribute, value);
283 283
		}
......
290 290
			return new Boolean(curValue.equals(value));
291 291
		}
292 292

  
293
		public String getCQL() {
294
			return this.cql;
293
		public String getSQL() {
294
			return this.sql;
295 295
		}
296 296

  
297 297
		public String getDescription() {
branches/v2_0_0_prep/extensions/extDalTransformJoin/src/org/gvsig/app/join/dal/feature/JoinTransform.java
274 274

  
275 275
		private String attribute;
276 276
		private Object value;
277
		private String cql;
277
		private String sql;
278 278
		private EvaluatorFieldsInfo info = null;
279 279

  
280 280
		//		private int attributeIndex;
......
289 289

  
290 290
		public void updateValue(Object value) {
291 291
			this.value = value;
292
			this.cql = this.attribute + "= '" + this.value + "'";
292
			this.sql = this.attribute + "= '" + this.value + "'";
293 293
			this.info = new EvaluatorFieldsInfo();
294 294
			this.info.addMatchFieldValue(this.attribute, value);
295 295
		}
......
302 302
			return curValue.equals(value);
303 303
		}
304 304

  
305
		public String getCQL() {
306
			return this.cql;
305
		public String getSQL() {
306
			return this.sql;
307 307
		}
308 308

  
309 309
		public String getDescription() {
branches/v2_0_0_prep/extensions/extDataLocator/src/org/gvsig/datalocator/gui/DataSelectionPanel.java
761 761
			return new Boolean(false);
762 762
		}
763 763

  
764
		public String getCQL() {
764
		public String getSQL() {
765 765
			return name + " is not null;";
766 766
		}
767 767

  

Also available in: Unified diff