|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.mafia.Server.MyDatabaseBean
public class MyDatabaseBean
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 |
---|
public static final int MAX_SHOW
public static final int MSG_ACK
public static final int MSG_FAIL
public java.util.Properties mEntries
Constructor Detail |
---|
public MyDatabaseBean()
Method Detail |
---|
public void setEntityContext(EntityContext ctx) throws EJBException, java.rmi.RemoteException
EJBException
java.rmi.RemoteException
public void unsetEntityContext() throws EJBException, java.rmi.RemoteException
EJBException
java.rmi.RemoteException
public void ejbRemove() throws RemoveException, EJBException, java.rmi.RemoteException
RemoveException
EJBException
java.rmi.RemoteException
public void ejbActivate() throws EJBException, java.rmi.RemoteException
EJBException
java.rmi.RemoteException
public void ejbPassivate() throws EJBException, java.rmi.RemoteException
EJBException
java.rmi.RemoteException
public void ejbLoad() throws EJBException, java.rmi.RemoteException
EJBException
java.rmi.RemoteException
protected void loadFromDB(MyDatabasePK key)
public java.sql.Connection connectDB() throws java.sql.SQLException
java.sql.SQLException
public void ejbStore() throws EJBException, java.rmi.RemoteException
EJBException
java.rmi.RemoteException
public MyDatabasePK ejbFindByPrimaryKey(MyDatabasePK key)
public void ejbPostCreate()
public void ejbPostCreate(java.lang.String username)
public MyDatabasePK ejbCreate()
public MyDatabasePK ejbCreate(java.lang.String username)
public int logoutuser(java.lang.String username, int session)
public boolean loginuser(java.lang.String username, java.lang.String password)
public boolean registeruser(java.lang.String username, java.lang.String password)
public int countuser()
public int addMessage(MyMessage msg)
public java.lang.String getMessages(int group_id)
public int nextMsgNumber(int group_id)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |