edu.cmu.mafia.Server
Class MyDatabaseBean

java.lang.Object
  extended by edu.cmu.mafia.Server.MyDatabaseBean

public class MyDatabaseBean
extends java.lang.Object


Field Summary
static int MAX_SHOW
           
 java.util.Properties mEntries
           
static int MSG_ACK
           
static int MSG_FAIL
           
 
Constructor Summary
MyDatabaseBean()
           
 
Method Summary
 int addMessage(MyMessage msg)
           
 java.sql.Connection connectDB()
          Business method
 int countuser()
          Business method
 void ejbActivate()
           
 MyDatabasePK ejbCreate()
           
 MyDatabasePK ejbCreate(java.lang.String username)
           
 MyDatabasePK ejbFindByPrimaryKey(MyDatabasePK key)
           
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate()
           
 void ejbPostCreate(java.lang.String username)
           
 void ejbRemove()
           
 void ejbStore()
           
 java.lang.String getMessages(int group_id)
           
protected  void loadFromDB(MyDatabasePK key)
           
 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
 void setEntityContext(EntityContext ctx)
           
 void unsetEntityContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_SHOW

public static final int MAX_SHOW
See Also:
Constant Field Values

MSG_ACK

public static final int MSG_ACK
See Also:
Constant Field Values

MSG_FAIL

public static final int MSG_FAIL
See Also:
Constant Field Values

mEntries

public java.util.Properties mEntries
Constructor Detail

MyDatabaseBean

public MyDatabaseBean()
Method Detail

setEntityContext

public void setEntityContext(EntityContext ctx)
                      throws EJBException,
                             java.rmi.RemoteException
Throws:
EJBException
java.rmi.RemoteException

unsetEntityContext

public void unsetEntityContext()
                        throws EJBException,
                               java.rmi.RemoteException
Throws:
EJBException
java.rmi.RemoteException

ejbRemove

public void ejbRemove()
               throws RemoveException,
                      EJBException,
                      java.rmi.RemoteException
Throws:
RemoveException
EJBException
java.rmi.RemoteException

ejbActivate

public void ejbActivate()
                 throws EJBException,
                        java.rmi.RemoteException
Throws:
EJBException
java.rmi.RemoteException

ejbPassivate

public void ejbPassivate()
                  throws EJBException,
                         java.rmi.RemoteException
Throws:
EJBException
java.rmi.RemoteException

ejbLoad

public void ejbLoad()
             throws EJBException,
                    java.rmi.RemoteException
Throws:
EJBException
java.rmi.RemoteException

loadFromDB

protected void loadFromDB(MyDatabasePK key)

connectDB

public java.sql.Connection connectDB()
                              throws java.sql.SQLException
Business method

Throws:
java.sql.SQLException

ejbStore

public void ejbStore()
              throws EJBException,
                     java.rmi.RemoteException
Throws:
EJBException
java.rmi.RemoteException

ejbFindByPrimaryKey

public MyDatabasePK ejbFindByPrimaryKey(MyDatabasePK key)

ejbPostCreate

public void ejbPostCreate()

ejbPostCreate

public void ejbPostCreate(java.lang.String username)

ejbCreate

public MyDatabasePK ejbCreate()

ejbCreate

public MyDatabasePK ejbCreate(java.lang.String username)

logoutuser

public int logoutuser(java.lang.String username,
                      int session)
Business method


loginuser

public boolean loginuser(java.lang.String username,
                         java.lang.String password)
Business method


registeruser

public boolean registeruser(java.lang.String username,
                            java.lang.String password)
Business method


countuser

public int countuser()
Business method


addMessage

public int addMessage(MyMessage msg)

getMessages

public java.lang.String getMessages(int group_id)

nextMsgNumber

public int nextMsgNumber(int group_id)


Copyright (c) 2006 FaultTerminators. All Rights Reserved.