equal
deleted
inserted
replaced
55 * |
55 * |
56 * @return the log writer for this data source or null if |
56 * @return the log writer for this data source or null if |
57 * logging is disabled |
57 * logging is disabled |
58 * @exception java.sql.SQLException if a database access error occurs |
58 * @exception java.sql.SQLException if a database access error occurs |
59 * @see #setLogWriter |
59 * @see #setLogWriter |
60 * @since 1.4 |
|
61 */ |
60 */ |
62 java.io.PrintWriter getLogWriter() throws SQLException; |
61 java.io.PrintWriter getLogWriter() throws SQLException; |
63 |
62 |
64 /** |
63 /** |
65 * <p>Sets the log writer for this <code>DataSource</code> |
64 * <p>Sets the log writer for this <code>DataSource</code> |
77 * disabled. |
76 * disabled. |
78 * |
77 * |
79 * @param out the new log writer; to disable logging, set to null |
78 * @param out the new log writer; to disable logging, set to null |
80 * @exception SQLException if a database access error occurs |
79 * @exception SQLException if a database access error occurs |
81 * @see #getLogWriter |
80 * @see #getLogWriter |
82 * @since 1.4 |
|
83 */ |
81 */ |
84 void setLogWriter(java.io.PrintWriter out) throws SQLException; |
82 void setLogWriter(java.io.PrintWriter out) throws SQLException; |
85 |
83 |
86 /** |
84 /** |
87 * <p>Sets the maximum time in seconds that this data source will wait |
85 * <p>Sets the maximum time in seconds that this data source will wait |
92 * initially zero. |
90 * initially zero. |
93 * |
91 * |
94 * @param seconds the data source login time limit |
92 * @param seconds the data source login time limit |
95 * @exception SQLException if a database access error occurs. |
93 * @exception SQLException if a database access error occurs. |
96 * @see #getLoginTimeout |
94 * @see #getLoginTimeout |
97 * @since 1.4 |
|
98 */ |
95 */ |
99 void setLoginTimeout(int seconds) throws SQLException; |
96 void setLoginTimeout(int seconds) throws SQLException; |
100 |
97 |
101 /** |
98 /** |
102 * Gets the maximum time in seconds that this data source can wait |
99 * Gets the maximum time in seconds that this data source can wait |
107 * initially zero. |
104 * initially zero. |
108 * |
105 * |
109 * @return the data source login time limit |
106 * @return the data source login time limit |
110 * @exception SQLException if a database access error occurs. |
107 * @exception SQLException if a database access error occurs. |
111 * @see #setLoginTimeout |
108 * @see #setLoginTimeout |
112 * @since 1.4 |
|
113 */ |
109 */ |
114 int getLoginTimeout() throws SQLException; |
110 int getLoginTimeout() throws SQLException; |
115 |
111 |
116 //------------------------- JDBC 4.1 ----------------------------------- |
112 //------------------------- JDBC 4.1 ----------------------------------- |
117 |
113 |