Classe LinkDB

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

Extends: extends psanz.jndi.LinkDB

Implements:

Package: eresframe.reservas

Informació general

LinkDB.java

@author Pablo Sanz
Creado el 13 de diciembre de 2006, 19:54

Revisat: 24/04/2020 09:02:36
   activoOnOff
   addSqlFromList
   anulaCita
   blockDeploy
   chkNoExisten
   createSql
   delAllCitasOrfanas
   deleteBloc
   deleteCitas
   deleteGeneric
   deleteOral
   deleteOrals
   deleteRegPorId
   deleteRegPorIdYUsr
   deleteSets
   deleteUsercitas
   delItem
   desRegistraAlumnos
   esquemaYaGenerado
   existeBloc
   existeCita
   existenChilds
   existeOral
   existeSet
   existsSet
   existsSqlIdent
   extractReservasXBloc
   extractSql
   fetchAllBlocs
   fetchAllOrales
   fetchAsIPSTableRows
   fetchBlocPorId
   fetchBlocsUserOwned
   fetchBlocsXUser
   fetchCitasOrfanas
   fetchCitasSinReservaXBloc
   fetchCitasXBloc
   fetchCitasXSet
   fetchCitaXId
   fetchCitaXIdDiaHora
   fetchDeployedOralesPorIdCita
   fetchDeployedOralesPorIdSet
   fetchExtSets
   fetchExtSets
   fetchIdUsuarioFromNom
   fetchOralesActivos
   fetchOralPorId
   fetchOrfanBloc
   fetchPlazasMaximasXCita
   fetchPreparacioCita
   fetchRegs
   fetchResultSet
   fetchSetPorId
   fetchSets
   fetchUndeployOralesPorIdSet
   fetchUsrsXBlocSinCita
   fetchUsuarioFromId
   fetchUsuarioFromIdentificador
   fetchUsuarisConReservaXBloc
   fetchUsuarisXBloc
   filtraOcupacionCitas
   filtraOrales
   generaEsquema
   getResultSet
   hasChildren
   hayCitasEnOral
   isAlumnoRegistered
   LinkDB
   listOcupacionCitasPorIdBloc
   listOcupacionCitasPorIdOral
   listOcupacionCitasPorIdOralOrdenByNom
   listOcupacionSetPorId
   loadBlocs
   OralOnOff
   recuperaEsquemaXBloc
   recuperaEsquemaXCita
   recuperaEsquemaXSet
   reGeneraEsquema
   registraAlumnos
   registraFile
   reservaCita
   reservaPlaza
   runUpdate
   saveBloc
   saveOral
   saveSesGrup
   saveSet
   selectCitasLibresXBloc
   selectCitasXBloc
   selectPlazasLibresXBloc
   setsOnOff
   showSqls
   undeployXIdBloc
   undeployXIdCita
   undeployXIdSet
   updateAlumnos
   updateBloc
   updateMail
   updateOral
   updateSet
   updateSql
   updateSqlFromList
   updateSqlRecord
   updateUsuario
        
eresframe.reservas.LinkDB
Pone el campo ACTIVO de manera genérica
@param long
@param boolean
@param String
@return 
@throws SQLException, ExtractSQLException
public int activoOnOff(long id, boolean onOff, String tabla) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param String[]
@return 
@throws SQLException, ExtractSQLException
int addSqlFromList(String[] item) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException
int anulaCita(long idCita) throws SQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException, ExtractSQLException
int blockDeploy(long idCita) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
Determina si el identificador de un alumno para un bloc en concreto existe
@param Collection<TuplaUsercitas>
@return 
@throws SQLException, ExtractSQLException
Collection<TuplaUsercitas> chkNoExisten(Collection<TuplaUsercitas> col) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param SqlsTupla
@return 
@throws SQLException
long createSql(SqlsTupla tu) throws SQLException {}  
eresframe.reservas.LinkDB

