|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This example application creates a conmponent which makes use of a JdbcDataSource to connect to a Hypersonic SQL database. It then adds a row to a table that it creates displaying a list of all the rows in the table. Note, this code ignores exceptions to keep the code simple.
Field Summary | |
static java.lang.String |
ROLE
The lookup key for the HelloDBService |
Method Summary | |
void |
addRow(java.lang.String title)
Adds a single row to the database. |
void |
deleteRows()
Ask the component to delete all rows in the database. |
void |
logRows()
Ask the component to log all of the rows in the database to the logger with the info log level. |
Field Detail |
public static final java.lang.String ROLE
Method Detail |
public void addRow(java.lang.String title)
title
- The title for the row.public void deleteRows()
public void logRows()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |