2751N/A * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * Interface that defines the methods which are common between <code>DataSource</code>, 0N/A * <code>XADataSource</code> and <code>ConnectionPoolDataSource</code>. 2751N/A * <p>Retrieves the log writer for this <code>DataSource</code> 2751N/A * <p>The log writer is a character output stream to which all logging 2751N/A * and tracing messages for this data source will be 2751N/A * printed. This includes messages printed by the methods of this 2751N/A * object, messages printed by methods of other objects manufactured 2751N/A * by this object, and so on. Messages printed to a data source 2751N/A * specific log writer are not printed to the log writer associated 2751N/A * with the <code>java.sql.DriverManager</code> class. When a 2751N/A * <code>DataSource</code> object is 2751N/A * created, the log writer is initially null; in other words, the 2751N/A * default is for logging to be disabled. 2751N/A * @return the log writer for this data source or null if 2751N/A * @exception java.sql.SQLException if a database access error occurs 2751N/A * <p>Sets the log writer for this <code>DataSource</code> 2751N/A * object to the given <code>java.io.PrintWriter</code> object. 2751N/A * <p>The log writer is a character output stream to which all logging 2751N/A * and tracing messages for this data source will be 2751N/A * printed. This includes messages printed by the methods of this 2751N/A * object, messages printed by methods of other objects manufactured 2751N/A * by this object, and so on. Messages printed to a data source- 2751N/A * specific log writer are not printed to the log writer associated 2751N/A * with the <code>java.sql.DriverManager</code> class. When a 2751N/A * <code>DataSource</code> object is created the log writer is 2751N/A * initially null; in other words, the default is for logging to be 2751N/A * @param out the new log writer; to disable logging, set to null 2751N/A * @exception SQLException if a database access error occurs 2751N/A * <p>Sets the maximum time in seconds that this data source will wait 2751N/A * while attempting to connect to a database. A value of zero 2751N/A * specifies that the timeout is the default system timeout 2751N/A * if there is one; otherwise, it specifies that there is no timeout. 2751N/A * When a <code>DataSource</code> object is created, the login timeout is 2751N/A * @param seconds the data source login time limit 2751N/A * @exception SQLException if a database access error occurs. 2751N/A * Gets the maximum time in seconds that this data source can wait 2751N/A * while attempting to connect to a database. A value of zero 2751N/A * means that the timeout is the default system timeout 2751N/A * if there is one; otherwise, it means that there is no timeout. 2751N/A * When a <code>DataSource</code> object is created, the login timeout is 2751N/A * @return the data source login time limit 2751N/A * @exception SQLException if a database access error occurs. 2751N/A //------------------------- JDBC 4.1 ----------------------------------- 2751N/A * Return the parent Logger of all the Loggers used by this data source. This 2751N/A * should be the Logger farthest from the root Logger that is 2751N/A * still an ancestor of all of the Loggers used by this data source. Configuring 2751N/A * this Logger will affect all of the log messages generated by the data source. 2751N/A * In the worst case, this may be the root Logger. 2751N/A * @return the parent Logger for this data source 2751N/A * @throws SQLFeatureNotSupportedException if the data source does not use <code>java.util.logging<code>.