Multi-threaded DLL (do not use libcmt.lib)
[yaz4j-moved-to-github.git] / src / main / java / org / yaz4j / CQLQuery.java
index b854a47..15bfd1d 100644 (file)
@@ -1,18 +1,21 @@
+/*
+ * Copyright (c) 1995-2013, Index Data
+ * All rights reserved.
+ * See the file LICENSE for details.
+ */
 package org.yaz4j;
 
-public class CQLQuery {
+import org.yaz4j.jni.yaz4jlib;
 
-    private String query = null;
+/**
+ *
+ * @author jakub
+ */
+public class CQLQuery extends Query {
 
-    public CQLQuery(String query) {
-        this.query = query;
-    }
-
-    public String getQueryString() {
-        return query;
-    }
-
-    public void setQueryString(String query) {
-        this.query = query;
-    }
+  public CQLQuery(String cqlQuery) {
+    super(cqlQuery);
+    yaz4jlib.ZOOM_query_cql(query, cqlQuery);
+  }
+  
 }