Class DatabaseUtils

java.lang.Object
com.aoapps.dbc.DatabaseUtils

public final class DatabaseUtils extends Object
Implementation utilities.
Author:
AO Industries, Inc.
  • Method Details

    • getRow

      public static String getRow(ResultSet result) throws SQLException
      Gets a user-friendly description of the provided result in a string formatted like ('value', 'value', 'long_value_cutoff_at_32_characte…', int_value, NULL, …). This must not be used generate SQL statements - it is just to provide user display.
      Throws:
      SQLException
    • getRowCount

      public static int getRowCount(ResultSet results) throws SQLException
      Gets the number of rows or -1 when unknown.
      Throws:
      SQLException