-
Notifications
You must be signed in to change notification settings - Fork 0
databaseDoc
Erik Terres edited this page Oct 18, 2019
·
2 revisions
El paquete Database es el paquete del servidor encargado de manejar los temas de las bases de datos.
Descripción: Esta clase deberá hacer algo y algo más.
| Nombre del Método | Parametros Formales | Return Type | Descripción |
|---|---|---|---|
| getWhereEqualsClause | String[] columnNames, String[] data | String | Recibe un conjunto de nombres de columnas y datos y devuelve una cadena de texto juntandolo con iguales y ANDs. e.g. "WHERE a='s' AND b='c'" |
| getUpdateQuery | String table, String[] columnNames, String[] values | String | Esta funcion hace algo que no he definido |
| getUpdateQuery | String table, String[] columnNames, String[] values, String conditions | String | Esta funcion hace algo que no he definido |
| getInsertQuery | String table, String[] columnNames, String[] values | String | Esta funcion hace algo que no he definido |
| getInsertQuery | String table, String[] columnNames, String[] values, String conditions | String | Esta funcion hace algo que no he definido |
| getSelectQuery | String table, String[] columnNames | String | Esta funcion hace algo que no he definido |
| getSelectQuery | String table, String[] columnNames, String conditions | String | Esta funcion hace algo que no he definido |
| getSelectAllQuery | String table | String | Esta funcion hace algo que no he definido |
| getSelectAllQuery | String table, String conditions | String | Esta funcion hace algo que no he definido |
| getDeleteQuery | String table, String conditions | String | Esta funcion hace algo que no he definido |
Descripción: Esta clase deberá hacer algo y algo más.
| Nombre del Método | Parametros Formales | Return Type | Descripción |
|---|---|---|---|
| connectToDatabase | String direction, String user, String pass | Connection | Establece una conexion y la devuelve como objeto |
| execUpdate | Connection connection, String query | void | Ejecuta una query sin retorno(INSERT, UPDATE, ...). throw SQLException |
| getExecQuery | Connection connection, String query | ResultSet | Ejecuta una query con retorno(SELECT, ...). throw SQLException |
| getEntryFromDatabase | Connection connection, String table, String column, String conditions | String | Obtiene un valor de una columna de una tabla. throw SQLException |
| insertEntryIntoDatabase | Connection connection, String table, String[] columnNames, String[] values | void | Inserta una entrada en una tabla. throw SQLException |
| updateEntryFromDatabase | Connection connection, String table, String[] columnNames, String[] values, String conditions | void | Edita una entrada en una tabla. throw SQLException |