@Override
	public Boolean salvar(EmpresaBean bean) {
		//PreparedStatement ps = null;
		Statement st = null;
		try{
			st = conn.createStatement();
			conn.setAutoCommit(false);
			String SQL = "INSERT INTO Dig_Empresa (razao_Social, cnpj, telefone, email, endereco, cidade, estado) VALUES ('"+bean.getRazaoSocial()+"','"+bean.getCnpj()+"','"
						+bean.getTelefone()+"','"+bean.geteMail()+"','"+bean.getEndereco()+"','"+bean.getCidade()+"','"+bean.getEstado()+"')";
			//ps = conn.prepareStatement(); 
			st.executeUpdate(SQL, Statement.RETURN_GENERATED_KEYS);
			//ps.executeUpdate();
			
			//Busca o id da coluna inserida
			ResultSet rs = st.getGeneratedKeys();
			if(rs.next()){
				int key = rs.getInt(1);
				//for(HorarioFuncionamentoBean funcionamentoBean : bean.getFuncionamentoBeans()){
					SQL = "INSERT INTO Dig_Horario_Funcionamento (deSegSexta, ateSegSexta, deSabado, ateSabado, deDomingo, ateDomingo, id_empresa) VALUES ('"+bean.getHorarioDeSegSexta()+
							"','"+bean.getHorarioAteSegSexta()+"','"+bean.getHorarioDeSabado()+"','"+bean.getHorarioAteSabado()+"','"+bean.getHorarioDeDomingo()+
							"','"+bean.getHorarioAteDomingo()+"',"+key+")";
					st.executeUpdate(SQL);					
				//}			

			}
			
			conn.commit();
			
		}catch(SQLException sql){
			if(conn != null){
				try {
					conn.rollback();
				} catch (SQLException e) {					
					e.printStackTrace();
				}
			}
			sql.printStackTrace();
			return false;
		}catch(Exception e){
			e.printStackTrace();
			return false;
		}finally{
			try {
				st.close();
			} catch (SQLException e) {
				e.printStackTrace();
			}
			fecharConexao();
		}
		
		return true;
	}