Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mortbay.webapps.jettyplus
Class DBTest  view DBTest download DBTest.java

java.lang.Object
  extended byorg.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