Package java.sql

Examples of java.sql.DatabaseMetaData.supportsGetGeneratedKeys()


  */
  assertTrue(dmd.supportsExpressionsInOrderBy());
       
        assertFalse(dmd.supportsExtendedSQLGrammar());
        assertFalse(dmd.supportsFullOuterJoins());
        assertFalse(dmd.supportsGetGeneratedKeys());
       
        assertTrue(dmd.supportsGroupBy());
        assertTrue(dmd.supportsGroupByBeyondSelect());
        assertTrue(dmd.supportsGroupByUnrelated());
       
View Full Code Here


            // Auto-detect generated keys retrieval support
            // unless user specified it.
            if (supportsGetGeneratedKeys == null) {
                if (isJDBC3) {
                    supportsGetGeneratedKeys =
                        metaData.supportsGetGeneratedKeys();
                } else {
                    supportsGetGeneratedKeys = false;
                }
            }
        }
View Full Code Here

          metaSupportsScrollable = meta.supportsResultSetType( ResultSet.TYPE_SCROLL_INSENSITIVE );
          metaSupportsBatchUpdates = meta.supportsBatchUpdates();
          metaReportsDDLCausesTxnCommit = meta.dataDefinitionCausesTransactionCommit();
          metaReportsDDLInTxnSupported = !meta.dataDefinitionIgnoredInTransactions();
          metaSupportsGetGeneratedKeys = meta.supportsGetGeneratedKeys();
        }
        catch ( SQLException sqle ) {
          log.warn( "Could not obtain connection metadata", sqle );
        }
        finally {
View Full Code Here

  */
  assertTrue(dmd.supportsExpressionsInOrderBy());
       
        assertFalse(dmd.supportsExtendedSQLGrammar());
        assertFalse(dmd.supportsFullOuterJoins());
        assertFalse(dmd.supportsGetGeneratedKeys());
       
        assertTrue(dmd.supportsGroupBy());
        assertTrue(dmd.supportsGroupByBeyondSelect());
        assertTrue(dmd.supportsGroupByUnrelated());
       
View Full Code Here

            if (supportsDelimitedIdentifiers == null) // not explicitly set
                configureNamingUtil(metaData);

            // Auto-detect generated keys retrieval support unless user specified it.
            if (supportsGetGeneratedKeys == null) {
                supportsGetGeneratedKeys =  (isJDBC3) ? metaData.supportsGetGeneratedKeys() : false;
            }
            if (log.isInfoEnabled()) {
              log.info(_loc.get("dict-info", new Object[] {
                metaData.getDatabaseProductName(), getMajorVersion(), getMinorVersion(),
                metaData.getDriverName(), metaData.getDriverVersion()}));
View Full Code Here

  */
  assertTrue(dmd.supportsExpressionsInOrderBy());
       
        assertFalse(dmd.supportsExtendedSQLGrammar());
        assertFalse(dmd.supportsFullOuterJoins());
        assertFalse(dmd.supportsGetGeneratedKeys());
       
        assertTrue(dmd.supportsGroupBy());
        assertTrue(dmd.supportsGroupByBeyondSelect());
        assertTrue(dmd.supportsGroupByUnrelated());
       
View Full Code Here

            // Auto-detect generated keys retrieval support
            // unless user specified it.
            if (supportsGetGeneratedKeys == null) {
                if (isJDBC3) {
                    supportsGetGeneratedKeys =
                        metaData.supportsGetGeneratedKeys();
                } else {
                    supportsGetGeneratedKeys = false;
                }
            }
        }
View Full Code Here

                table = table.toUpperCase();
                if (schema != null)
                    schema = schema.toUpperCase();
            }

            dbev.generatedKeys = metaData.supportsGetGeneratedKeys();
            ResultSet tables = metaData.getTables(null, schema, table, null);
            if (tables.next()) {
                dbev.table = tables.getString("TABLE_NAME");
                dbev.schema = tables.getString("TABLE_SCHEM");
            } else
View Full Code Here

            // Auto-detect generated keys retrieval support
            // unless user specified it.
            if (supportsGetGeneratedKeys == null) {
                if (isJDBC3) {
                    supportsGetGeneratedKeys =
                        metaData.supportsGetGeneratedKeys();
                } else {
                    supportsGetGeneratedKeys = false;
                }
            }
        }
View Full Code Here

  */
  assertTrue(dmd.supportsExpressionsInOrderBy());
       
        assertFalse(dmd.supportsExtendedSQLGrammar());
        assertFalse(dmd.supportsFullOuterJoins());
        assertFalse(dmd.supportsGetGeneratedKeys());
       
        assertTrue(dmd.supportsGroupBy());
        assertTrue(dmd.supportsGroupByBeyondSelect());
        assertTrue(dmd.supportsGroupByUnrelated());
       
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.