android/src/main/java/com/genexus/db/LocalUserInformation.java
/*
	protected void putConnection(String dataSourceName, GXConnection rwConnection, GXConnection roConnection, String user, String password)
	{
		connections.put(dataSourceName, new ConnectionInformation(rwConnection, roConnection, user, password));
	}
*/
protected void putConnection(String dataSourceName, GXConnection rwConnection, GXConnection roConnection, String user, String password)
{
connections.put(dataSourceName, new ConnectionInformation(rwConnection, roConnection, user, password));
}
protected void putConnection ( String dataSourceName GXConnection rwConnection GXConnection roConnection String user String password ) { connections . put ( dataSourceName new ConnectionInformation ( rwConnection roConnection user password )) ; }
public void disconnect() throws SQLException
	{
		for (Enumeration en = connections.elements(); en.hasMoreElements(); )
		{
			ConnectionInformation info = (ConnectionInformation) en.nextElement();
			if	(info.rwConnection != null)
			{
				try
				{
					info.rwConnection.close();
				}
				catch (SQLException e)
				{
					System.err.println("Error while closing a db connection " + e.getMessage());
				}
				finally
				{
					info.rwConnection = null;
				}
			}
		}
	}
public void disconnect ( ) throws SQLException { for ( Enumeration en = connections . elements ( ) ; en . hasMoreElements ( ) ; ) { ConnectionInformation info = ( ConnectionInformation ) en . nextElement ( ) ; if ( info . rwConnection != null ) { try { info . rwConnection . close ( ) ; } catch ( SQLException e ) { System . err . println ( "Error while closing a db connection " + e . getMessage ( ) ) ; } finally { info . rwConnection = null ; } } } }
protected void putConnection(String dataSourceName, GXConnection rwConnection, GXConnection roConnection, String user, String password)
{
connections.put(dataSourceName, new ConnectionInformation(rwConnection, roConnection, user, password));
}
protected void putConnection ( String dataSourceName GXConnection rwConnection GXConnection roConnection String user String password ) { connections . put ( dataSourceName new ConnectionInformation ( rwConnection roConnection user password )) ; }
// Si no pongo esto en null siempre, si da un error al desconectarse despues // quiere volver a usar esta conexion. Es mejor que quede la otra conexion // en banda que que cancele le aplicacion...