Esempio n. 1
0
  public void crearJugador(String nombre) throws LogicaExcepcion {

    try {
      if (dal.encontrarJugador(nombre) == null) dal.crearJugador(nombre);
      else throw new LogicaExcepcion("Jugador EXISTE");
    } catch (DAOExcepcion e) {
      throw new LogicaExcepcion(e);
    }
  }
Esempio n. 2
0
 public ArrayList<Jugador> encontrarJugadores() throws LogicaExcepcion {
   try {
     return dal.encontrarJugadores();
   } catch (DAOExcepcion e) {
     throw new LogicaExcepcion(e);
   }
 }
Esempio n. 3
0
 public Jugador encontrarJugador(String nombre) throws LogicaExcepcion {
   try {
     return dal.encontrarJugador(nombre);
   } catch (DAOExcepcion e) {
     throw new LogicaExcepcion(e);
   }
 }
Esempio n. 4
0
 private Controlador() throws LogicaExcepcion {
   try {
     // Objeto para comunicarse con la capa de acceso a datos
     dal = DAL.dameDAL();
   } catch (DAOExcepcion e) {
     throw new LogicaExcepcion(e);
   }
 }
Esempio n. 5
0
 public void actualizarJugador(Jugador j) throws DAOExcepcion {
   dal.actualizarJugador(j);
 }
Esempio n. 6
0
 public String[] get_respuestas(PreguntaBasica pB) throws DAOExcepcion {
   return dal.get_respuestas(pB);
 }
Esempio n. 7
0
 public ArrayList<PreguntaBasica> get_preguntas_por_tema(String tema)
     throws LogicaExcepcion, DAOExcepcion {
   return dal.get_preguntas_por_tema(tema);
 }