|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datacrow.core.wf.WorkFlow
public class WorkFlow
Separation between the UI and the Data layer; allows the GUI to communicate with the DatabaseManager.
Method Summary | |
---|---|
static boolean |
checkUniqueness(DcObject o,
boolean isExisting)
Checks the database to see if the item already exists. |
java.util.List<DcObject> |
convert(java.sql.ResultSet rs,
int[] requestedFields)
Converts the result set to a collection of items. |
static void |
delete(DcObject o)
Deletes the item from the database. |
static WorkFlow |
getInstance()
|
static void |
handleRequests(Requests requests,
boolean qryWasSuccess)
Handles the requests. |
static void |
insert(DcObject o)
Saves the item to the database. |
static void |
setValues(java.sql.ResultSet rs,
DcObject item,
int[] fields,
int[] requestedFields)
|
static void |
update(DcObject o)
Updates the item in the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static WorkFlow getInstance()
public static void insert(DcObject o)
o
- public static void update(DcObject o)
o
- public static void delete(DcObject o)
o
- public static void handleRequests(Requests requests, boolean qryWasSuccess)
objects
- requests
- qryWasSuccess
- public static boolean checkUniqueness(DcObject o, boolean isExisting)
o
- The item to check.isExisting
- Indicates if the check is performed for a new or an existing item.public java.util.List<DcObject> convert(java.sql.ResultSet rs, int[] requestedFields)
rs
- An unclosed SQL result set.
public static void setValues(java.sql.ResultSet rs, DcObject item, int[] fields, int[] requestedFields)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |