1 21 22 package org.apache.derby.jdbc; 23 24 25 import org.apache.derby.iapi.sql.ResultSet; 26 27 import org.apache.derby.impl.jdbc.*; 28 29 import java.sql.Connection ; 30 import java.sql.SQLException ; 31 32 import java.util.Properties ; 33 34 35 44 45 public class Driver169 extends InternalDriver { 46 47 public Driver169() { 48 } 49 50 54 protected EmbedConnection getNewEmbedConnection(String url, Properties info) 55 throws SQLException 56 { 57 return new EmbedConnection30(this, url, info); 59 } 60 61 62 70 public Connection getNewNestedConnection(EmbedConnection conn) 71 { 72 return new EmbedConnection30(conn); 73 } 74 75 79 80 public java.sql.Statement newEmbedStatement( 81 EmbedConnection conn, 82 boolean forMetaData, 83 int resultSetType, 84 int resultSetConcurrency, 85 int resultSetHoldability) 86 { 87 return new EmbedStatement(conn, forMetaData, resultSetType, resultSetConcurrency, 88 resultSetHoldability); 89 } 90 93 public java.sql.PreparedStatement newEmbedPreparedStatement( 94 EmbedConnection conn, 95 String stmt, 96 boolean forMetaData, 97 int resultSetType, 98 int resultSetConcurrency, 99 int resultSetHoldability, 100 int autoGeneratedKeys, 101 int[] columnIndexes, 102 String [] columnNames) 103 throws SQLException 104 105 { 106 return new EmbedPreparedStatement169(conn, stmt, forMetaData, 107 resultSetType, resultSetConcurrency, resultSetHoldability, 108 autoGeneratedKeys, columnIndexes, columnNames); 109 } 110 113 public java.sql.CallableStatement newEmbedCallableStatement( 114 EmbedConnection conn, 115 String stmt, 116 int resultSetType, 117 int resultSetConcurrency, 118 int resultSetHoldability) 119 throws SQLException 120 { 121 return new EmbedCallableStatement169(conn,stmt, resultSetType, 122 resultSetConcurrency, resultSetHoldability); 123 } 124 125 126 public EmbedResultSet 127 newEmbedResultSet(EmbedConnection conn, ResultSet results, boolean forMetaData, EmbedStatement statement, boolean isAtomic) 128 throws SQLException 129 { 130 return new EmbedResultSet169(conn, results, forMetaData, statement, isAtomic); 131 } 132 133 134 135 } 136 137 138 139 | Popular Tags |