📄 p6databasemetadata.java
字号:
/*
*
* ====================================================================
*
* The P6Spy Software License, Version 1.1
*
* This license is derived and fully compatible with the Apache Software
* license, see http://www.apache.org/LICENSE.txt
*
* Copyright (c) 2001-2002 Andy Martin, Ph.D. and Jeff Goke
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* "The original concept and code base for P6Spy was conceived
* and developed by Andy Martin, Ph.D. who generously contribued
* the first complete release to the public under this license.
* This product was due to the pioneering work of Andy
* that began in December of 1995 developing applications that could
* seamlessly be deployed with minimal effort but with dramatic results.
* This code is maintained and extended by Jeff Goke and with the ideas
* and contributions of other P6Spy contributors.
* (http://www.p6spy.com)"
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "P6Spy", "Jeff Goke", and "Andy Martin" must not be used
* to endorse or promote products derived from this software without
* prior written permission. For written permission, please contact
* license@p6spy.com.
*
* 5. Products derived from this software may not be called "P6Spy"
* nor may "P6Spy" appear in their names without prior written
* permission of Jeff Goke and Andy Martin.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
/**
* Description: JDBC Driver Extension implementing PreparedStatement.
*
* $Author: cheechq $
* $Revision: 1.4 $
* $Date: 2003/06/03 19:20:25 $
*
* $Id: P6DatabaseMetaData.java,v 1.4 2003/06/03 19:20:25 cheechq Exp $
* $Source: /cvsroot/p6spy/p6spy/com/p6spy/engine/spy/P6DatabaseMetaData.java,v $
* $Log: P6DatabaseMetaData.java,v $
* Revision 1.4 2003/06/03 19:20:25 cheechq
* removed unused imports
*
* Revision 1.3 2003/01/03 20:33:42 aarvesen
* Added getJDBC() method to return the underlying jdbc object.
*
* Revision 1.2 2002/12/06 22:42:11 aarvesen
* Extend P6Base.
* New factory registration in the constructor.
* jdk 1.4 additions
*
* Revision 1.1 2002/05/24 07:31:13 jeffgoke
* version 1 rewrite
*
* Revision 1.1 2002/04/10 04:24:26 jeffgoke
* added support for callable statements and fixed numerous bugs that allowed the real class to be returned
*
*
*/
package com.p6spy.engine.spy;
import java.sql.*;
public class P6DatabaseMetaData extends P6Base implements java.sql.DatabaseMetaData {
protected DatabaseMetaData passthru;
protected P6Connection connection;
public P6DatabaseMetaData(P6Factory factory, DatabaseMetaData metadata, P6Connection connection) {
setP6Factory(factory);
this.passthru = metadata;
this.connection = connection;
}
public boolean allProceduresAreCallable() throws java.sql.SQLException {
return passthru.allProceduresAreCallable();
}
public boolean allTablesAreSelectable() throws java.sql.SQLException {
return passthru.allTablesAreSelectable();
}
public boolean dataDefinitionCausesTransactionCommit() throws java.sql.SQLException {
return passthru.dataDefinitionCausesTransactionCommit();
}
public boolean dataDefinitionIgnoredInTransactions() throws java.sql.SQLException {
return passthru.dataDefinitionIgnoredInTransactions();
}
public boolean deletesAreDetected(int p0) throws java.sql.SQLException {
return passthru.deletesAreDetected(p0);
}
public boolean doesMaxRowSizeIncludeBlobs() throws java.sql.SQLException {
return passthru.doesMaxRowSizeIncludeBlobs();
}
public java.sql.ResultSet getBestRowIdentifier(String p0, String p1, String p2, int p3, boolean p4) throws java.sql.SQLException {
return passthru.getBestRowIdentifier(p0,p1,p2,p3,p4);
}
public String getCatalogSeparator() throws java.sql.SQLException {
return passthru.getCatalogSeparator();
}
public String getCatalogTerm() throws java.sql.SQLException {
return passthru.getCatalogTerm();
}
public java.sql.ResultSet getCatalogs() throws java.sql.SQLException {
return passthru.getCatalogs();
}
public java.sql.ResultSet getColumnPrivileges(String p0, String p1, String p2, String p3) throws java.sql.SQLException {
return passthru.getColumnPrivileges(p0,p1,p2,p3);
}
public java.sql.ResultSet getColumns(String p0, String p1, String p2, String p3) throws java.sql.SQLException {
return passthru.getColumns(p0,p1,p2,p3);
}
public java.sql.Connection getConnection() throws java.sql.SQLException {
// return our p6connection
return connection;
}
public java.sql.ResultSet getCrossReference(String p0, String p1, String p2, String p3, String p4, String p5) throws java.sql.SQLException {
return passthru.getCrossReference(p0,p1,p2,p3,p4,p5);
}
public String getDatabaseProductName() throws java.sql.SQLException {
return passthru.getDatabaseProductName();
}
public String getDatabaseProductVersion() throws java.sql.SQLException {
return passthru.getDatabaseProductVersion();
}
public int getDefaultTransactionIsolation() throws java.sql.SQLException {
return passthru.getDefaultTransactionIsolation();
}
public int getDriverMajorVersion() {
return passthru.getDriverMajorVersion();
}
public int getDriverMinorVersion() {
return passthru.getDriverMinorVersion();
}
public String getDriverName() throws java.sql.SQLException {
return passthru.getDriverName();
}
public String getDriverVersion() throws java.sql.SQLException {
return passthru.getDriverVersion();
}
public java.sql.ResultSet getExportedKeys(String p0, String p1, String p2) throws java.sql.SQLException {
return passthru.getExportedKeys(p0,p1,p2);
}
public String getExtraNameCharacters() throws java.sql.SQLException {
return passthru.getExtraNameCharacters();
}
public String getIdentifierQuoteString() throws java.sql.SQLException {
return passthru.getIdentifierQuoteString();
}
public java.sql.ResultSet getImportedKeys(String p0, String p1, String p2) throws java.sql.SQLException {
return passthru.getImportedKeys(p0,p1,p2);
}
public java.sql.ResultSet getIndexInfo(String p0, String p1, String p2, boolean p3, boolean p4) throws java.sql.SQLException {
return passthru.getIndexInfo(p0,p1,p2,p3,p4);
}
public int getMaxBinaryLiteralLength() throws java.sql.SQLException {
return passthru.getMaxBinaryLiteralLength();
}
public int getMaxCatalogNameLength() throws java.sql.SQLException {
return passthru.getMaxCatalogNameLength();
}
public int getMaxCharLiteralLength() throws java.sql.SQLException {
return passthru.getMaxCharLiteralLength();
}
public int getMaxColumnNameLength() throws java.sql.SQLException {
return passthru.getMaxColumnNameLength();
}
public int getMaxColumnsInGroupBy() throws java.sql.SQLException {
return passthru.getMaxColumnsInGroupBy();
}
public int getMaxColumnsInIndex() throws java.sql.SQLException {
return passthru.getMaxColumnsInIndex();
}
public int getMaxColumnsInOrderBy() throws java.sql.SQLException {
return passthru.getMaxColumnsInOrderBy();
}
public int getMaxColumnsInSelect() throws java.sql.SQLException {
return passthru.getMaxColumnsInSelect();
}
public int getMaxColumnsInTable() throws java.sql.SQLException {
return passthru.getMaxColumnsInTable();
}
public int getMaxConnections() throws java.sql.SQLException {
return passthru.getMaxConnections();
}
public int getMaxCursorNameLength() throws java.sql.SQLException {
return passthru.getMaxCursorNameLength();
}
public int getMaxIndexLength() throws java.sql.SQLException {
return passthru.getMaxIndexLength();
}
public int getMaxProcedureNameLength() throws java.sql.SQLException {
return passthru.getMaxProcedureNameLength();
}
public int getMaxRowSize() throws java.sql.SQLException {
return passthru.getMaxRowSize();
}
public int getMaxSchemaNameLength() throws java.sql.SQLException {
return passthru.getMaxSchemaNameLength();
}
public int getMaxStatementLength() throws java.sql.SQLException {
return passthru.getMaxStatementLength();
}
public int getMaxStatements() throws java.sql.SQLException {
return passthru.getMaxStatements();
}
public int getMaxTableNameLength() throws java.sql.SQLException {
return passthru.getMaxTableNameLength();
}
public int getMaxTablesInSelect() throws java.sql.SQLException {
return passthru.getMaxTablesInSelect();
}
public int getMaxUserNameLength() throws java.sql.SQLException {
return passthru.getMaxUserNameLength();
}
public String getNumericFunctions() throws java.sql.SQLException {
return passthru.getNumericFunctions();
}
public java.sql.ResultSet getPrimaryKeys(String p0, String p1, String p2) throws java.sql.SQLException {
return passthru.getPrimaryKeys(p0,p1,p2);
}
public java.sql.ResultSet getProcedureColumns(String p0, String p1, String p2, String p3) throws java.sql.SQLException {
return passthru.getProcedureColumns(p0,p1,p2,p3);
}
public String getProcedureTerm() throws java.sql.SQLException {
return passthru.getProcedureTerm();
}
public java.sql.ResultSet getProcedures(String p0, String p1, String p2) throws java.sql.SQLException {
return passthru.getProcedures(p0,p1,p2);
}
public String getSQLKeywords() throws java.sql.SQLException {
return passthru.getSQLKeywords();
}
public String getSchemaTerm() throws java.sql.SQLException {
return passthru.getSchemaTerm();
}
public java.sql.ResultSet getSchemas() throws java.sql.SQLException {
return passthru.getSchemas();
}
public String getSearchStringEscape() throws java.sql.SQLException {
return passthru.getSearchStringEscape();
}
public String getStringFunctions() throws java.sql.SQLException {
return passthru.getStringFunctions();
}
public String getSystemFunctions() throws java.sql.SQLException {
return passthru.getSystemFunctions();
}
public java.sql.ResultSet getTablePrivileges(String p0, String p1, String p2) throws java.sql.SQLException {
return passthru.getTablePrivileges(p0,p1,p2);
}
public java.sql.ResultSet getTableTypes() throws java.sql.SQLException {
return passthru.getTableTypes();
}
public java.sql.ResultSet getTables(String p0, String p1, String p2, String[] p3) throws java.sql.SQLException {
return passthru.getTables(p0,p1,p2,p3);
}
public String getTimeDateFunctions() throws java.sql.SQLException {
return passthru.getTimeDateFunctions();
}
public java.sql.ResultSet getTypeInfo() throws java.sql.SQLException {
return passthru.getTypeInfo();
}
public java.sql.ResultSet getUDTs(String p0, String p1, String p2, int[] p3) throws java.sql.SQLException {
return passthru.getUDTs(p0,p1,p2,p3);
}
public String getURL() throws java.sql.SQLException {
return passthru.getURL();
}
public String getUserName() throws java.sql.SQLException {
return passthru.getUserName();
}
public java.sql.ResultSet getVersionColumns(String p0, String p1, String p2) throws java.sql.SQLException {
return passthru.getVersionColumns(p0,p1,p2);
}
public boolean insertsAreDetected(int p0) throws java.sql.SQLException {
return passthru.insertsAreDetected(p0);
}
public boolean isCatalogAtStart() throws java.sql.SQLException {
return passthru.isCatalogAtStart();
}
public boolean isReadOnly() throws java.sql.SQLException {
return passthru.isReadOnly();
}
public boolean nullPlusNonNullIsNull() throws java.sql.SQLException {
return passthru.nullPlusNonNullIsNull();
}
public boolean nullsAreSortedAtEnd() throws java.sql.SQLException {
return passthru.nullsAreSortedAtEnd();
}
public boolean nullsAreSortedAtStart() throws java.sql.SQLException {
return passthru.nullsAreSortedAtStart();
}
public boolean nullsAreSortedHigh() throws java.sql.SQLException {
return passthru.nullsAreSortedHigh();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -