1 5 package com.teamkonzept.db; 6 7 import java.sql.*; 8 import java.util.Properties ; 9 10 13 public class TKSybaseConnectData extends TKConnectData { 14 protected static boolean initialized = false; 15 18 protected static String jdbcSubProtocol = "sybase:Tds:"; 19 22 protected static String jdbcDriverClass = "com.sybase.jdbc.SybDriver"; 23 27 protected static TKSQLTypeConverter typeConverter = null; 28 29 32 public TKSybaseConnectData( Properties connectProperties ) throws SQLException 33 { 34 super( jdbcSubProtocol, connectProperties ); 35 36 37 if( !initialized ) { 38 registerDriver( jdbcDriverClass ); 39 initialized = true; 40 } 41 } 42 46 public void initTypeConverter( final Connection conn ) throws SQLException 47 { 48 if ( typeConverter == null ) { 49 typeConverter = new TKSybaseSQLTypeConverter(); 50 } 51 } 52 public TKSQLTypeConverter getTypeConverter() 53 { 54 return typeConverter; 55 } 56 } 59 60 | Popular Tags |