Java Doc for DataExecutorInterface.java in  » J2EE » Expresso » com » jcorporate » expresso » core » dataobjects » 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 » J2EE » Expresso » com.jcorporate.expresso.core.dataobjects 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.jcorporate.expresso.core.dataobjects.DataExecutorInterface

All known Subclasses:   com.jcorporate.expresso.core.dataobjects.jdbc.JDBCExecutor,
DataExecutorInterface
public interface DataExecutorInterface (Code)
This class' job is to provide an interface between DataObjects and the underlying data source. It provides the actual execution. By separating the logic, we gain the ability to do things such as have the actual Execution take place on another machine. Just write an executor facade and be done with it.
author:
   Michael Rimov
since:
   Expresso 5.0




Method Summary
public  voidadd(DataObject valueObject)
    
public  voidaddBatch(List valueObjectList)
    
public  voiddelete(DataObject valueObject)
    
public  voiddeleteAll(DataObject valueObject, boolean deleteChangedCache)
    
public  voiddeleteBatch(List valueObjectList)
    
public  voiddeleteBatch(List valueObjectList, boolean deleteWithSetFieldsOnly)
    
public  booleanretrieve(DataObject valueObject)
     Takes a DataObject and retrieves it from the underlying data source
Parameters:
  valueObject - the DataObject to add.
public  voidrunStoreProcedure(DataObject valueObject)
    
public  voidupdate(DataObject valueObject, boolean updateChangedFieldsOnly)
    
public  voidupdateAll(DataObject valueObject, boolean updateChangedCache)
    
public  voidupdateBatch(List valueObjectList)
    
public  voidupdateBatch(List valueObjectList, boolean updateChangedFieldsOnly)
    



Method Detail
add
public void add(DataObject valueObject) throws DataException, DuplicateKeyException(Code)
Takes a DataObject and adds it to the underlying data source
Parameters:
  valueObject - the DataObject to add.
throws:
  DataException - upon error adding the object to the data source
throws:
  DuplicateKeyException - if the object already existed in the datasource.



addBatch
public void addBatch(List valueObjectList) throws DataException, DuplicateKeyException(Code)
Adds an entire batch of DataObjects to the underlying data source
Parameters:
  valueObjectList - A list of DataObjects to add to the underlyingdata source
throws:
  DataException - upon error communicating with the underlying data source
throws:
  DuplicateKeyException - if one of the records was already in thedata source



delete
public void delete(DataObject valueObject) throws DataException(Code)
Takes a DataObject and deletes it from the underlying data source
Parameters:
  valueObject - the DataObject to delete.
throws:
  DataException - upon error deleting the object to the data source



deleteAll
public void deleteAll(DataObject valueObject, boolean deleteChangedCache) throws DataException(Code)
Takes a DataObject and deletes it from the underlying data source
Parameters:
  valueObject - the DataObject to delete.
throws:
  DataException - upon error deleting the objects to the data source



deleteBatch
public void deleteBatch(List valueObjectList) throws DataException(Code)
Updates an entire batch of DataObjects
Parameters:
  valueObjectList - A list of DataObjects to update to the underlyingdata source
throws:
  DataException - upon error updating the data source



deleteBatch
public void deleteBatch(List valueObjectList, boolean deleteWithSetFieldsOnly) throws DataException(Code)
Updates an entire batch of DataObjects
Parameters:
  valueObjectList - A list of DataObjects to update to the underlyingdata source
Parameters:
  updateChangedFieldsOnly - flag to signify if only fields whose valuehas changed should be included in the update.
throws:
  DataException - upon error updating the data source



retrieve
public boolean retrieve(DataObject valueObject) throws DataException(Code)
Takes a DataObject and retrieves it from the underlying data source
Parameters:
  valueObject - the DataObject to add. true if the object was successfully found, false if no objectfound that represents the criteria specified
throws:
  DataException - upon error retriving the object from the data source



runStoreProcedure
public void runStoreProcedure(DataObject valueObject) throws DataException(Code)
Takes a DataObject and run it from the underlying data source
Parameters:
  valueObject - the DataObject to run.
throws:
  DataException - upon error retriving the object from the data source



update
public void update(DataObject valueObject, boolean updateChangedFieldsOnly) throws DataException(Code)
Takes a DataObject and updates it to the underlying data source
Parameters:
  valueObject - the DataObject to update.
Parameters:
  updateChangedFieldsOnly - flag to signify if only fields whose valuehas changed should be included in the update.
throws:
  DataException - upon error updating the object to the data source



updateAll
public void updateAll(DataObject valueObject, boolean updateChangedCache) throws DataException(Code)
Takes a DataObject and updates it to the underlying data source
Parameters:
  valueObject - the DataObject to update.
Parameters:
  updateChangedFieldsOnly - flag to signify if only fields whose valuehas changed should be included in the update.
throws:
  DataException - upon error updating the object to the data source



updateBatch
public void updateBatch(List valueObjectList) throws DataException(Code)
Updates an entire batch of DataObjects
Parameters:
  valueObjectList - A list of DataObjects to update to the underlyingdata source
throws:
  DataException - upon error updating the data source



updateBatch
public void updateBatch(List valueObjectList, boolean updateChangedFieldsOnly) throws DataException(Code)
Updates an entire batch of DataObjects
Parameters:
  valueObjectList - A list of DataObjects to update to the underlyingdata source
Parameters:
  updateChangedFieldsOnly - flag to signify if only fields whose valuehas changed should be included in the update.
throws:
  DataException - upon error updating the data source



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