Class SQLDatabase

  • Direct Known Subclasses:
    DBInitializer, SQLStore, TableInitializer

    public class SQLDatabase
    extends Object
    /** Top-level SQL object. This simply maintains a connection pool to a database.

    Created by Jeff Gaynor
    on Mar 12, 2010 at 12:58:14 PM

    • Constructor Detail

      • SQLDatabase

        public SQLDatabase()
    • Method Detail

      • releaseConnection

        public void releaseConnection​(ConnectionRecord c)
        Put the connection back on the stack for future use. This should be invoked in a finally clause at the end of every method that uses a connection.
        Parameters:
        c -
      • setConnectionPool

        public void setConnectionPool​(ConnectionPool connectionPool)
      • rsToMap

        public static ColumnMap rsToMap​(ResultSet rs)
                                 throws SQLException
        Take the values in the current row and stash them in a map, keyed by column name.
        Parameters:
        rs -
        Returns:
        Throws:
        SQLException