public ProfileInfo Get_DataObj(ProfileInfo DataObj) {
    	//System.out.println("ProfileDAO.Get_DataObj()");
    	
		ProfileInfo profileObj = (ProfileInfo)DataObj;
    	
    	String sql = "select * from profile WHERE `Profile_Name`=?";
       	try {
       		con = getConnection();
        	pstmt = con.prepareStatement(sql);
        	
        	pstmt.setString(1, profileObj.getProfileName());
        	
			rs = pstmt.executeQuery();
			
			while (rs.next()) {
				profileObj = new ProfileInfo();
				profileObj.setProfileName( rs.getString("Profile_name"));
				profileObj.setVideoWidth( rs.getString("Video_Width"));
				profileObj.setVideoHeight( rs.getString("Video_Height"));
				profileObj.setVideoFPS( rs.getString("Video_FPS"));
				profileObj.setVideoBitrate( rs.getString("Video_Bitrate"));
				profileObj.setVideoPreset( rs.getString("Video_Preset"));
				profileObj.setAudioCodec( rs.getString("Audio_Codec"));
				profileObj.setAudioBitrate( rs.getString("Audio_Bitrate"));
				profileObj.setAudioSamplerate( rs.getString("Audio_SampleRate"));
            }

		} catch (SQLException e) {
			e.printStackTrace();
		} finally {
            try {
                if (rs != null)
                    rs.close();
                if (pstmt != null)
                    pstmt.close();
                if (con != null)
                    con.close();
            } catch (SQLException e) {
               e.printStackTrace();

            } catch (Exception e) {
                e.printStackTrace();
            }
        }
 	
		return profileObj;
	}