📄 monetdatabasemetadata.java
字号:
* JDBC Compliant driver always returns true * * @return true if so * @throws SQLException if a database access error occurs */ public boolean nullPlusNonNullIsNull() { return(true); } public boolean supportsConvert() { return(false); } public boolean supportsConvert(int fromType, int toType) { return(false); } /** * Are table correlation names supported? A JDBC Compliant * driver always returns true. * * @return true if so */ public boolean supportsTableCorrelationNames() { return(true); } /** * If table correlation names are supported, are they restricted to * be different from the names of the tables? * * @return true if so; false otherwise */ public boolean supportsDifferentTableCorrelationNames() { return(false); } /** * Are expressions in "ORDER BY" lists supported? * * <br>e.g. select * from t order by a + b; * * MonetDB does not support this (yet?) * * @return true if so */ public boolean supportsExpressionsInOrderBy() { return(false); } /** * Can an "ORDER BY" clause use columns not in the SELECT? * MonetDB = SQL03 = false * * @return true if so */ public boolean supportsOrderByUnrelated() { return(false); } /** * Is some form of "GROUP BY" clause supported? * * @return true since MonetDB supports it * @exception SQLException if a database access error occurs */ public boolean supportsGroupBy() { return(true); } /** * Can a "GROUP BY" clause use columns not in the SELECT? * * @return true since that also is supported * @exception SQLException if a database access error occurs */ public boolean supportsGroupByUnrelated() { return(true); } /** * Can a "GROUP BY" clause add columns not in the SELECT provided * it specifies all the columns in the SELECT? * * (MonetDB already supports the more difficult supportsGroupByUnrelated(), * so this is a piece of cake) * * @return true if so */ public boolean supportsGroupByBeyondSelect() { return(true); } /** * Is the escape character in "LIKE" clauses supported? A * JDBC compliant driver always returns true. * * @return true if so */ public boolean supportsLikeEscapeClause() { return(true); } /** * Are multiple ResultSets from a single execute supported? * MonetDB probably supports it, but I don't * * @return true if so */ public boolean supportsMultipleResultSets() { return(false); } /** * Can we have multiple transactions open at once (on different * connections?) * This is the main idea behind the Connection, is it? * * @return true if so * @exception SQLException if a database access error occurs */ public boolean supportsMultipleTransactions() { return(true); } /** * Can columns be defined as non-nullable. A JDBC Compliant driver * always returns true. * * @return true if so */ public boolean supportsNonNullableColumns() { return(true); } /** * Does this driver support the minimum ODBC SQL grammar. This * grammar is defined at: * * http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odappcpr.asp * From this description, we seem to support the ODBC minimal (Level 0) grammar. * * @return true if so */ public boolean supportsMinimumSQLGrammar() { return(true); } /** * Does this driver support the Core ODBC SQL grammar. We need * SQL-92 conformance for this. * * @return true if so */ public boolean supportsCoreSQLGrammar() { return(true); } /** * Does this driver support the Extended (Level 2) ODBC SQL * grammar. We don't conform to the Core (Level 1), so we can't * conform to the Extended SQL Grammar. * * @return true if so */ public boolean supportsExtendedSQLGrammar() { return(false); } /** * Does this driver support the ANSI-92 entry level SQL grammar? * All JDBC Compliant drivers must return true. We should be this * compliant, so let's 'act' like we are. * * @return true if so */ public boolean supportsANSI92EntryLevelSQL() { return(true); } /** * Does this driver support the ANSI-92 intermediate level SQL * grammar? * probably not * * @return true if so */ public boolean supportsANSI92IntermediateSQL() { return(false); } /** * Does this driver support the ANSI-92 full SQL grammar? * Would be good if it was like that * * @return true if so * @exception SQLException if a database access error occurs */ public boolean supportsANSI92FullSQL() { return(false); } /** * Is the SQL Integrity Enhancement Facility supported? * Our best guess is that this means support for constraints * * @return true if so */ public boolean supportsIntegrityEnhancementFacility() { return(true); } /** * Is some form of outer join supported? * * @return true if so * @exception SQLException if a database access error occurs */ public boolean supportsOuterJoins(){ return(true); } /** * Are full nexted outer joins supported? * * @return true if so * @exception SQLException if a database access error occurs */ public boolean supportsFullOuterJoins() { return(true); } /** * Is there limited support for outer joins? * * @return true if so * @exception SQLException if a database access error occurs */ public boolean supportsLimitedOuterJoins() { return(false); } /** * What is the database vendor's preferred term for "schema"? * MonetDB uses the term "schema". * * @return the vendor term */ public String getSchemaTerm() { return("schema"); } /** * What is the database vendor's preferred term for "procedure"? * Traditionally, "function" has been used. * * @return the vendor term */ public String getProcedureTerm() { return("function"); } /** * What is the database vendor's preferred term for "catalog"? * MonetDB doesn't really have them (from driver accessible) but * from the monetdb.conf file the term "database" sounds best * * @return the vendor term */ public String getCatalogTerm() { return("database"); } /** * Does a catalog appear at the start of a qualified table name? * (Otherwise it appears at the end). * Currently there is no catalog support at all in MonetDB * * @return true if so */ public boolean isCatalogAtStart() { // return true here; we return false for every other catalog function // so it won't matter what we return here return(true); } /** * What is the Catalog separator. * * @return the catalog separator string */ public String getCatalogSeparator() { // Give them something to work with here // everything else returns false so it won't matter what we return here return("."); } /** * Can a schema name be used in a data manipulation statement? * * @return true if so */ public boolean supportsSchemasInDataManipulation() { return(true); } /** * Can a schema name be used in a procedure call statement? * Ohw probably, but I don't know of procedures in MonetDB * * @return true if so */ public boolean supportsSchemasInProcedureCalls() { return(true); } /** * Can a schema be used in a table definition statement? * * @return true if so */ public boolean supportsSchemasInTableDefinitions() { return(true); } /** * Can a schema name be used in an index definition statement? * * @return true if so */ public boolean supportsSchemasInIndexDefinitions() { return(true); } /** * Can a schema name be used in a privilege definition statement? * * @return true if so */ public boolean supportsSchemasInPrivilegeDefinitions() { return(true); } /** * Can a catalog name be used in a data manipulation statement? * * @return true if so */ public boolean supportsCatalogsInDataManipulation() { return(false); } /** * Can a catalog name be used in a procedure call statement? * * @return true if so */ public boolean supportsCatalogsInProcedureCalls() { return(false); } /** * Can a catalog name be used in a table definition statement? * * @return true if so */ public boolean supportsCatalogsInTableDefinitions() { return(false); } /** * Can a catalog name be used in an index definition? * * @return true if so */ public boolean supportsCatalogsInIndexDefinitions() { return(false); } /** * Can a catalog name be used in a privilege definition statement? * * @return true if so */ public boolean supportsCatalogsInPrivilegeDefinitions() { return(false); } /** * MonetDB doesn't support positioned DELETEs I guess * * @return true if so */ public boolean supportsPositionedDelete() { return(false); } /** * Is positioned UPDATE supported? (same as above) * * @return true if so */ public boolean supportsPositionedUpdate() { return(false); } /** * Is SELECT FOR UPDATE supported? * My test resulted in a negative answer * * @return true if so; false otherwise */ public boolean supportsSelectForUpdate(){ return(false); } /** * Are stored procedure calls using the stored procedure escape * syntax supported? * * @return true if so; false otherwise */ public boolean supportsStoredProcedures() { return(false); } /** * Are subqueries in comparison expressions supported? A JDBC * Compliant driver always returns true. MonetDB also supports this * * @return true if so; false otherwise */ public boolean supportsSubqueriesInComparisons() { return(true); } /** * Are subqueries in 'exists' expressions supported? A JDBC
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -