Class ConnectionFactory


  • public class ConnectionFactory
    extends java.lang.Object
    This class creates a connection, and may at our discretion manage a connection pool someday.
    • Method Detail

      • getConnection

        public static WrappedConnection getConnection​(java.lang.String jdbcUrl,
                                                      java.lang.String jdbcDriver,
                                                      java.lang.String database,
                                                      java.lang.String userName,
                                                      java.lang.String password,
                                                      int maxDBConnections,
                                                      boolean debug)
                                               throws ManifoldCFException
        Throws:
        ManifoldCFException
      • flush

        public static void flush()
      • releaseAll

        public static void releaseAll()
      • getConnectionWithRetries

        protected static WrappedConnection getConnectionWithRetries​(ConnectionPool cp)
                                                             throws java.sql.SQLException,
                                                                    java.lang.InterruptedException
        Throws:
        java.sql.SQLException
        java.lang.InterruptedException
      • checkConnections

        protected static void checkConnections​(long currentTime)