Classe ControlRes

(Actualitzat 30/04/2020, 17:22:56)

Extends:

Implements:

Package: eresframe.reservas

Informació general

Created on 03-may-2004

Autor Pablo Sanz
Classe control. Gestiona les diferents peticions de les accions.


Revisat: 27/04/2020 11:35:51
   activoOnOff
   addSqlFromList
   anulaCita
   ControlRes
   createSql
   delAllCitasOrfanas
   deleteGeneric
   deleteOral
   deleteRegPorId
   deleteRegPorIdYUsr
   delItem
   desRegistraAlumnos
   existeCita
   existenChilds
   existsSesGrup
   extractReservasXBloc
   fetchAllBlocs
   fetchAllOrales
   fetchBlocPorId
   fetchBlocsUserOwned
   fetchBlocsXUser
   fetchBlocsXUserId
   fetchCitasOrfanas
   fetchCitasSinReservaXBloc
   fetchCitasXBloc
   fetchCitasXSet
   fetchCitaXId
   fetchCitaXIdDiaHora
   fetchDeployedOralesPorIdCita
   fetchDeployedOralesPorIdSet
   fetchExtSets
   fetchExtSets
   fetchIdUsuarioFromNom
   fetchIPSTablesFromSql
   fetchOralesActivos
   fetchOralPorId
   fetchOrfanBloc
   fetchPreparacioCita
   fetchRegs
   fetchResultFromSQL
   fetchSetPorId
   fetchSets
   fetchUndeployOralesPorIdSet
   fetchUsrsXBlocSinCita
   fetchUsuarioFromId
   fetchUsuarioFromIdentificador
   filtraOcupacionCitas
   filtraOrales
   generaEsquema
   getResultFromSQL
   killBloc
   listOcupacionCitasPorIdBloc
   listOcupacionCitasPorIdOral
   listOcupacionCitasPorIdOralOrdenByNom
   listOcupacionSetPorId
   loadActiveBlocs
   loadBlocs
   loadSets
   modificaCita
   modificaPlaza
   OralOnOff
   reGeneraEsquema
   registraAlumnos
   registraFile
   reservaCita
   reservaPlaza
   runUpdate
   saveBloc
   saveOral
   saveSesGrup
   saveSet
   selectCitasLibresXBloc
   selectCitasXBloc
   selectPlazasLibresXBloc
   setsOnOff
   showSqls
   undeployXIdBloc
   undeployXIdCita
   undeployXIdSet
   updateAlumnos
   updateMail
   updateSql
   updateSqlFromList
   updateSqlRecord
   updateUsuario
        
eresframe.reservas.ControlRes
Conmuta el campo ACTIVO entre activo/inactivo por Id de manera genérica
@param long
@param boolean
@param String
@return 
@throws SQLException, ExtractSQLException
public static int activoOnOff(long id, boolean onOff, String tabla) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
Añade sentencias SQL en bloque a partir de un listado
@param String[]
@return 
@throws SQLException, ExtractSQLException
public static Collection<String> addSqlFromList(String[] sqls) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException
public static int anulaCita(long idCita) throws SQLException {}  
eresframe.reservas.ControlRes

@return 
@throws 
public ControlRes() {}  
eresframe.reservas.ControlRes
@param SqlsTupla
@return 
@throws SQLException, ExtractSQLException
public static long createSql(SqlsTupla tu) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes

@return 
@throws SQLException, ExtractSQLException
public static boolean delAllCitasOrfanas() throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
És un mètode que rep una sql de DELET i l'executa
@param String
@return 
@throws SQLException
public static boolean deleteGeneric(String string) throws SQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException, ExtractSQLException
public static int deleteOral(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
Aplica la sql DELETE_ALUMNOS. Ver tabla SQL
@param long
@return 
@throws throws SQLException, ExtractSQLException
public static boolean deleteRegPorId(long id)  throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
Elimina una reserva a partir del id y el identificador de un usuario
@param long
@return 
@throws throws SQLException, ExtractSQLException
public static int deleteRegPorIdYUsr(long id)  throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
Elimina un registro de tabla SQL. Debería haberse llamado delItemSQL
@param String
@return 
@throws SQLException
public static boolean delItem(String ident) throws SQLException {}  
eresframe.reservas.ControlRes
@param Collection<TuplaUsercitas>
@return 
@throws SQLException, ExtractSQLException
public static Collection<String> desRegistraAlumnos(Collection<TuplaUsercitas> col) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param long
@param String
@return 
@throws SQLException, ExtractSQLException
public static boolean existeCita(long idBloc, String usr) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param String
@return 
@throws SQLException
public static boolean existenChilds(String sql) throws SQLException {}  
eresframe.reservas.ControlRes
Probablemente obsoleta
@param String
@return 
@throws SQLException
public static int existsSesGrup(String nom) throws SQLException {}  
eresframe.reservas.ControlRes
Recibe una colección de bloques, usualmente pertenecientes a un usuario,
 y devuelve la reserva de ese usr asociada a ese bloque si existe. Null
 si no existe.
@param Collection
@param String
@return 
@throws SQLException, ExtractSQLException
public static Collection extractReservasXBloc(Collection col, String usr) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param String
@param String
@param String
@param HttpTransit
@return 
@throws SQLException, ExtractSQLException
public static Collection<TuplaBloc> fetchAllBlocs(String nom, String dia, String diaFi, HttpTransit ht) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes

@return 
@throws SQLException, ExtractSQLException
public static Collection fetchAllOrales() throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException, ExtractSQLException
public static TuplaBloc fetchBlocPorId(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
Blocs propiedad de un usuario
@param String[]
@return 
@throws SQLException, ExtractSQLException
public static Collection<TuplaBloc> fetchBlocsUserOwned(String[] ides) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param String
@return 
@throws SQLException, ExtractSQLException
public static Collection fetchBlocsXUser(String usr) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException, ExtractSQLException
public static Collection fetchBlocsXUserId(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes

@return 
@throws SQLException, ExtractSQLException
public static Collection<TuplaCitaExt> fetchCitasOrfanas() throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException
public static Collection<TuplaUsercitas> fetchCitasSinReservaXBloc(long idBloc) throws SQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException, ExtractSQLException
public static Collection fetchCitasXBloc(long idBloc) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
Obtiene citas por (X) Set
@param long
@return 
@throws SQLException, ExtractSQLException
public static Collection fetchCitasXSet(long idSet) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException, ExtractSQLException
public static TuplaCita fetchCitaXId(long idCita) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param long
@param String
@param String
@return 
@throws SQLException, ExtractSQLException
public static ICitas fetchCitaXIdDiaHora(long idCita, String dia, String horaIni) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException, ExtractSQLException
public static Collection fetchDeployedOralesPorIdCita(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException, ExtractSQLException
public static Collection fetchDeployedOralesPorIdSet(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param HttpTransit
@return 
@throws SQLException, ExtractSQLException
public static Collection<TuplaSetsExt> fetchExtSets(HttpTransit ht) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param long
@param String
@param String
@param int
@return 
@throws SQLException, ExtractSQLException
public static Collection<TuplaSetsExt> fetchExtSets(long idBloc, String nom, String lloc, int activo) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param String
@param long
@return 
@throws SQLException, ExtractSQLException
public static long fetchIdUsuarioFromNom(String usr, long idBloc) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param String
@return 
@throws SQLException
public static Collection<String> fetchIPSTablesFromSql(String sql) throws SQLException {}  
eresframe.reservas.ControlRes

@return 
@throws SQLException
public static Collection fetchOralesActivos() throws SQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException, ExtractSQLException
public static TuplaOral fetchOralPorId(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param Collection<Long>
@return 
@throws SQLException, ExtractSQLException
public static String fetchOrfanBloc(Collection<Long> idBlocs) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException, ExtractSQLException
public static int fetchPreparacioCita(long idCita) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param String
@param long
@return 
@throws SQLException, ExtractSQLException
public static Collection<TuplaUsercitas> fetchRegs(String usr, long idBloc) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
Función antigua para generar tablas de datos a partir de la info de una tabla. Probablemente obsoleta
 fetchResultFromSQL se diferencia de getResultFromSQL en que aquella recibe
 una String[] para representar los botones y eso permite un número variable de
 botones.
@param String
@param String[][]
@return 
@throws SQLException
public static String fetchResultFromSQL(String aSql, String[][] btns) throws SQLException   {}  
eresframe.reservas.ControlRes
Obtiene un set a través de su ID
@param long
@return 
@throws SQLException, ExtractSQLException
public static TuplaSets fetchSetPorId(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param int
@return 
@throws SQLException
public static Collection fetchSets(int activos) throws SQLException {}  
eresframe.reservas.ControlRes
Obtiene los orales no desplegados por Id Set
@param long
@return 
@throws SQLException, ExtractSQLException
public static Collection fetchUndeployOralesPorIdSet(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException, ExtractSQLException
public static Collection fetchUsrsXBlocSinCita(long idBloc) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException, ExtractSQLException
public static TuplaUsercitas fetchUsuarioFromId(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param String
@return 
@throws SQLException, ExtractSQLException
public static Collection<TuplaUsercitas> fetchUsuarioFromIdentificador(String ident) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param long
@param long
@param String
@param int
@param boolean
@return 
@throws SQLException, ExtractSQLException
public static Collection<TuplaCitaExt> filtraOcupacionCitas(long idBloc, long idSet, String nom, int asignados, boolean all) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param int
@param long
@param long
@param String
@param long
@return 
@throws SQLException, ExtractSQLException
public static Collection<TuplaOral> filtraOrales(int activo, long sesion, long idSet, String dia, long idBloc) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
Comprueba si ya hay un conjunto de citas desplegado. Si lo hay retorna, si no procede a crearlo
@param long
@param long
@param long
@param TuplaOral
@param Collection
@return 
@throws SQLException, ExtractSQLException
public static int generaEsquema(long idBloc, long idSet, long idCita, TuplaOral tupla, Collection col) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
Función antigua para generar tablas de datos a partir de la info de una tabla. Probablemente obsoleta
@param String
@param String
@param String
@param String
@return 
@throws SQLException
public static String getResultFromSQL(String aSql, String mod, String del, String xtra) throws SQLException   {}  
eresframe.reservas.ControlRes
Mata todos los descendientes de un bloc: usercitas, citas, orales, sets
@param long
@return 
@throws SQLException
public static boolean killBloc(long id) throws SQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException, ExtractSQLException
public static Collection<TuplaCitaExt> listOcupacionCitasPorIdBloc(long idBloc) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException
public static Collection<TuplaCitaExt> listOcupacionCitasPorIdOral(long id) throws SQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException
public static Collection listOcupacionCitasPorIdOralOrdenByNom(long id) throws SQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException
public static Collection<TuplaCitaExt> listOcupacionSetPorId(long id) throws SQLException {}  
eresframe.reservas.ControlRes

@return 
@throws SQLException
public static Collection loadActiveBlocs() throws SQLException {}  
eresframe.reservas.ControlRes
Carga TODOS los blocs
@param HttpTransit
@return 
@throws SQLException
public static Collection loadBlocs(HttpTransit ht) throws SQLException {}  
eresframe.reservas.ControlRes
@param int
@return 
@throws SQLException
public static Collection loadSets(int activo) throws SQLException {}  
eresframe.reservas.ControlRes
@param TuplaCita
@param long
@param String
@return 
@throws SQLException, ExtractSQLException
public static int modificaCita(TuplaCita tcAmodificar, long idCita, String usr) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param ICitas
@param TuplaCita
@return 
@throws SQLException, ExtractSQLException
public static int modificaPlaza(ICitas pc, TuplaCita tcAmodificar) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
Conmuta un oral entre activo/inactivo por Id
@param long
@param boolean
@return 
@throws SQLException, ExtractSQLException
public static int OralOnOff(long id, boolean onOff) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
Comprueba si ya hay un conjunto de citas desplegado. Si lo hay retorna, si no procede a crearlo
@param long
@return 
@throws SQLException, ExtractSQLException
public static int reGeneraEsquema(long idCita) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param Collection<TuplaUsercitas>
@return 
@throws SQLException, ExtractSQLException
public static Collection<String> registraAlumnos(Collection<TuplaUsercitas> col) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
Registra un archivo para registro en bloque. Formato SimtestdatFile:
 DNI, COGNOM_1, COGNOM_2, NOM, TELEFON, NAIXEMENT, EMAIL
@param SimtestdatFile
@return 
@throws throws SQLException
public static int registraFile(SimtestdatFile sdf)  throws SQLException  {}  
eresframe.reservas.ControlRes
@param long
@param String
@return 
@throws SQLException, ExtractSQLException
public static int reservaCita(long idCita, String usr) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param PlazasCita
@param String
@return 
@throws SQLException, ExtractSQLException
public synchronized static int reservaPlaza(PlazasCita pc, String usr) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
Ejecuta una sentencia genérica de update de SQL
@param String
@return 
@throws SQLException
public static boolean runUpdate(String string) throws SQLException {}  
eresframe.reservas.ControlRes
@param TuplaBloc
@param boolean
@return 
@throws SQLException
public static int saveBloc(TuplaBloc tb, boolean crea) throws SQLException {}  
eresframe.reservas.ControlRes
@param TuplaOral
@param boolean
@return 
@throws SQLException
public static int saveOral(TuplaOral ts, boolean crea) throws SQLException {}  
eresframe.reservas.ControlRes
Probablemente obsoleta.
@param String
@param String
@return 
@throws SQLException
public static int saveSesGrup(String nom, String lloc) throws SQLException {}  
eresframe.reservas.ControlRes
@param TuplaSets
@param boolean
@return 
@throws SQLException
public static int saveSet(TuplaSets ts, boolean crea) throws SQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException, ExtractSQLException
public static Collection selectCitasLibresXBloc(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param long
@param String
@return 
@throws SQLException, ExtractSQLException
public static Collection selectCitasXBloc(long id, String usr) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param long
@return 
@throws SQLException, ExtractSQLException
public static Collection selectPlazasLibresXBloc(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
Conmuta un set entre activo/inactivo por Id
@param long
@param boolean
@return 
@throws SQLException, ExtractSQLException
public static int setsOnOff(long id, boolean onOff) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
Muestra ls SQLs de la tabla SQL

@return 
@throws SQLException, ExtractSQLException
public static Collection<SqlsTupla> showSqls() throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
Anula un despliegue de citas por IdBloc
@param long
@return 
@throws SQLException
public static int undeployXIdBloc(long id) throws SQLException {}  
eresframe.reservas.ControlRes
Anula un despliegue de citas por IdCita
@param long
@return 
@throws SQLException
public static int undeployXIdCita(long id) throws SQLException {}  
eresframe.reservas.ControlRes
Anula un despliegue de citas por IdSet
@param long
@return 
@throws SQLException
public static int undeployXIdSet(long id) throws SQLException {}  
eresframe.reservas.ControlRes
@param Collection<TuplaUsercitas>
@return 
@throws SQLException
public static Collection<String> updateAlumnos(Collection<TuplaUsercitas> col) throws SQLException {}  
eresframe.reservas.ControlRes
@param String
@param String
@return 
@throws SQLException
public static int updateMail(String user, String usrMail) throws SQLException {}  
eresframe.reservas.ControlRes
@param String
@param String
@param String
@return 
@throws SQLException
public static int updateSql(String ident, String value, String field) throws SQLException {}  
eresframe.reservas.ControlRes
Actualiza sentencias SQL en bloque a partir de un listado
@param String[]
@return 
@throws SQLException, ExtractSQLException
public static Collection<String> updateSqlFromList(String[] sqls) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param String
@param String
@return 
@throws SQLException, ExtractSQLException
public static int updateSqlRecord(String ident, String sql) throws SQLException, ExtractSQLException {}  
eresframe.reservas.ControlRes
@param TuplaUsercitas
@return 
@throws SQLException
public static boolean updateUsuario(TuplaUsercitas tu) throws SQLException {}