001 /* 002 @license.text@ 003 */ 004 package biz.hammurapi.sql.cloudscape; 005 006 import biz.hammurapi.sql.Transaction; 007 008 009 /** 010 * Hypersonic server data source. 011 * @author Pavel Vlasov 012 * @version $Revision: 1.2 $ 013 */ 014 public class CloudscapeServerDataSource extends CloudscapeDataSource { 015 016 /** 017 * Connects to remote host specified by host parameter. 018 * @param host Host string. E.g. 3.111.12.14:3000 019 * @param user User name 020 * @param password Password 021 * @param initConnectionTransaction 022 * @throws ClassNotFoundException 023 */ 024 public CloudscapeServerDataSource( 025 String host, 026 String database, 027 String user, 028 String password, 029 Transaction initConnectionTransaction) throws ClassNotFoundException { 030 super("com.ibm.db2.jcc.DB2Driver", "jdbc:derby:net://"+host+"/"+database, user, password, initConnectionTransaction); 031 } 032 033 }