public class DatabaseBean extends Object implements javax.ejb.SessionBean
| Modifier and Type | Field and Description |
|---|---|
javax.ejb.SessionContext |
context |
InitialContext |
jndiContext |
| Constructor and Description |
|---|
DatabaseBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
ejbActivate() |
void |
ejbCreate() |
void |
ejbPassivate() |
void |
ejbRemove() |
boolean |
execute(String statement) |
void |
executeQuery(String statement) |
void |
setSessionContext(javax.ejb.SessionContext cntx) |
public javax.ejb.SessionContext context
public InitialContext jndiContext
public void ejbCreate()
throws javax.ejb.CreateException
javax.ejb.CreateExceptionpublic void executeQuery(String statement) throws SQLException
SQLExceptionpublic boolean execute(String statement) throws SQLException
SQLExceptionpublic void ejbPassivate()
ejbPassivate in interface javax.ejb.SessionBeanpublic void ejbActivate()
ejbActivate in interface javax.ejb.SessionBeanpublic void ejbRemove()
ejbRemove in interface javax.ejb.SessionBeanpublic void setSessionContext(javax.ejb.SessionContext cntx)
setSessionContext in interface javax.ejb.SessionBeanCopyright © 1999–2017 The Apache Software Foundation. All rights reserved.