This method of the Connection class establishes a connection to a data source.
public void setConnectionString(String con);