src/com/shrewdify/diaroser/utils/DbHelper.java
public  Hashtable<String, String> loadSessionData(String sessionId) throws SQLException{
		Hashtable<String, String> phoneData = new Hashtable<String, String>();
		if (connection != null) {
			psActiveCallLis.setString(1, sessionId);
			ResultSet resultSet = psActiveCallLis.executeQuery();
			while (resultSet.next()) {
				Pattern p = Pattern.compile("[\\{\\}\\=\\, ]");
				String[] phonData = p.split(resultSet.getString(3));
				for (int i = 1; i < phonData.length; i += 3) {
					phoneData.put(phonData[i], phonData[i + 1]);
				}

			}
			resultSet.close();
		}

		return phoneData;

	}
/**
	 * 
	 * @param sessionId //SessionId of the session to be loaded
	 * @return
	 * @throws SQLException
	 * 
	 * It checks the entry for corresponding session in Db and loads them back to Hash stable and returns it.
	 */
@param sessionId //SessionId of the session to be loaded
@return
@throws SQLException

It checks the entry for corresponding session in Db and loads them back to Hash stable and returns it.
@param sessionId // SessionId of the session to be loaded @return @throws SQLException It checks the entry for corresponding session in Db and loads them back to Hash stable and returns it .
public  Hashtable<String, String> loadSessionData(String sessionId) throws SQLException{
		Hashtable<String, String> phoneData = new Hashtable<String, String>();
		if (connection != null) {
			psActiveCallLis.setString(1, sessionId);
			ResultSet resultSet = psActiveCallLis.executeQuery();
			while (resultSet.next()) {
				Pattern p = Pattern.compile("[\\{\\}\\=\\, ]");
				String[] phonData = p.split(resultSet.getString(3));
				for (int i = 1; i < phonData.length; i += 3) {
					phoneData.put(phonData[i], phonData[i + 1]);
				}
			}
			resultSet.close();
		}
		return phoneData;
	}
public Hashtable < String , String > loadSessionData ( String sessionId ) throws SQLException { Hashtable < String , String > phoneData = new Hashtable < String , String > ( ) ; if ( connection != null ) { psActiveCallLis . setString ( 1 , sessionId ) ; ResultSet resultSet = psActiveCallLis . executeQuery ( ) ; while ( resultSet . next ( ) ) { Pattern p = Pattern . compile ( "[\\{\\}\\=\\, ]" ) ; String [ ] phonData = p . split ( resultSet . getString ( 3 ) ) ; for ( int i = 1 ; i < phonData . length ; i += 3 ) { phoneData . put ( phonData [ i ] , phonData [ i + 1 ] ) ; } } resultSet . close ( ) ; } return phoneData ; }
@param sessionId //SessionId of the session to be loaded
 @return
 @throws SQLException
@param sessionId // SessionId of the session to be loaded @return @throws SQLException