|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rjw.dc.wf.WorkFlow
This is the layer between the UI and the database. Checks for data integrity and checks on bussiness rules are done here
Constructor Summary | |
WorkFlow()
|
Method Summary | |
boolean |
checkUniqueness(DataCrowObject o,
boolean bUpdate)
Checks if the object is unique |
static java.util.Vector |
createDataCrowObjectArray(java.sql.ResultSet result)
Converts a resultset to a DataCrowObject Vector |
void |
deleteCollection(DataCrowCollection collection,
RequestorCollection requestors)
|
void |
deleteValues(DataCrowObject o,
RequestorCollection requestors)
|
void |
displayResults(java.sql.ResultSet result,
RequestorCollection requestorObjects)
Passes requests thru to the UI ( |
void |
displayResults(java.util.Vector vTable,
RequestorCollection requestorObjects)
Passes requests thru to the UI ( |
static DataCrowObject |
getObject(int index)
|
static void |
initDatabase()
Initializes the database |
void |
insertCollection(DataCrowCollection collection,
RequestorCollection requestors)
|
void |
insertValues(DataCrowObject o,
RequestorCollection requestors)
Inserts new values. |
void |
runQuery(java.lang.String sQuery,
RequestorCollection requestors)
Runs a predefined query |
java.lang.Object |
runQueryDirect(DataCrowObject o)
Runs a query directly, bypassing the query queue |
java.lang.Object |
runQueryDirect(Query query)
Does not put the query in a queue but executes it immediately. |
java.lang.Object |
runQueryDirect(java.lang.String sQuery)
Does not put the query in a queue but executes it immediately. |
void |
searchValues(DataCrowObject o,
QueryOptions queryOptions,
RequestorCollection requestors)
Searches for values. |
void |
updateCollection(DataCrowCollection collection,
RequestorCollection requestors)
|
void |
updateValues(DataCrowObject o,
RequestorCollection requestors)
Updates values. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WorkFlow()
Method Detail |
public static DataCrowObject getObject(int index)
public static void initDatabase()
public void updateCollection(DataCrowCollection collection, RequestorCollection requestors)
public void insertCollection(DataCrowCollection collection, RequestorCollection requestors)
public void deleteCollection(DataCrowCollection collection, RequestorCollection requestors)
public void runQuery(java.lang.String sQuery, RequestorCollection requestors)
sQuery
- query statementrequestors
- requests to the UIpublic void searchValues(DataCrowObject o, QueryOptions queryOptions, RequestorCollection requestors)
o
- the object which is used as the conditionrequestors
- requestors for the result of the query (UI)public void insertValues(DataCrowObject o, RequestorCollection requestors)
o
- the object to be insertedrequestors
- requestors which depend on the outcome of the querypublic void updateValues(DataCrowObject o, RequestorCollection requestors)
o
- the object to be updatedrequestors
- requestors which depend on the outcome of the querypublic void deleteValues(DataCrowObject o, RequestorCollection requestors)
public java.lang.Object runQueryDirect(DataCrowObject o)
o
- Data Crow objectpublic java.lang.Object runQueryDirect(Query query)
public java.lang.Object runQueryDirect(java.lang.String sQuery)
sQuery
- query statementpublic void displayResults(java.util.Vector vTable, RequestorCollection requestorObjects)
vTable
- data to be shownrequestorObjects
- collection of requestspublic void displayResults(java.sql.ResultSet result, RequestorCollection requestorObjects)
result
- the result of the queryrequestorObjects
- collection of requestspublic boolean checkUniqueness(DataCrowObject o, boolean bUpdate)
bUpdate
- specifies if the object exists already in the
database or not
public static java.util.Vector createDataCrowObjectArray(java.sql.ResultSet result)
result
- raw result from a query
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |