public boolean updateLink(Link link) {
		                       Connection conn=ConnectionFactory.getConnection();
		               		PreparedStatement pstmt=null;
		               		String sql="	UPDATE Link "
		                       +"SET l_url=?, l_name=?, l_img=?, l_info=?, l_isLock=? "
		                       +"WHERE l_id=?";
		               		try {
		               			pstmt=conn.prepareStatement(sql);
		               			pstmt.setString(1, link.getLUrl());
		               			pstmt.setString(2, link.getLName());
		               			pstmt.setString(3, link.getLImg());
		               			pstmt.setString(4, link.getLInfo());
		               			pstmt.setBoolean(5, link.getLIsLock());
		               			pstmt.setLong(6, link.getLId());
		               		//	pstmt.setDate(6, new java.sql.Date(link.getLAddtime().getTime()));
		               			return pstmt.executeUpdate()==1?true:false;
		               			
		               		} catch (SQLException e) {
		               			 
		               			e.printStackTrace();
		               			return false;
		               		}finally{
		               			SQLCommand.close(pstmt);
		               			SQLCommand.close(conn);
		               			
		               		}
	}