edu.cmu.mafia.Server
Interface MyDatabaseRemote


public interface MyDatabaseRemote

Remote interface for MyDatabase.


Method Summary
 int addMessage(MyMessage msg)
           
 java.sql.Connection connectDB()
          Business method
 int countuser()
          Business method
 java.lang.String getMessages(int group_id)
           
 boolean loginuser(java.lang.String username, java.lang.String password)
          Business method
 int logoutuser(java.lang.String username, int session)
          Business method
 int nextMsgNumber(int group_id)
           
 boolean registeruser(java.lang.String username, java.lang.String password)
          Business method
 

Method Detail

connectDB

java.sql.Connection connectDB()
                              throws java.sql.SQLException,
                                     java.rmi.RemoteException
Business method

Throws:
java.sql.SQLException
java.rmi.RemoteException

logoutuser

int logoutuser(java.lang.String username,
               int session)
               throws java.rmi.RemoteException
Business method

Throws:
java.rmi.RemoteException

loginuser

boolean loginuser(java.lang.String username,
                  java.lang.String password)
                  throws java.rmi.RemoteException
Business method

Throws:
java.rmi.RemoteException

registeruser

boolean registeruser(java.lang.String username,
                     java.lang.String password)
                     throws java.rmi.RemoteException
Business method

Throws:
java.rmi.RemoteException

countuser

int countuser()
              throws java.rmi.RemoteException
Business method

Throws:
java.rmi.RemoteException

addMessage

int addMessage(MyMessage msg)
               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getMessages

java.lang.String getMessages(int group_id)
                             throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

nextMsgNumber

int nextMsgNumber(int group_id)
                  throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException


Copyright (c) 2006 FaultTerminators. All Rights Reserved.