1 5 package com.teamkonzept.db; 6 7 import java.sql.*; 8 import java.util.Properties ; 9 10 13 public class TKOracleConnectData extends TKConnectData { 14 public static boolean initialized = false; 15 18 protected static String jdbcSubProtocol = "oracle:thin:@"; 19 22 protected static String jdbcDriverClass = "oracle.jdbc.driver.OracleDriver"; 23 27 protected static TKSQLTypeConverter typeConverter = null; 28 29 32 public TKOracleConnectData( 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 51 } 52 } 53 public TKSQLTypeConverter getTypeConverter() 54 { 55 return typeConverter; 56 } 57 } 60 61 | Popular Tags |