Concurrency of ResultSet:

Concurrency of ResultSet:

The possible RSConcurrency are given below, If you do not specify any Concurrency type, you will automatically get one that is CONCUR_READ_ONLY.

try {
Our all the examples written so far can be written as follows which initializes a Statement object to create a forward-only, read only ResultSet object:
         Statement stmt = conn.createStatement(
                           ResultSet.TYPE_FORWARD_ONLY,
                           ResultSet.CONCUR_READ_ONLY);
}
catch(Exception ex) 
{
   ....
}

finally 
{
   ....
}

Post a Comment

Previous Post Next Post