|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Database Connection Inteface between Server and Database
Category: Baseline
Inherits from: Client:
Method Summary | |
int |
GetConnection(int serverId,
int userId)
Authenticates the user into the File Server database [Category: Baseline] [Clients: ] |
boolean |
RelaseConnection(int serverId,
int conId)
Relase the connection between Server and Database [Category: Baseline] [Clients: ] |
Method Detail |
public int GetConnection(int serverId, int userId)
serverId
- the identification of a serveruserId
- the identification of a user who requests for authentication
LimitedConnection
- if the number of connections from server to database excesses a limit
InvalidServerId
- if serverId is not valid
AuthenticationDuplicated
- if a user has already log in.
ConnectionFail
- if database connection is closed in transactionpublic boolean RelaseConnection(int serverId, int conId)
serverId
- the identification of a server which has a connection to databaseconId
- the identification of a connection between Server and Database
NoSuchConnection
- if there is no such connection
InvalidServerId
- if serverId is not valid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |