Java SQL ResultSet hasCompleted(ResultSet rs)

Here you can find the source of hasCompleted(ResultSet rs)

Description

has Completed

License

Open Source License

Declaration

public static boolean hasCompleted(ResultSet rs) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.sql.ResultSet;

import java.sql.SQLException;

public class Main {
    public static boolean hasCompleted(ResultSet rs) {
        try {/* www  .j  a  v  a2s.c o m*/
            return (rs.isClosed() || rs.isAfterLast());
        } catch (SQLException e) {
            return false;
        }
    }
}

Related

  1. extractGeneratedId(ResultSet generatedKeys)
  2. extractIntResult(ResultSet rs, ResultSetMetaData rsmd, int index)
  3. extractResults(ResultSet resultSet)
  4. extractResultSetFiledNames(ResultSet result)
  5. fillRowNames(Map metaData, ResultSet rs)
  6. hasGeometryField(ResultSet resultSet)
  7. isNull(ResultSet rs, String name)
  8. isResultEmpty(ResultSet theResult)
  9. isReturnsInvalidResultSetException(SQLException se)