com.mymed.controller.core.manager.connection
Interface IConnection

All Known Implementing Classes:
Connection

public interface IConnection

Interface to have a common set of methods in case we want to implement a different class of connections for mymed.

Author:
Milo Casagrande

Method Summary
 void close()
          Close the connection to the database
 void flush()
          Flush the connection, resetting its internal state
 java.lang.String getAddress()
          Get the address in use with the connection
 int getPort()
          Get the port in use with the connection
 boolean isOpen()
          Check if the connection is open or not
 void open()
          Open the connection to the database
 

Method Detail

open

void open()
          throws InternalBackEndException
Open the connection to the database

Throws:
InternalBackEndException - when there is a problem opening the connection

close

void close()
Close the connection to the database


isOpen

boolean isOpen()
Check if the connection is open or not

Returns:
true if the connection is open, false otherwise

getAddress

java.lang.String getAddress()
Get the address in use with the connection

Returns:
the address associated with the connection

getPort

int getPort()
Get the port in use with the connection

Returns:
the port associated with the connection

flush

void flush()
Flush the connection, resetting its internal state