|
|||||||||
| Home >> All >> org >> mortbay >> webapps >> [ jettyplus overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.mortbay.webapps.jettyplus
Class DBTest

java.lang.Objectorg.mortbay.webapps.jettyplus.DBTest
- public class DBTest
- extends java.lang.Object
DBTest
Class for demo of user transactions, datasource and jndi lookups.
Notes
Usage
| Field Summary | |
static java.lang.String |
COMMIT
|
(package private) javax.naming.Context |
context
|
(package private) javax.sql.DataSource |
datasource
|
(package private) int |
foo
|
private static org.apache.commons.logging.Log |
log
|
static java.lang.String |
ROLLBACK
|
(package private) java.lang.String |
selectString
|
(package private) java.lang.String |
updateString
|
| Constructor Summary | |
DBTest()
Constructor. |
|
| Method Summary | |
void |
doIt(java.lang.String action)
|
java.lang.String |
getFoo()
Get current value of foo |
void |
init()
|
int |
readFoo()
Read the value of foo from the db |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
log
private static org.apache.commons.logging.Log log
COMMIT
public static final java.lang.String COMMIT
- See Also:
- Constant Field Values
ROLLBACK
public static final java.lang.String ROLLBACK
- See Also:
- Constant Field Values
foo
int foo
datasource
javax.sql.DataSource datasource
context
javax.naming.Context context
selectString
java.lang.String selectString
updateString
java.lang.String updateString
| Constructor Detail |
DBTest
public DBTest()
- Constructor.
| Method Detail |
init
public void init()
doIt
public void doIt(java.lang.String action)
readFoo
public int readFoo()
- Read the value of foo from the db
getFoo
public java.lang.String getFoo()
- Get current value of foo
|
|||||||||
| Home >> All >> org >> mortbay >> webapps >> [ jettyplus overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.mortbay.webapps.jettyplus.DBTest