whar are savepoint in a transaction
Transaction control involves committing and roll backing transactions and setting Isolation level for transactions.
1) Setting the Isolation level: Using the Connection.setTransactionIsolation(int level) method isolation level can be set in JDBC. the method can accept any of the arguments listed below.
TRANSACTION_NONE TRANSACTION_READ_COMMITTED TRANSACTION_SERIALIZABLE TRANSACTION_READ_UNCOMMITTED TRANSACTION_REPEATABLE_READ
2) Committing or rolling back: To commit or roll back transactions explicitly, use the commit or rollback methods.
Save point is the point to which we can undo the unsaved data.
Applications can set a savepoint within a transaction and then roll back all work done after the savepoint. A save point is created using the method
To rollback to the save point use
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.