|
||||||||||
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 | |
static boolean |
checkUniqueness(DcObject o,
boolean bUpdate)
Checks if the object is unique |
static java.util.Collection |
convertToDCObjects(java.sql.ResultSet result)
Converts a resultset to a DataCrowObject Vector |
static void |
deleteValues(DcObject o)
Deletes the object. |
static void |
displayResults(java.util.Collection objects,
RequestCollection requestorObjects,
boolean qryWasSuccess)
Passes requests thru to the UI ( |
static void |
insertValues(DcObject o)
Inserts new values. |
static void |
restartDatabase()
Restarts the database. |
static java.util.Collection |
runQueryDirect(DcObject o,
boolean logQuery)
Runs a query directly, bypassing the query queue |
static java.util.Collection |
runQueryDirect(Query query,
boolean logQuery)
Does not put the query in a queue but executes it immediately. |
static java.util.Collection |
runQueryDirect(java.lang.String sQuery,
boolean logQuery)
Does not put the query in a queue but executes it immediately. |
static java.util.Collection |
runQueryDirect(java.lang.String sQuery,
boolean catchErrors,
boolean logQuery)
|
static java.sql.ResultSet |
runQueryDirectUnclosed(java.lang.String sQuery)
Does not put the query in a queue but executes it immediately. |
static void |
searchValues(DcObject o,
QueryOptions queryOptions)
Searches for values. |
static void |
startDatabase()
starts the database if not running |
static void |
updateValues(DcObject o)
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 startDatabase()
public static void restartDatabase()
public static void searchValues(DcObject o, QueryOptions queryOptions)
o
- the object which is used as the conditionpublic static void insertValues(DcObject o)
o
- the object to be insertedpublic static void updateValues(DcObject o)
o
- the object to be updatedpublic static void deleteValues(DcObject o)
o
- the object to be updatedpublic static java.util.Collection runQueryDirect(java.lang.String sQuery, boolean catchErrors, boolean logQuery) throws java.lang.Exception
java.lang.Exception
public static java.util.Collection runQueryDirect(DcObject o, boolean logQuery)
o
- Data Crow objectpublic static java.util.Collection runQueryDirect(Query query, boolean logQuery)
public static java.sql.ResultSet runQueryDirectUnclosed(java.lang.String sQuery) throws java.lang.Exception
sQuery
- query statement
java.lang.Exception
public static java.util.Collection runQueryDirect(java.lang.String sQuery, boolean logQuery)
sQuery
- query statementpublic static void displayResults(java.util.Collection objects, RequestCollection requestorObjects, boolean qryWasSuccess)
requestorObjects
- collection of requestspublic static 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.Collection convertToDCObjects(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 |