You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by mt...@apache.org on 2009/05/31 11:45:34 UTC
svn commit: r780396 -
/openjpa/branches/1.3.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingDatabaseMetaData.java
Author: mtylenda
Date: Sun May 31 09:45:34 2009
New Revision: 780396
URL: http://svn.apache.org/viewvc?rev=780396&view=rev
Log:
OPENJPA-847: Enable JDBC 3 way of retrieving generated keys
Modified:
openjpa/branches/1.3.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingDatabaseMetaData.java
Modified: openjpa/branches/1.3.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingDatabaseMetaData.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.3.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingDatabaseMetaData.java?rev=780396&r1=780395&r2=780396&view=diff
==============================================================================
--- openjpa/branches/1.3.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingDatabaseMetaData.java (original)
+++ openjpa/branches/1.3.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingDatabaseMetaData.java Sun May 31 09:45:34 2009
@@ -24,7 +24,7 @@
import java.sql.SQLException;
/**
- * Wrapper around a DatabaseMetadata instance.
+ * Wrapper around a DatabaseMetaData instance.
*
* @author Marc Prud'hommeaux
*/
@@ -698,48 +698,49 @@
return _metaData.usesLocalFiles();
}
- // JDBC 3.0 methods(unsupported) follow; these are required to be able to
- // compile against JDK 1.4
+ // JDBC 3.0 methods follow.
public boolean supportsSavepoints() throws SQLException {
- throw new UnsupportedOperationException();
+ return _metaData.supportsSavepoints();
}
public boolean supportsNamedParameters() throws SQLException {
- throw new UnsupportedOperationException();
+ return _metaData.supportsNamedParameters();
}
public boolean supportsMultipleOpenResults() throws SQLException {
- throw new UnsupportedOperationException();
+ return _metaData.supportsMultipleOpenResults();
}
public boolean supportsGetGeneratedKeys() throws SQLException {
- throw new UnsupportedOperationException();
+ return _metaData.supportsGetGeneratedKeys();
}
- public ResultSet getSuperTypes(String catalog, String schemaPatter,
+ public ResultSet getSuperTypes(String catalog, String schemaPattern,
String typeNamePattern) throws SQLException {
- throw new UnsupportedOperationException();
+ return _metaData.getSuperTypes(catalog, schemaPattern, typeNamePattern);
}
- public ResultSet getSuperTables(String catalog, String schemaPatter,
+ public ResultSet getSuperTables(String catalog, String schemaPattern,
String tableNamePattern) throws SQLException {
- throw new UnsupportedOperationException();
+ return _metaData.getSuperTables(catalog, schemaPattern,
+ tableNamePattern);
}
- public ResultSet getAttributes(String catalog, String schemaPatter,
+ public ResultSet getAttributes(String catalog, String schemaPattern,
String typeNamePattern, String attributeNamePattern)
throws SQLException {
- throw new UnsupportedOperationException();
+ return _metaData.getAttributes(catalog, schemaPattern, typeNamePattern,
+ attributeNamePattern);
}
public boolean supportsResultSetHoldability(int holdability)
throws SQLException {
- throw new UnsupportedOperationException();
+ return _metaData.supportsResultSetHoldability(holdability);
}
public int getResultSetHoldability() throws SQLException {
- throw new UnsupportedOperationException();
+ return _metaData.getResultSetHoldability();
}
public int getDatabaseMajorVersion() throws SQLException {
@@ -755,19 +756,19 @@
}
public int getJDBCMinorVersion() throws SQLException {
- throw new UnsupportedOperationException();
+ return _metaData.getJDBCMinorVersion();
}
public int getSQLStateType() throws SQLException {
- throw new UnsupportedOperationException();
+ return _metaData.getSQLStateType();
}
public boolean locatorsUpdateCopy() throws SQLException {
- throw new UnsupportedOperationException();
+ return _metaData.locatorsUpdateCopy();
}
public boolean supportsStatementPooling() throws SQLException {
- throw new UnsupportedOperationException();
+ return _metaData.supportsStatementPooling();
}
}