Examples of supportsGetGeneratedKeys()


Examples of ch.qos.logback.core.db.dialect.DBUtil.supportsGetGeneratedKeys()

        return;
      }
      DatabaseMetaData meta = connection.getMetaData();
      DBUtil util = new DBUtil();
      util.setContext(getContext());
      supportsGetGeneratedKeys = util.supportsGetGeneratedKeys(meta);
      supportsBatchUpdates = util.supportsBatchUpdates(meta);
      dialectCode = DBUtil.discoverSQLDialect(meta);
      addInfo("Driver name="+meta.getDriverName());
      addInfo("Driver version="+meta.getDriverVersion());
      addInfo("supportsGetGeneratedKeys="+supportsGetGeneratedKeys);
View Full Code Here

Examples of java.sql.DatabaseMetaData.supportsGetGeneratedKeys()

        dbMeta0.getDriverVersion();
        dbMeta0.supportsResultSetType(1004);
        dbMeta0.supportsBatchUpdates();
        dbMeta0.dataDefinitionCausesTransactionCommit();
        dbMeta0.dataDefinitionIgnoredInTransactions();
        dbMeta0.supportsGetGeneratedKeys();
        conn0.getAutoCommit();
        conn0.getAutoCommit();
        conn0.commit();
        conn0.setAutoCommit(true);
        Statement stat0 = conn0.createStatement();
View Full Code Here

Examples of java.sql.DatabaseMetaData.supportsGetGeneratedKeys()

      Connection conn = getConnection();

      try {
        DatabaseMetaData metaData = conn.getMetaData();

        _supportsGetGeneratedKeys = metaData.supportsGetGeneratedKeys();

        return _supportsGetGeneratedKeys;
      } finally {
        conn.close();
      }
View Full Code Here

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

Examples of java.sql.DatabaseMetaData.supportsGetGeneratedKeys()

            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

Examples of java.sql.DatabaseMetaData.supportsGetGeneratedKeys()

            // 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

Examples of java.sql.DatabaseMetaData.supportsGetGeneratedKeys()

      System.out.println();
      System.out.println("supportsMultipleOpenResults() : " + met.supportsMultipleOpenResults());

      System.out.println();
      System.out.println("supportsGetGeneratedKeys() : " + met.supportsGetGeneratedKeys());

      System.out.println();
      System.out.println("supportsResultSetHoldability(HOLD_CURSORS_OVER_COMMIT) : " +
      met.supportsResultSetHoldability(JDBC30Translation.HOLD_CURSORS_OVER_COMMIT));
View Full Code Here

Examples of java.sql.DatabaseMetaData.supportsGetGeneratedKeys()

          jdbcSupport = JdbcSupportLoader.loadJdbcSupport( conn );
          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

Examples of java.sql.DatabaseMetaData.supportsGetGeneratedKeys()

          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

Examples of java.sql.DatabaseMetaData.supportsGetGeneratedKeys()

          metaSupportsScrollable = meta.supportsResultSetType( ResultSet.TYPE_SCROLL_INSENSITIVE );
          metaSupportsBatchUpdates = meta.supportsBatchUpdates();
          metaReportsDDLCausesTxnCommit = meta.dataDefinitionCausesTransactionCommit();
          metaReportsDDLInTxnSupported = !meta.dataDefinitionIgnoredInTransactions();
          metaSupportsGetGeneratedKeys = meta.supportsGetGeneratedKeys();
         
          log.info( "Database ->\n" +
              "       name : " + meta.getDatabaseProductName() + '\n' +
              "    version : " +  meta.getDatabaseProductVersion() + '\n' +
              "      major : " + meta.getDatabaseMajorVersion() + '\n' +
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.