Java SQL ResultSet isSupportedResultSetType(Connection connection, int resultSetType)

Here you can find the source of isSupportedResultSetType(Connection connection, int resultSetType)

Description

is Supported Result Set Type

License

Apache License

Declaration

public static boolean isSupportedResultSetType(Connection connection, int resultSetType) throws SQLException 

Method Source Code


//package com.java2s;
/*/*from  w w w.  j  av  a 2 s  . c om*/
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.SQLException;

public class Main {
    public static boolean isSupportedResultSetType(Connection connection, int resultSetType) throws SQLException {
        DatabaseMetaData dbmd = connection.getMetaData();
        return dbmd.supportsResultSetType(resultSetType);
    }
}

Related

  1. hasCompleted(ResultSet rs)
  2. hasGeometryField(ResultSet resultSet)
  3. isNull(ResultSet rs, String name)
  4. isResultEmpty(ResultSet theResult)
  5. isReturnsInvalidResultSetException(SQLException se)
  6. loadListMap(final ResultSet rs)
  7. logCurrentResultSetRow(Log log, String msg, ResultSet rs)
  8. mapResultSet(ResultSet set)
  9. moveToPageNo(ResultSet rs, int pageNo, int pageSize)