Java Code Examples for java.sql.Connection.getHoldability()

The following are Jave code examples for showing how to use getHoldability() of the java.sql.Connection class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: sstore-soft   File: ConnectionDefaults.java   Source Code and License Vote up 5 votes
public ConnectionDefaults(Connection connection) throws SQLException {

        this.holdability          = connection.getHoldability();
        this.transactionIsolation = connection.getTransactionIsolation();
        this.isAutoCommit         = connection.getAutoCommit();
        this.isReadOnly           = connection.isReadOnly();
        this.catalog              = connection.getCatalog();
    }
 
Example 2
Project: s-store   File: ConnectionDefaults.java   Source Code and License Vote up 5 votes
public ConnectionDefaults(Connection connection) throws SQLException {

        this.holdability          = connection.getHoldability();
        this.transactionIsolation = connection.getTransactionIsolation();
        this.isAutoCommit         = connection.getAutoCommit();
        this.isReadOnly           = connection.isReadOnly();
        this.catalog              = connection.getCatalog();
    }