Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JDBC-185: Add base implementations for JDBC 4.1 methods
- Loading branch information
1 parent
ce41b62
commit 154f41b
Showing
35 changed files
with
621 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* $Id$ | ||
* | ||
* Firebird Open Source J2EE Connector - JDBC Driver | ||
* | ||
* Distributable under LGPL license. | ||
* You may obtain a copy of the License at http://www.gnu.org/copyleft/lgpl.html | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* LGPL License for more details. | ||
* | ||
* This file was created by members of the firebird development team. | ||
* All individual contributions remain the Copyright (C) of those | ||
* individuals. Contributors to this file are either listed here or | ||
* can be obtained from a CVS history command. | ||
* | ||
* All rights reserved. | ||
*/ | ||
package org.firebirdsql.ds; | ||
|
||
import java.io.PrintWriter; | ||
import java.sql.SQLException; | ||
|
||
/** | ||
* Root superclass for the datasources in Firebird. | ||
* <p> | ||
* Used to workaround incompatibilities introduced for JDBC 3.0 and earlier by JDBC 4.1 (getParentLogger). | ||
* </p> | ||
* | ||
* @author <a href="mailto:mrotteveel@users.sourceforge.net">Mark Rotteveel</a> | ||
* @since 2.2 | ||
*/ | ||
public abstract class RootCommonDataSource { | ||
|
||
public PrintWriter getLogWriter() throws SQLException { | ||
// Unused by Jaybird | ||
return null; | ||
} | ||
|
||
public void setLogWriter(PrintWriter out) throws SQLException { | ||
// Unused by Jaybird | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* $Id$ | ||
* | ||
* Firebird Open Source J2ee connector - jdbc driver | ||
* | ||
* Distributable under LGPL license. | ||
* You may obtain a copy of the License at http://www.gnu.org/copyleft/lgpl.html | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* LGPL License for more details. | ||
* | ||
* This file was created by members of the firebird development team. | ||
* All individual contributions remain the Copyright (C) of those | ||
* individuals. Contributors to this file are either listed here or | ||
* can be obtained from a CVS history command. | ||
* | ||
* All rights reserved. | ||
*/ | ||
package org.firebirdsql.jdbc; | ||
|
||
import java.sql.*; | ||
|
||
/** | ||
* The Jaybird JDBC Driver implementation for the Firebird database. | ||
* | ||
* @author <a href="mailto:d_jencks@users.sourceforge.net">David Jencks</a> | ||
* @version 1.0 | ||
*/ | ||
public class FBDriver extends AbstractDriver implements FirebirdDriver { | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* $Id$ | ||
* | ||
* Firebird Open Source J2EE Connector - JDBC Driver | ||
* | ||
* Distributable under LGPL license. | ||
* You may obtain a copy of the License at http://www.gnu.org/copyleft/lgpl.html | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* LGPL License for more details. | ||
* | ||
* This file was created by members of the firebird development team. | ||
* All individual contributions remain the Copyright (C) of those | ||
* individuals. Contributors to this file are either listed here or | ||
* can be obtained from a CVS history command. | ||
* | ||
* All rights reserved. | ||
*/ | ||
package org.firebirdsql.ds; | ||
|
||
import java.io.PrintWriter; | ||
import java.sql.SQLException; | ||
import java.sql.SQLFeatureNotSupportedException; | ||
import java.util.logging.Logger; | ||
|
||
import javax.sql.CommonDataSource; | ||
|
||
import org.firebirdsql.jdbc.FBDriverNotCapableException; | ||
|
||
/** | ||
* Root superclass for the datasources in Firebird. | ||
* <p> | ||
* Used to workaround incompatibilities introduced for JDBC 3.0 and earlier by JDBC 4.1 (getParentLogger). | ||
* </p> | ||
* | ||
* @author <a href="mailto:mrotteveel@users.sourceforge.net">Mark Rotteveel</a> | ||
* @since 2.2 | ||
*/ | ||
public abstract class RootCommonDataSource implements CommonDataSource { | ||
|
||
public PrintWriter getLogWriter() throws SQLException { | ||
// Unused by Jaybird | ||
return null; | ||
} | ||
|
||
public void setLogWriter(PrintWriter out) throws SQLException { | ||
// Unused by Jaybird | ||
} | ||
|
||
public Logger getParentLogger() throws SQLFeatureNotSupportedException { | ||
throw new FBDriverNotCapableException(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.