Examples of supportsTransactions()


Examples of java.sql.DatabaseMetaData.supportsTransactions()

        assertTrue(dmd.supportsTransactionIsolationLevel(
                Connection.TRANSACTION_REPEATABLE_READ));
        assertTrue(dmd.supportsTransactionIsolationLevel(
                Connection.TRANSACTION_SERIALIZABLE));
       
        assertTrue(dmd.supportsTransactions());
        assertTrue(dmd.supportsUnion());
        assertTrue(dmd.supportsUnionAll());        
    }
   
    /**
 
View Full Code Here

Examples of java.sql.DatabaseMetaData.supportsTransactions()

        assertTrue(dmd.supportsTransactionIsolationLevel(
                Connection.TRANSACTION_REPEATABLE_READ));
        assertTrue(dmd.supportsTransactionIsolationLevel(
                Connection.TRANSACTION_SERIALIZABLE));
       
        assertTrue(dmd.supportsTransactions());
        assertTrue(dmd.supportsUnion());
        assertTrue(dmd.supportsUnionAll());        
    }
   
    /**
 
View Full Code Here

Examples of java.sql.DatabaseMetaData.supportsTransactions()

    boolean supportsOrderByUnrelated = dbMetaData.supportsOrderByUnrelated();
    boolean supportsPositionedDelete = dbMetaData.supportsPositionedDelete();

    boolean supportsSelectForUpdate = dbMetaData.supportsSelectForUpdate();
    boolean supportsStoredProcedures = dbMetaData.supportsStoredProcedures();
    boolean supportsTransactions = dbMetaData.supportsTransactions();
    boolean supportsUnion = dbMetaData.supportsUnion();
    boolean supportsUnionAll = dbMetaData.supportsUnionAll();

    int getMaxColumnNameLength = dbMetaData.getMaxColumnNameLength();
    int getMaxColumnsInIndex = dbMetaData.getMaxColumnsInIndex();
View Full Code Here

Examples of java.sql.DatabaseMetaData.supportsTransactions()

     * @throws SQLException if an SQL exception occurs.
     */
    private static void setMetaData(Connection con) throws SQLException {
        DatabaseMetaData metaData = con.getMetaData();
        // Supports transactions?
        transactionsSupported = metaData.supportsTransactions();
        // Supports subqueries?
        subqueriesSupported = metaData.supportsCorrelatedSubqueries();
        // Supports scroll insensitive result sets? Try/catch block is a
        // workaround for DB2 JDBC driver, which throws an exception on
        // the method call.
View Full Code Here

Examples of java.sql.DatabaseMetaData.supportsTransactions()

        assertTrue(dmd.supportsTransactionIsolationLevel(
                Connection.TRANSACTION_REPEATABLE_READ));
        assertTrue(dmd.supportsTransactionIsolationLevel(
                Connection.TRANSACTION_SERIALIZABLE));
       
        assertTrue(dmd.supportsTransactions());
        assertTrue(dmd.supportsUnion());
        assertTrue(dmd.supportsUnionAll());        
    }
   
    /**
 
View Full Code Here

Examples of java.sql.DatabaseMetaData.supportsTransactions()

                    dbPassword);

            /* check transactional support */
            DatabaseMetaData dmd = connection.getMetaData();
            System.out.println("Database "
                    + (dmd.supportsTransactions() ? "supports"
                            : "doesn't support") + " transactions");

            System.out.println("Close connection");
            connection.close();

View Full Code Here

Examples of java.sql.DatabaseMetaData.supportsTransactions()

        assertTrue(dmd.supportsTransactionIsolationLevel(
                Connection.TRANSACTION_REPEATABLE_READ));
        assertTrue(dmd.supportsTransactionIsolationLevel(
                Connection.TRANSACTION_SERIALIZABLE));
       
        assertTrue(dmd.supportsTransactions());
        assertTrue(dmd.supportsUnion());
        assertTrue(dmd.supportsUnionAll());        
    }
   
    /**
 
View Full Code Here

Examples of java.sql.DatabaseMetaData.supportsTransactions()

        assertTrue(dmd.supportsTransactionIsolationLevel(
                Connection.TRANSACTION_REPEATABLE_READ));
        assertTrue(dmd.supportsTransactionIsolationLevel(
                Connection.TRANSACTION_SERIALIZABLE));
       
        assertTrue(dmd.supportsTransactions());
        assertTrue(dmd.supportsUnion());
        assertTrue(dmd.supportsUnionAll());        
    }
   
    /**
 
View Full Code Here

Examples of java.sql.DatabaseMetaData.supportsTransactions()

        props.put("name",metaData.getDatabaseProductName());
        props.put("version",metaData.getDatabaseProductVersion() );
        props.put("driver",metaData.getDriverName()+" "+  metaData.getDriverVersion());
        props.put("url",metaData.getURL());
        props.put("user",metaData.getUserName());
        props.put("transaction",(metaData.supportsTransactions())?"Yes":"No");
        props.put("multiple",(metaData.supportsMultipleTransactions())?"Yes":"No");
        props.put("readOnly",(metaData.isReadOnly())?"Yes":"No" );
         
        request.setAttribute("props",props);
       
View Full Code Here

Examples of java.sql.DatabaseMetaData.supportsTransactions()

      DatabaseMetaData dm = myConnection.getMetaData();

      if (! super.supportsTransactions())
      {
        if (dm.supportsTransactions())
        {
          supportsTransactions = true;
        }
        else
        {
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.