Click here to Skip to main content
15,879,095 members
Articles / Operating Systems / Windows

Software Project Cost Estimates Using COCOMO II Model

Rate me:
Please Sign up or sign in to vote.
4.57/5 (18 votes)
10 Jan 200514 min read 355.3K   4.6K   68  
Describes simple COCOMO II cost estimation steps for a real software project.
package db_provider;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionPoolHandler
{
    public Connection conn;  
	
    String user     = "postgres";
    String password = "";
    String URL      = "jdbc:postgresql://localhost:5432/database";
    
    //constructor
    public ConnectionPoolHandler()
    {
	    try 
	    {
	        Class.forName("org.postgresql.Driver");
			conn = DriverManager.getConnection(URL, user, password);
	    }
	    catch (ClassNotFoundException ex)
	    {
	        System.err.println("ClassNotFoundException: " + ex.getMessage());
	    }
	    catch (SQLException ex)
	    {
	        System.err.println("SQLException: " + ex.getMessage());
	    } 
    }
    
    //methods for setting connection string/connection timeout externally
    //from servlet or other java program to be provided
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Russian Federation Russian Federation
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions