|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjpl.eda.activity.SQLDatabaseRetrieval
This class enables retrieval of activity incidents from just about any database management system. It should support MySQL, PostgreSQL, Oracle and Sybase.
This class uses the following properties:
jpl.eda.activity.SQLDatabaseRetrieval.driverjpl.eda.activity.SQLDatabaseRetrieval.urljpl.eda.activity.SQLDatabaseRetrieval.userjpl.eda.activity.SQLDatabaseRetrieval.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 | |
SQLDatabaseRetrieval()
This constructor grabs the necessary system properties for the database connection. |
|
| Method Summary | |
static void |
main(java.lang.String[] argv)
Execute the SQLDatabaseRetrieval class via the command-line. |
java.util.List |
retrieve()
Retrieve the list of activities. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SQLDatabaseRetrieval()
| Method Detail |
public java.util.List retrieve()
throws ActivityException
retrieve in interface RetrievalStoredActivity classes.
ActivityException - If an error occurs opening or accessing the database.public static void main(java.lang.String[] argv)
argv - The command-line arguments.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||