1 5 package com.teamkonzept.db; 6 7 import java.sql.*; 8 import java.util.Properties ; 9 10 13 public class TKMSSQLConnectData extends TKConnectData { 14 protected static boolean initialized = false; 15 18 protected static String jdbcSubProtocol = "ff-microsoft://"; 19 22 protected static String jdbcDriverClass = "connect.microsoft.MicrosoftDriver"; 23 27 protected static TKSQLTypeConverter typeConverter = null; 28 29 32 public TKMSSQLConnectData( Properties connectProperties ) throws SQLException 33 { 34 super( jdbcSubProtocol, connectProperties ); 35 if( !initialized ) { 36 registerDriver(jdbcDriverClass); 37 initialized = true; 38 } 39 } 40 44 public void initTypeConverter( final Connection conn ) throws SQLException 45 { 46 if ( typeConverter == null ) { 47 typeConverter = new TKSQLTypeConverter( conn ); 48 } 49 } 50 public TKSQLTypeConverter getTypeConverter() 51 { 52 return typeConverter; 53 } 54 } 57 58 | Popular Tags |