|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.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(DCObject o,
boolean bUpdate)
Checks if the object is unique |
static java.util.LinkedList |
createDataCrowObjectArray(java.sql.ResultSet result)
Converts a resultset to a DataCrowObject Vector |
void |
deleteCollection(DCCollection collection,
RequestorCollection requestors)
Deletes a collection of data crow objects from the database |
void |
deleteValues(DCObject o,
RequestorCollection requestors)
Deletes teh object. |
void |
displayResults(java.util.LinkedList data,
RequestorCollection requestorObjects,
boolean qryWasSuccess)
Passes requests thru to the UI ( |
static void |
initDatabase()
Initializes the database |
void |
insertCollection(DCCollection collection,
RequestorCollection requestors)
Inserts a collection of data crow objects into the database |
void |
insertValues(DCObject o,
RequestorCollection requestors)
Inserts new values. |
void |
runQuery(java.lang.String sQuery,
RequestorCollection requestors)
Runs a predefined query |
java.util.LinkedList |
runQueryDirect(DCObject o)
Runs a query directly, bypassing the query queue |
java.util.LinkedList |
runQueryDirect(Query query)
Does not put the query in a queue but executes it immediately. |
java.util.LinkedList |
runQueryDirect(java.lang.String sQuery)
Does not put the query in a queue but executes it immediately. |
java.sql.ResultSet |
runQueryDirectUnclosed(java.lang.String sQuery)
Does not put the query in a queue but executes it immediately. |
void |
searchValues(DCObject o,
QueryOptions queryOptions,
RequestorCollection requestors)
Searches for values. |
void |
updateCollection(DCCollection collection,
RequestorCollection requestors)
Updates a collection of data crow objects |
void |
updateValues(DCObject o,
RequestorCollection requestors)
Updates values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WorkFlow()
Method Detail |
public static void initDatabase()
public void updateCollection(DCCollection collection, RequestorCollection requestors)
collection
- data crow object collectionrequestors
- requests to be executed after updatepublic void insertCollection(DCCollection collection, RequestorCollection requestors)
collection
- data crow object collectionrequestors
- requests to be executed after insertpublic void deleteCollection(DCCollection collection, RequestorCollection requestors)
collection
- data crow object collectionrequestors
- requests to be executed after deletepublic void runQuery(java.lang.String sQuery, RequestorCollection requestors)
sQuery
- query statementrequestors
- requests to the UIpublic void searchValues(DCObject 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(DCObject o, RequestorCollection requestors)
o
- the object to be insertedrequestors
- requestors which depend on the outcome of the querypublic void updateValues(DCObject o, RequestorCollection requestors)
o
- the object to be updatedrequestors
- requestors which depend on the outcome of the querypublic void deleteValues(DCObject o, RequestorCollection requestors)
o
- the object to be updatedrequestors
- requestors which depend on the outcome of the querypublic java.util.LinkedList runQueryDirect(DCObject o)
o
- Data Crow objectpublic java.util.LinkedList runQueryDirect(Query query)
public java.sql.ResultSet runQueryDirectUnclosed(java.lang.String sQuery) throws java.lang.Exception
sQuery
- query statement
java.lang.Exception
public java.util.LinkedList runQueryDirect(java.lang.String sQuery)
sQuery
- query statementpublic void displayResults(java.util.LinkedList data, RequestorCollection requestorObjects, boolean qryWasSuccess)
requestorObjects
- collection of requestspublic boolean checkUniqueness(DCObject o, boolean bUpdate)
o
- object to be checkedbUpdate
- specifies if the object exists already in the
database or notpublic static java.util.LinkedList createDataCrowObjectArray(java.sql.ResultSet result)
result
- result set from a query
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |