Chapter 1. Quick Start


  1. What Is the HXTT Json?
  2. Follow Me

What Is the HXTT Json?

Follow Me

First, you need to download Java11 from if you use Cobol JDBC 4.3 package(Cobol_JDBC43.jar). You can download JDK1.8.X from if you use Cobol JDBC 4.2 package(Cobol_JDBC42.jar). You can download JDK1.7.X, JDK1.8.X, or Java 11, if you use Cobol JDBC 4.1 package(Cobol_JDBC41.jar). You can download JDK1.6.X, JDK1.7.X, JDK1.8.X, or Java 11, if you use Cobol JDBC 4.0 package(Cobol_JDBC40.jar). You can download JDK 1.3.X, 1.4.X, or JDK1.5.X if you use Cobol JDBC 3.0 package(Cobol_JDBC30.jar). You can download JDK1.2.X too if you use Cobol JDBC 2.0 package(Cobol_JDBC20.jar). You can download JDK1.1.X too if you use Cobol JDBC 1.2 package(Cobol_JDBC12.jar).

Secondly, please add Cobol_JDBC43.jar or Cobol_JDBC42.jar, Cobol_JDBC41.jar, Cobol_JDBC40.jar, Cobol_JDBC30.jar, Cobol_JDBC20.jar, or Cobol_JDBC12.jar to your Java class path, for instance, "SET CLASSPATH=c:\javalib\Cobol_JDBC42.jar;%classpath%". You can also use "java -classpath c:\javalib\Cobol_JDBC42.jar yourCobolclass" to run your class. More information about classpath, please read the "Setting the Classpath" topic in file:///yourdriver|/jdk1.8/docs/tooldocs/tools.html . You can use "java -classpath c:\javalib\Cobol_JDBC42.jar yourCobolclass" too.

Thirdly, you can use 'Class.forName("com.hxtt.sql.json.JsonDriver").newInstance();' or Class.forName("com.hxtt.sql.json.JsonDriver");' to load this driver.

Fourth, if you have used other JDBC driver, you only need to know the correct URL format for DriverManager.getConnection(url,"",""); You can find the Cobol URL format below. If you were a Java novice, please read also other Java examples code in,, or
Cobol URL format:

                jdbc:json:[//]/[DatabasePath][?prop1=value1[;prop2=value2]] (You can omit that "//" characters sometimes)
                        For example:
                                "jdbc:json:/c:/data" for Windows driver
                                "jdbc:json:///c:/data" for Windows driver
                                "jdbc:json:////usr/data" for unix or linux
                                "jdbc:json://///" for UNC path
        Remote Access (client/server mode):
                        For example: "jdbc:json://" if one CobolServer is run on the 3099 port of
        Compressed Database:(.ZIP, .JAR, .GZ, .TAR, .BZ2, .TGZ, .TAR.GZ, .TAR.BZ2) 
                jdbc url format is the same as embedded url and remote url.
                        For example:
        Memory-only Database:
        URL Database:(http protocol, https protocol, ftp protocol, sftp protocol)
                        For example:
                                "jdbc:json:" ////Note: FTP site's user/password should be set in ftpURL, and cannot be set in JDBC connection property because user/password JDBC connection property belongs to server/client connection.

        SAMBA Database:(smb protocol)
                        For example:
                                "jdbc:json:smb://test1:123@".zone" ////Note: SAMBA user/password should be set in SMB URL, and cannot be set in JDBC connection property because user/password JDBC connection property belongs to server/client connection.
	Free JDBC url:(Warning: only use it for special project)
                jdbc:json:/" or "jdbc:json:///". Then you can use some full UNC path names in SQL to visit anywhere where your Java VM has right to access.
                        For instance:
                                select * from \\amd2500\e$\jsonfiles\test;
                                elect * from "\\amd2500\d$\jsonfiles".test;
                                select * from ".".test;

         HXTT Json supports seamlessly data mining on memory-only table, physical table, url table, compressed table, SAMBA table in a sql. More details
         is in Advanced Programming chapter.

Last, Cobol driver is a standard JDBC driver so that you will find most of valuable information at file:///yourdrive|/jdk1.8/docs/api/java/sql/package-frame.html .

Cobol supports SQL-92. It supports { UNION | INTERSECT | EXCEPT | MINUS } [ ALL ] query , INNER JOIN, FULL JOIN, LEFT JOIN, RIGHT JOIN, NATURAL JOIN, CROSS JOIN, self join, GROUP_CONCAT, and subquery which includes single-row subquery, multirow subquery, multiple-column subquery, inline views, and correlated subquery. The major syntax is listed at here.

Cobol driver will use index to speed up the query which contains some indexed expressions. Cobol supports utilizing index file for LIKE, BETWEEN, IN, DISTINCT, ORDER, and some OR operations.

Copyright © 2003-2019 Heng Xing Tian Tai Lab | All Rights Reserved. |