Enum Class JDBCUtils

java.lang.Object
java.lang.Enum<JDBCUtils>
com.linkedin.alpini.base.misc.JDBCUtils
All Implemented Interfaces:
Serializable, Comparable<JDBCUtils>, Constable

public enum JDBCUtils extends Enum<JDBCUtils>
Utility methods for JDBC.
  • Enum Constant Details

    • SINGLETON

      public static final JDBCUtils SINGLETON
  • Method Details

    • values

      public static JDBCUtils[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JDBCUtils valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • closeQuietly

      public static void closeQuietly(@WillClose ResultSet rs)
    • closeQuietly

      public static void closeQuietly(@WillClose Statement stmt)
    • closeQuietly

      public static void closeQuietly(@WillClose Connection conn)