Arushi has Published 157 Articles

What are the transaction isolation levels supported by JDBC API?

Arushi

Arushi

Updated on 30-Jul-2019 22:30:26

1K+ Views

JDBC provides support 5 transaction isolation levels through Connection interface.TRANSACTION_NONE: It is represented by integer value 0 does not support transactions.TRANSACTION_READ_COMMITTED: It is represented by integer value 2 supports transactions allowing Non-Repeatable Reads and, Phantom Reads.TRANSACTION_READ_UNCOMMITTED: It is represented by integer value 1 supports transactions allowing Dirty Reads, Non-Repeatable Reads ... Read More

Java DatabaseMetaData supportsResultSetHoldability() method with example

Arushi

Arushi

Updated on 30-Jul-2019 22:30:26

24 Views

ResultSet holdability determines whether the ResultSet objects (cursors) should be closed or held open when a transaction (that contains the said cursor/ ResultSet object) is committed using the commit() method of the Connection interface.The ResultSet interface provides two values to specify the holdability of a ResultSet namely −CLOSE_CURSORS_AT_COMMIT: If the ... Read More

Java DatabaseMetaData supportsUnion() method with example.

Arushi

Arushi

Updated on 30-Jul-2019 22:30:26

41 Views

The SQL UNION clause/operator is used to combine the results of two or more SELECT statements without returning any duplicate rows.To use this UNION clause, each SELECT statement must haveThe same number of columns selectedThe same number of column expressionsThe same data type andHave them in the same orderBut they ... Read More

What is ResultSet holdability in JDBC?

Arushi

Arushi

Updated on 30-Jul-2019 22:30:26

1K+ Views

ResultSet holdability determines whether the ResultSet objects (cursors) should be closed or held open when a transaction (that contains the said cursor/ ResultSet object) is committed using the commit() method of the Connection interface.You can set the ResultSet holdability using the setHoldability() method of the Connection interface.con.setHoldability(ResultSet.CLOSE_CURSORS_AT_COMMIT);The ResultSet interface provides ... Read More

Java Connection getHoldability() method with example

Arushi

Arushi

Updated on 30-Jul-2019 22:30:26

176 Views

ResultSet holdability determines whether the ResultSet objects (cursors) should be closed or held open when a transaction (that contains the said cursor/ResultSet object) is committed using the commit() method of the Connection interface.The getHoldability() method of the Connection interface is used to retrieves and returns the current holdability value of the ResultSet ... Read More

Java Connection releaseSavepoint() method with example

Arushi

Arushi

Updated on 30-Jul-2019 22:30:26

259 Views

A save point is a logical rollback point within a transaction. When you set a save point, whenever an error occurs past a save point, you can undo the events you have done up to the created save point using the rollback() method.You can set a save point in a ... Read More

Java Connection getMetaData() method with example

Arushi

Arushi

Updated on 30-Jul-2019 22:30:26

1K+ Views

Generally, Data about data is known as metadata. The DatabaseMetaData interface provides methods to get information about the database you have connected with like, database name, database driver version, maximum column length etc...The getMetaData() method of the Connection interface retrieves and returns the DatabaseMetaData object. This contains information about the database ... Read More

Java Connection getClientInfo() method with example

Arushi

Arushi

Updated on 30-Jul-2019 22:30:26

983 Views

The getClientInfo() method of the Connection interface returns the name and values of the client info properties of the current connection. This method returns a properties object.To retrieve the values of the client info properties file.Register the driver using the registerDriver() method of the DriverManager class as −//Registering the Driver DriverManager.registerDriver(new com.mysql.jdbc.Driver());Get ... Read More

Java Connection setTransactionIsolation() method with example

Arushi

Arushi

Updated on 30-Jul-2019 22:30:26

2K+ Views

In a database system where more than one transaction is being executed simultaneously and in parallel, the property of isolation states that all the transactions will be carried out and executed as if it is the only transaction in the system. No transaction will affect the existence of any other ... Read More

The DatabaseMetaData getResultSetHoldability() method with example

Arushi

Arushi

Updated on 30-Jul-2019 22:30:26

66 Views

ResultSet holdability determines whether the ResultSet objects (cursors) should be closed or held open when a transaction (that contains the said cursor/ResultSet object) is committed using the commit() method of the Connection interface.The getResultSetHoldability() method of the DatabaseMetaData interface retrieves the default holdability for the ResultSet objects of the underlying database.This ... Read More

Previous 1 ... 7 8 9 10 11 ... 16 Next
Advertisements