Java Doc for JDBCWorkflowStore.java in  » Workflow-Engines » OSWorkflow » com » opensymphony » workflow » spi » jdbc » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » OSWorkflow » com.opensymphony.workflow.spi.jdbc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.opensymphony.workflow.spi.jdbc.JDBCWorkflowStore

All known Subclasses:   com.opensymphony.workflow.spi.jdbc.MySQLWorkflowStore,
JDBCWorkflowStore
public class JDBCWorkflowStore implements WorkflowStore(Code)
JDBC implementation.

The following properties are all required:

  • datasource - the JNDI location for the DataSource that is to be used.
  • entry.sequence - SQL query that returns the next ID for a workflow entry
  • entry.table - table name for workflow entry
  • entry.id - column name for workflow entry ID field
  • entry.name - column name for workflow entry name field
  • entry.state - column name for workflow entry state field
  • step.sequence - SQL query that returns the next ID for a workflow step
  • history.table - table name for steps in history
  • current.table - table name for current steps
  • step.id - column name for step ID field
  • step.entryId - column name for workflow entry ID field (foreign key relationship to [entry.table].[entry.id])
  • step.stepId - column name for step workflow definition step field
  • step.actionId - column name for step action field
  • step.owner - column name for step owner field
  • step.caller - column name for step caller field
  • step.startDate - column name for step start date field
  • step.dueDate - column name for optional step due date field
  • step.finishDate - column name for step finish date field
  • step.status - column name for step status field
  • currentPrev.table - table name for the previous IDs for current steps
  • historyPrev.table - table name for the previous IDs for history steps
  • step.previousId - column name for step ID field (foreign key relation to [history.table].[step.id] or [current.table].[step.id])

author:
   Pat Lightbody


Field Summary
protected  booleancloseConnWhenDone
    
protected  StringcurrentPrevTable
    
protected  StringcurrentTable
    
protected  DataSourceds
    
protected  StringentryId
    
protected  StringentryName
    
protected  StringentrySequence
    
protected  StringentryState
    
protected  StringentryTable
    
protected  StringhistoryPrevTable
    
protected  StringhistoryTable
    
protected  StringstepActionId
    
protected  StringstepCaller
    
protected  StringstepDueDate
    
protected  StringstepEntryId
    
protected  StringstepFinishDate
    
protected  StringstepId
    
protected  StringstepOwner
    
protected  StringstepPreviousId
    
protected  StringstepSequence
    
protected  StringstepStartDate
    
protected  StringstepStatus
    
protected  StringstepStepId
    


Method Summary
protected  voidaddPreviousSteps(Connection conn, long id, long[] previousIds)
    
public  booleancheckIfORExists(NestedExpression nestedExpression)
    
protected  voidcleanup(Connection connection, Statement statement, ResultSet result)
    
public  StepcreateCurrentStep(long entryId, int wfStepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds)
    
protected  longcreateCurrentStep(Connection conn, long entryId, int wfStepId, String owner, Date startDate, Date dueDate, String status)
    
public  WorkflowEntrycreateEntry(String workflowName)
    
 voiddoNestedNaturalJoin(WorkflowExpressionQuery e, NestedExpression nestedExpression, StringBuffer columns, StringBuffer where, StringBuffer whereComp, List values, List queries, StringBuffer orderBy)
    
public  ListfindCurrentSteps(long entryId)
    
public  WorkflowEntryfindEntry(long theEntryId)
    
public  ListfindHistorySteps(long entryId)
    
protected  ConnectiongetConnection()
    
protected  longgetNextEntrySequence(Connection c)
    
protected  longgetNextStepSequence(Connection c)
    
public  PropertySetgetPropertySet(long entryId)
    
public  voidinit(Map props)
    
public  StepmarkFinished(Step step, int actionId, Date finishDate, String status, String caller)
    
public  voidmoveToHistory(Step step)
    
public  Listquery(WorkflowExpressionQuery e)
    
public  Listquery(WorkflowQuery query)
    
public  voidsetEntryState(long id, int state)
    

Field Detail
closeConnWhenDone
protected boolean closeConnWhenDone(Code)



currentPrevTable
protected String currentPrevTable(Code)



currentTable
protected String currentTable(Code)



ds
protected DataSource ds(Code)



entryId
protected String entryId(Code)



entryName
protected String entryName(Code)



entrySequence
protected String entrySequence(Code)



entryState
protected String entryState(Code)



entryTable
protected String entryTable(Code)



historyPrevTable
protected String historyPrevTable(Code)



historyTable
protected String historyTable(Code)



stepActionId
protected String stepActionId(Code)



stepCaller
protected String stepCaller(Code)



stepDueDate
protected String stepDueDate(Code)



stepEntryId
protected String stepEntryId(Code)



stepFinishDate
protected String stepFinishDate(Code)



stepId
protected String stepId(Code)



stepOwner
protected String stepOwner(Code)



stepPreviousId
protected String stepPreviousId(Code)



stepSequence
protected String stepSequence(Code)



stepStartDate
protected String stepStartDate(Code)



stepStatus
protected String stepStatus(Code)



stepStepId
protected String stepStepId(Code)





Method Detail
addPreviousSteps
protected void addPreviousSteps(Connection conn, long id, long[] previousIds) throws SQLException(Code)



checkIfORExists
public boolean checkIfORExists(NestedExpression nestedExpression)(Code)



cleanup
protected void cleanup(Connection connection, Statement statement, ResultSet result)(Code)



createCurrentStep
public Step createCurrentStep(long entryId, int wfStepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException(Code)



createCurrentStep
protected long createCurrentStep(Connection conn, long entryId, int wfStepId, String owner, Date startDate, Date dueDate, String status) throws SQLException(Code)



createEntry
public WorkflowEntry createEntry(String workflowName) throws StoreException(Code)



doNestedNaturalJoin
void doNestedNaturalJoin(WorkflowExpressionQuery e, NestedExpression nestedExpression, StringBuffer columns, StringBuffer where, StringBuffer whereComp, List values, List queries, StringBuffer orderBy)(Code)



findCurrentSteps
public List findCurrentSteps(long entryId) throws StoreException(Code)



findEntry
public WorkflowEntry findEntry(long theEntryId) throws StoreException(Code)



findHistorySteps
public List findHistorySteps(long entryId) throws StoreException(Code)



getConnection
protected Connection getConnection() throws SQLException(Code)



getNextEntrySequence
protected long getNextEntrySequence(Connection c) throws SQLException(Code)



getNextStepSequence
protected long getNextStepSequence(Connection c) throws SQLException(Code)



getPropertySet
public PropertySet getPropertySet(long entryId)(Code)



init
public void init(Map props) throws StoreException(Code)



markFinished
public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) throws StoreException(Code)



moveToHistory
public void moveToHistory(Step step) throws StoreException(Code)



query
public List query(WorkflowExpressionQuery e) throws StoreException(Code)



query
public List query(WorkflowQuery query) throws StoreException(Code)



setEntryState
public void setEntryState(long id, int state) throws StoreException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.