|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjpl.eda.activity.SQLDatabaseStorage
This class enables storage of activity incidents in just about any database management system. It should support MySQL, PostgreSQL, Oracle and Sybase.
This class uses the following properties:
jpl.eda.activity.SQLDatabaseStorage.driverjpl.eda.activity.SQLDatabaseStorage.urljpl.eda.activity.SQLDatabaseStorage.userjpl.eda.activity.SQLDatabaseStorage.passwordThis class expects the following table to exist in the target
database (data types will vary depending on the vendor):
create table incidents (
activityID varchar(32) not null,
className varchar(255) not null,
occurTime bigint not null default 0,
detail text null,
primary key (activityID, className, occurTime))
| Constructor Summary | |
SQLDatabaseStorage()
Constructor given no arguments. |
|
| Method Summary | |
void |
finalize()
This method closes the database connection. |
void |
store(java.lang.String id,
java.util.List incidents)
This method stores the list of incidents for the activity in the database table named "incidents". |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SQLDatabaseStorage()
| Method Detail |
public void store(java.lang.String id,
java.util.List incidents)
store in interface Storageid - The activity identifier.incidents - A list of Incident.
public void finalize()
throws java.lang.Throwable
java.lang.Throwable - If something goes wrong.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||