@return 
@throws SQLException, ExtractSQLException
int delAllCitasOrfanas() throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
Elimina bloc por Id
@param long
@return 
@throws SQLException
int deleteBloc(long id) throws SQLException {}  
eresframe.reservas.LinkDB
Elimina citas por IdBloc
@param long
@return 
@throws SQLException
int deleteCitas(long id) throws SQLException {}  
eresframe.reservas.LinkDB
aplica una sentencia DELETE genérica
@param String
@return 
@throws SQLException
int deleteGeneric(String sql) throws SQLException {}  
eresframe.reservas.LinkDB
Elimina orales por ID
@param long
@return 
@throws SQLException
public int deleteOral(long id) throws SQLException {}  
eresframe.reservas.LinkDB
Elimina orales por IDBLOC
@param long
@return 
@throws SQLException
public int deleteOrals(long id) throws SQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException, ExtractSQLException
int deleteRegPorId(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
Elimina una reserva a partir del id y el identificador de un usuario
@param long
@param long
@param String
@return 
@throws SQLException, ExtractSQLException
int deleteRegPorIdYUsr(long id, long idBloc, String usr) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
Elimina sets por IdBloc
@param long
@return 
@throws SQLException
int deleteSets(long id) throws SQLException {}  
eresframe.reservas.LinkDB
Elimina usercitas por IdBloc
@param long
@return 
@throws SQLException
int deleteUsercitas(long id) throws SQLException {}  
eresframe.reservas.LinkDB
Elimina una sentencia sql de la tabla SQL. Debería llamarse delIte,SQL
@param String
@return 
@throws SQLException
int delItem(String ident) throws SQLException {}  
eresframe.reservas.LinkDB
@param Collection<TuplaUsercitas>
@return 
@throws SQLException, ExtractSQLException
Collection<String> desRegistraAlumnos(Collection<TuplaUsercitas> col) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException
boolean esquemaYaGenerado(long idCita) throws SQLException {}  
eresframe.reservas.LinkDB
@param TuplaBloc
@return 
@throws SQLException
boolean existeBloc(TuplaBloc tb) throws SQLException {}  
eresframe.reservas.LinkDB
@param long
@param String
@return 
@throws SQLException, ExtractSQLException
boolean existeCita(long idBloc, String usr) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
Determina de manera genérica si padre tiene hijos
@param String
@return 
@throws SQLException
boolean existenChilds(String sql) throws SQLException {}  
eresframe.reservas.LinkDB
@param TuplaOral
@return 
@throws SQLException
public boolean  existeOral(TuplaOral ts) throws SQLException  {}  
eresframe.reservas.LinkDB
@param TuplaSets
@return 
@throws SQLException
boolean existeSet(TuplaSets ts) throws SQLException {}  
eresframe.reservas.LinkDB
Probablemente obsoleta. La tabla SESGRUPOS no existe
@param String
@return 
@throws SQLException
public int existsSet(String nom) throws SQLException {}  
eresframe.reservas.LinkDB
@param String
@return 
@throws SQLException, ExtractSQLException
int existsSqlIdent(String ident) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
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<TuplaBloc>
@param 
@return 
@throws SQLException, ExtractSQLException
Collection<TuplaCita> extractReservasXBloc(Collection<TuplaBloc> col, String usr) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param String
@return 
@throws SQLException, ExtractSQLException
protected String extractSql(String ident) throws SQLException, ExtractSQLException  {}  
eresframe.reservas.LinkDB
Devuelve todos los blocs
@param String
@param int
@param String
@param String
@return 
@throws SQLException, ExtractSQLException
public Collection<TuplaBloc> fetchAllBlocs(String nom, int activo, String dia, String diaFin) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB

@return 
@throws SQLException, ExtractSQLException
public Collection fetchAllOrales() throws SQLException, ExtractSQLException  {}  
eresframe.reservas.LinkDB
Recibe un sql y lo transforma en una coleccion de IPSTableRows,
 que básicamente son MAPs de PSRows. Esto permite generar Tablas de HTML
 similares a las de psTable de javascript realizada por PS.
 Probablemente esté obsoleto. Al menos la tendencia en las diferentes aplicaciones era substituir el sistema de tabulado por uno basado en KnockOut. PSTable creo que está desfasado.
@param String
@return 
@throws SQLException
public Collection<IPSTableRow> fetchAsIPSTableRows(String sql) throws SQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws ExtractSQLException, SQLException
public TuplaBloc fetchBlocPorId(long id) throws ExtractSQLException, SQLException {}  
eresframe.reservas.LinkDB
@param String[]
@return 
@throws SQLException, ExtractSQLException
Collection<TuplaBloc> fetchBlocsUserOwned(String[] ides) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param String
@return 
@throws SQLException, ExtractSQLException
Collection fetchBlocsXUser(String usr) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB

@return 
@throws SQLException, ExtractSQLException
public Collection<TuplaCitaExt> fetchCitasOrfanas() throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException, ExtractSQLException
Collection<TuplaUsercitas> fetchCitasSinReservaXBloc(long idBloc) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException, ExtractSQLException
Collection fetchCitasXBloc(long idBloc) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException, ExtractSQLException
Collection fetchCitasXSet(long idSet) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException, ExtractSQLException
TuplaCita fetchCitaXId(long idCita) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param long
@param String
@param String
@return 
@throws SQLException, ExtractSQLException
TuplaCita fetchCitaXIdDiaHora(long idCita, String dia, String horaIni) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
Obtiene listado de orales desplegados por cita
@param long
@return 
@throws SQLException, ExtractSQLException
Collection fetchDeployedOralesPorIdCita(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
Obtiene las citas desplegadas
@param long
@return 
@throws SQLException, ExtractSQLException
Collection fetchDeployedOralesPorIdSet(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param int
@return 
@throws SQLException, ExtractSQLException
public Collection<TuplaSetsExt> fetchExtSets(int activo) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param long
@param String
@param String
@param int
@return 
@throws SQLException, ExtractSQLException
Collection<TuplaSetsExt> fetchExtSets(long idBloc, String nom, String lloc, int activo) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param String
@param long
@return 
@throws SQLException, ExtractSQLException
long fetchIdUsuarioFromNom(String usr, long idBloc) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB

@return 
@throws SQLException
public Collection fetchOralesActivos() throws SQLException  {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException, ExtractSQLException
public TuplaOral fetchOralPorId(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param Collection<Long>
@return 
@throws SQLException, ExtractSQLException
String fetchOrfanBloc(Collection<Long> idBlocs) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param ICitas
@return 
@throws SQLException, ExtractSQLException
int fetchPlazasMaximasXCita(ICitas pc) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException, ExtractSQLException
int fetchPreparacioCita(long idCita) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
Extrae las Tuplas Usercitas para la pantalla de visualización de alumnos registrados
@param String
@param long
@return 
@throws SQLException, ExtractSQLException
public Collection<TuplaUsercitas> fetchRegs(String usr, long idBloc) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
Función antigua para generar tablas de datos a partir de la info de una tabla. Probablemente obsoleta
 fetchResultSet se diferencia de getResultSet en que aquél acepta una matriz
 de Strings para los botones
@param String
@param String[][]
@return 
@throws SQLException
public String fetchResultSet(String sql, String[][] bots) throws SQLException    {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException, ExtractSQLException
TuplaSets fetchSetPorId(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param int
@return 
@throws SQLException
public Collection fetchSets(int activos) throws SQLException  {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException, ExtractSQLException
Collection fetchUndeployOralesPorIdSet(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException, ExtractSQLException
Collection fetchUsrsXBlocSinCita(long idBloc) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException, ExtractSQLException
TuplaUsercitas fetchUsuarioFromId(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param String
@return 
@throws SQLException, ExtractSQLException
public Collection<TuplaUsercitas> fetchUsuarioFromIdentificador(String ident) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException
Collection<String> fetchUsuarisConReservaXBloc(long idBloc) throws SQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException
public Collection<TuplaUsercitas> fetchUsuarisXBloc(long idBloc) throws SQLException {}  
eresframe.reservas.LinkDB
@param long
@param long
@param String
@param int
@param boolean
@return 
@throws SQLException, ExtractSQLException
public Collection<TuplaCitaExt> filtraOcupacionCitas(long idBloc, long idSet, String nom, int asignados, boolean all) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
Extrae los orales por diferentes argumentos
@param int
@param long
@param long
@param String
@param long
@return 
@throws SQLException, ExtractSQLException
public Collection<TuplaOral> filtraOrales(int activo, long sesion, long idSet, String dia, long idBloc) throws SQLException, ExtractSQLException  {}  
eresframe.reservas.LinkDB
@param long
@param long
@param long
@param TuplaOral
@param Collection
@return 
@throws SQLException, ExtractSQLException
int generaEsquema(long idBloc, long idSet, long idCita, TuplaOral tupla, Collection col) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
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 String getResultSet(String sql, String mod, String del, String xtra) throws SQLException    {}  
eresframe.reservas.LinkDB
No implementado. No tengo claro que sea necesario
@param long
@return 
@throws 
int hasChildren(long id) {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException, ExtractSQLException
public boolean hayCitasEnOral(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param SimtestdatRec
@return 
@throws SQLException
public boolean isAlumnoRegistered(SimtestdatRec sdr) throws SQLException  {}  
eresframe.reservas.LinkDB

@return 
@throws SQLException
public LinkDB() throws SQLException  {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException, ExtractSQLException
public Collection<TuplaCitaExt> listOcupacionCitasPorIdBloc(long idBloc) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
Lista citas por el Id Oral
@param long
@return 
@throws SQLException
public Collection<TuplaCitaExt> listOcupacionCitasPorIdOral(long id) throws SQLException  {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException
public Collection listOcupacionCitasPorIdOralOrdenByNom(long id) throws SQLException  {}  
eresframe.reservas.LinkDB
Carga las sentencias SQL que están en el archivo sqls.txt
@param long
@return 
@throws SQLException
public Collection<TuplaCitaExt> listOcupacionSetPorId(long id) throws SQLException {}  
eresframe.reservas.LinkDB
@param int
@return 
@throws SQLException
Collection loadBlocs(int activos) throws SQLException {}  
eresframe.reservas.LinkDB
Pone el campo ACTIVO de la tabla ORALES  on/off
@param long
@param boolean
@return 
@throws SQLException, ExtractSQLException
public int OralOnOff(long id, boolean onOff) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException
int recuperaEsquemaXBloc(long id) throws SQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException
int recuperaEsquemaXCita(long id) throws SQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException
int recuperaEsquemaXSet(long id) throws SQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException, ExtractSQLException
int reGeneraEsquema(long idCita) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param Collection
@return 
@throws SQLException, ExtractSQLException
int registraAlumnos(Collection col) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param SimtestdatFile
@return 
@throws SQLException
public int registraFile(SimtestdatFile sdf) throws SQLException {}  
eresframe.reservas.LinkDB
@param long
@param String
@return 
@throws SQLException, ExtractSQLException
int reservaCita(long idCita, String usr) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param ICitas
@param String
@param int
@return 
@throws SQLException, ExtractSQLException
int reservaPlaza(ICitas pc, String usr, int plazasMax) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
Ejecuta un UPDATE genérico a partir de una SQL
@param String
@return 
@throws SQLException
int runUpdate(String sql) throws SQLException {}  
eresframe.reservas.LinkDB
@param TuplaBloc
@return 
@throws SQLException
int saveBloc(TuplaBloc tb) throws SQLException {}  
eresframe.reservas.LinkDB
@param TuplaOral
@return 
@throws SQLException
public int saveOral(TuplaOral ts) throws SQLException  {}  
eresframe.reservas.LinkDB
Probablemente obsoleta. La tabla SESGRUPOS no existe
@param String
@param String
@return 
@throws SQLException
public int saveSesGrup(String nom, String lloc) throws SQLException {}  
eresframe.reservas.LinkDB
@param TuplaSets
@return 
@throws SQLException
int saveSet(TuplaSets ts) throws SQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException, ExtractSQLException
Collection selectCitasLibresXBloc(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param long
@param String
@return 
@throws SQLException, ExtractSQLException
Collection selectCitasXBloc(long id, String usr) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException, ExtractSQLException
Collection selectPlazasLibresXBloc(long id) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param long
@param boolean
@return 
@throws SQLException, ExtractSQLException
public int setsOnOff(long id, boolean onOff) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB

@return 
@throws SQLException, ExtractSQLException
Collection<SqlsTupla> showSqls() throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException
int undeployXIdBloc(long id) throws SQLException {}  
eresframe.reservas.LinkDB
Elimina las citas correspondientes a un oral
@param long
@return 
@throws SQLException
int undeployXIdCita(long id) throws SQLException {}  
eresframe.reservas.LinkDB
@param long
@return 
@throws SQLException
int undeployXIdSet(long id) throws SQLException {}  
eresframe.reservas.LinkDB
@param Collection<TuplaUsercitas>
@return 
@throws SQLException
Collection<TuplaUsercitas> updateAlumnos(Collection<TuplaUsercitas> col) throws SQLException {}  
eresframe.reservas.LinkDB
@param TuplaBloc
@return 
@throws SQLException
int updateBloc(TuplaBloc tb) throws SQLException {}  
eresframe.reservas.LinkDB
@param String
@param String
@return 
@throws SQLException
public int updateMail(String user, String usrMail) throws SQLException {}  
eresframe.reservas.LinkDB
Actualiza la información de un oral
@param TuplaOral
@return 
@throws SQLException
public int updateOral(TuplaOral ts) throws SQLException  {}  
eresframe.reservas.LinkDB
@param TuplaSets
@return 
@throws SQLException
int updateSet(TuplaSets ts) throws SQLException {}  
eresframe.reservas.LinkDB
@param String
@param String
@param String
@return 
@throws SQLException
public int updateSql(String ident, String value, String field) throws SQLException {}  
eresframe.reservas.LinkDB
@param String[]
@return 
@throws SQLException, ExtractSQLException
int updateSqlFromList(String[] item) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param String
@param String
@return 
@throws SQLException, ExtractSQLException
int updateSqlRecord(String ident, String sql) throws SQLException, ExtractSQLException {}  
eresframe.reservas.LinkDB
@param TuplaUsercitas
@return 
@throws SQLException
boolean updateUsuario(TuplaUsercitas tu) throws SQLException {}