HYSQL  

¡¡

Chapter 8  Programming interface

HYSQL provides a very simple programming interface:

HYAdapter adapter=new HYAdapter(url,unitID,user,pass)

The url syntax is hysql:hostname:port  example: hysql:www.huayisoft.com:2000.
The HYSQL programming interface is got at once. Holding the adapter programming interface, you can execute the  HYSQL statements and Java class objects(applications) on the server-side, then get the needed data type or the needed Java class objects. All these is executed in the browser, so that the application code on the server-side is greatly lowered in the application where a database is central.

The interface method provided by the HYAdapte class:

 public HYAdapter (String url,String unitID,String username,String password) throws Exception 
 public TableIO executeQuery (String query) throws Exception 
 public int executeUpdate (String sql) throws Exception 
 public Object execute (String cmd) throws Exception 
 public Object execute (String cmd,Object args) throws Exception 
 public void close () throws Exception 

¡¡

  Return


¡¡