1 22 package org.enhydra.jdbc.instantdb; 23 24 import java.sql.SQLException ; 25 import java.sql.Driver ; 26 27 import org.enhydra.instantdb.jdbc.idbDriver; 28 import org.enhydra.jdbc.standard.StandardDataSource; 29 30 import javax.sql.DataSource ; 31 32 35 public class IdbDataSource extends StandardDataSource implements DataSource { 36 37 40 public IdbDataSource() throws SQLException { 41 super(); 42 super.setDriverName(idbDriver.class.getName()); 43 } 44 45 48 public IdbDataSource(Driver driver) throws SQLException { 49 super(driver); 50 } 51 52 public void setDriverName (String driverName) throws SQLException { 53 throw new SQLException ("Cannot change driver name for IdbDataSource"); 54 } 55 56 } 57 | Popular Tags |