Java Doc for LightPersistency.java in  » Database-ORM » ODAL » com » completex » objective » components » persistency » 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 » Database ORM » ODAL » com.completex.objective.components.persistency 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.completex.objective.components.persistency.LightPersistency

LightPersistency
public interface LightPersistency extends Persistency0,InsertPersistency,SelectPersistency(Code)

author:
   Gennady Krizhevsky




Method Summary
 intdelete(PersistentObject persistentObject)
     Delete persistent object by primary key
Parameters:
  persistentObject - number of row affected.
 intdelete(PersistentObject persistentObject, LifeCycleController controller)
     Delete persistent object by primary key
Parameters:
  persistentObject -
Parameters:
  controller - number of row affected.
 int[]delete(Collection persistentObjects)
    
 intdeleteByExample(PersistentObject persistentObject)
     Deletes persistent object "by example" PersistentObject.
 intdeleteByExample(PersistentObject persistentObject, LifeCycleController controller)
     Deletes persistent object "by example" PersistentObject.
 intdeleteByExample(PersistentObject persistentObject, int limit)
     Deletes persistent object "by example" PersistentObject.
 intdeleteByExample(PersistentObject persistentObject, LifeCycleController controller, int limit)
     Deletes persistent object "by example" PersistentObject.
 intexecuteUpdate(String sql, Parameters parameters)
     Execute ad-hoc data modifying sql.
Parameters:
  sql - SQL statement to execute
Parameters:
  parameters - parameters number of row affected or RC_NON_DIRTY value if record is not "dirty".
 intexecuteUpdate(String sql)
     Execute ad-hoc data modifying sql.
Parameters:
  sql - SQL statement to execute number of row affected or RC_NON_DIRTY value if record is not "dirty".
 intexecuteUpdate(String sql, Object[] values)
     Execute ad-hoc data modifying sql.
Parameters:
  sql - SQL statement to execute
Parameters:
  values - values to use as SQL parameters.
 int[]insert(Collection persistentObjects)
    
 intpipeInsert(PersistentObject persistentObject, LifeCycleController controller)
     Forces insert on object that is already saved in the database.
 intpipeInsert(PersistentObject persistentObject)
     Forces insert on object that is already saved in the database.
 inttruncate(String tableName)
     Execute truncate table sql.
 intupdate(PersistentObject persistentObject)
     Update persistent object.
 intupdate(PersistentObject persistentObject, String extraWhere, Parameters extraParameters)
     Update persistent object.
 intupdate(PersistentObject persistentObject, LifeCycleController controller)
     Update persistent object.
 intupdate(PersistentObject persistentObject, String extraWhere, Object[] extraParameters, LifeCycleController controller)
     Update persistent object.
 intupdate(PersistentObject persistentObject, String extraWhere, Parameters extraParameters, LifeCycleController controller)
     Update persistent object.
 int[]update(Collection persistentObjects)
    
 int[]update(Collection collection, LifeCycleController lifeCycleController)
    
 int[]update(TracingCollection collection, Collection source, LifeCycleController lifeCycleController)
     Update collection of persistent objects.
 int[]update(TracingCollection collection, Collection source)
     Update collection of persistent objects.



Method Detail
delete
int delete(PersistentObject persistentObject) throws OdalPersistencyException(Code)
Delete persistent object by primary key
Parameters:
  persistentObject - number of row affected. Should not be used for batch updates or complex/compound objects
throws:
  OdalPersistencyException -



delete
int delete(PersistentObject persistentObject, LifeCycleController controller) throws OdalPersistencyException(Code)
Delete persistent object by primary key
Parameters:
  persistentObject -
Parameters:
  controller - number of row affected. Should not be used for batch updates or complex/compound objects
throws:
  OdalPersistencyException -



delete
int[] delete(Collection persistentObjects) throws OdalPersistencyException(Code)
Delete collection of persistent objects
Parameters:
  persistentObjects - array of return codes - one per collection entry
throws:
  OdalPersistencyException -



deleteByExample
int deleteByExample(PersistentObject persistentObject) throws OdalPersistencyException(Code)
Deletes persistent object "by example" PersistentObject. The fields and their values that are set on the object are then joined by "and" into sql where clause.
Parameters:
  persistentObject - number of row affected. Should not be used for batch updates or complex/compound objects
throws:
  OdalPersistencyException -



deleteByExample
int deleteByExample(PersistentObject persistentObject, LifeCycleController controller) throws OdalPersistencyException(Code)
Deletes persistent object "by example" PersistentObject. The fields and their values that are set on the object are then joined by "and" into sql where clause.
Parameters:
  persistentObject -
Parameters:
  controller - LifeCycleController number of row affected. Should not be used for batch updates or complex/compound objects
throws:
  OdalPersistencyException -



deleteByExample
int deleteByExample(PersistentObject persistentObject, int limit) throws OdalPersistencyException(Code)
Deletes persistent object "by example" PersistentObject. The fields and their values that are set on the object are then joined by "and" into sql where clause.
Parameters:
  persistentObject -
Parameters:
  limit - max number of rows to delete (limit must be supported by the database) number of row affected. Should not be used for batch updates or complex/compound objects
throws:
  OdalPersistencyException -



deleteByExample
int deleteByExample(PersistentObject persistentObject, LifeCycleController controller, int limit) throws OdalPersistencyException(Code)
Deletes persistent object "by example" PersistentObject. The fields and their values that are set on the object are then joined by "and" into sql where clause.
Parameters:
  persistentObject -
Parameters:
  controller - LifeCycleController
Parameters:
  limit - max number of rows to delete (limit must be supported by the database) number of row affected. Should not be used for batch updates or complex/compound objects
throws:
  OdalPersistencyException -



executeUpdate
int executeUpdate(String sql, Parameters parameters) throws OdalPersistencyException(Code)
Execute ad-hoc data modifying sql.
Parameters:
  sql - SQL statement to execute
Parameters:
  parameters - parameters number of row affected or RC_NON_DIRTY value if record is not "dirty". Should not be used for batch updates or complex/compound objects
throws:
  OdalPersistencyException -



executeUpdate
int executeUpdate(String sql) throws OdalPersistencyException(Code)
Execute ad-hoc data modifying sql.
Parameters:
  sql - SQL statement to execute number of row affected or RC_NON_DIRTY value if record is not "dirty". Should not be used for batch updates or complex/compound objects
throws:
  OdalPersistencyException -



executeUpdate
int executeUpdate(String sql, Object[] values) throws OdalPersistencyException(Code)
Execute ad-hoc data modifying sql.
Parameters:
  sql - SQL statement to execute
Parameters:
  values - values to use as SQL parameters. The parameter types will be extrapolated number of row affected or RC_NON_DIRTY value if record is not "dirty". Should not be used for batch updates or complex/compound objects
throws:
  OdalPersistencyException -



insert
int[] insert(Collection persistentObjects) throws OdalPersistencyException(Code)
Insert collection of persistent objects
Parameters:
  persistentObjects - array of return codes - one per collection entry
throws:
  OdalPersistencyException -



pipeInsert
int pipeInsert(PersistentObject persistentObject, LifeCycleController controller) throws OdalPersistencyException(Code)
Forces insert on object that is already saved in the database. This method is designed to work with piping from one database to another
Parameters:
  persistentObject -
Parameters:
  controller -
throws:
  OdalPersistencyException -



pipeInsert
int pipeInsert(PersistentObject persistentObject) throws OdalPersistencyException(Code)
Forces insert on object that is already saved in the database. This method is designed to work with piping from one database to another
Parameters:
  persistentObject -
throws:
  OdalPersistencyException -



truncate
int truncate(String tableName) throws OdalPersistencyException(Code)
Execute truncate table sql.
Parameters:
  tableName - number of row affected.
throws:
  OdalPersistencyException -



update
int update(PersistentObject persistentObject) throws OdalPersistencyException(Code)
Update persistent object. Key values are the ones of primary key and "optimistic lock" fields.
Parameters:
  persistentObject - object to update number of row affected or RC_NON_DIRTY value if record is not "dirty". Should not be used for batch updates or complex/compound objects
throws:
  OdalPersistencyException -



update
int update(PersistentObject persistentObject, String extraWhere, Parameters extraParameters) throws OdalPersistencyException(Code)
Update persistent object. Key values are the ones of primary key and "optimistic lock" fields.
Parameters:
  persistentObject - object to update number of row affected or RC_NON_DIRTY value if record is not "dirty". Should not be used for batch updates or complex/compound objects
throws:
  OdalPersistencyException -



update
int update(PersistentObject persistentObject, LifeCycleController controller) throws OdalPersistencyException(Code)
Update persistent object. Key values are the ones of primary key and "optimistic lock" fields.
Parameters:
  persistentObject - object to update
Parameters:
  controller - number of row affected or RC_NON_DIRTY value if record is not "dirty". Should not be used for batch updates or complex/compound objects
throws:
  OdalPersistencyException -



update
int update(PersistentObject persistentObject, String extraWhere, Object[] extraParameters, LifeCycleController controller) throws OdalPersistencyException(Code)
Update persistent object. Key values are the ones of primary key and "optimistic lock" fields.
Parameters:
  persistentObject - object to update
Parameters:
  extraWhere - sql fragment
Parameters:
  extraParameters - optional parameters for extraWhere sql fragment
Parameters:
  controller - LifeCycleController number of row affected or RC_NON_DIRTY value if record is not "dirty". Should not be used for batch updates or complex/compound objects
throws:
  OdalPersistencyException -



update
int update(PersistentObject persistentObject, String extraWhere, Parameters extraParameters, LifeCycleController controller) throws OdalPersistencyException(Code)
Update persistent object. Key values are the ones of primary key and "optimistic lock" fields.
Parameters:
  persistentObject - object to update
Parameters:
  extraWhere - sql fragment
Parameters:
  extraParameters - optional parameters for extraWhere sql fragment
Parameters:
  controller - LifeCycleController number of row affected or RC_NON_DIRTY value if record is not "dirty". Should not be used for batch updates or complex/compound objects
throws:
  OdalPersistencyException -



update
int[] update(Collection persistentObjects) throws OdalPersistencyException(Code)
Update collection of persistent objects
Parameters:
  persistentObjects - array of return codes - one per collection entry
throws:
  OdalPersistencyException -



update
int[] update(Collection collection, LifeCycleController lifeCycleController) throws OdalPersistencyException(Code)
Update collection of persistent objects
Parameters:
  collection -
Parameters:
  lifeCycleController - array of return codes - one per collection entry
throws:
  OdalPersistencyException -



update
int[] update(TracingCollection collection, Collection source, LifeCycleController lifeCycleController) throws OdalPersistencyException(Code)
Update collection of persistent objects. TracingCollection collection will be matched with the source one and "trced". That is objects that are in collection but not in source will be deleted, that are not in collection but are in source will be inserted, objects that are in both but "dirty" will be updated
Parameters:
  collection -
Parameters:
  source -
Parameters:
  lifeCycleController - array of return codes - one per collection entry
throws:
  OdalPersistencyException -



update
int[] update(TracingCollection collection, Collection source) throws OdalPersistencyException(Code)
Update collection of persistent objects. TracingCollection collection will be matched with the source one and "trced". That is objects that are in collection but not in source will be deleted, that are not in collection but are in source will be inserted, objects that are in both but "dirty" will be updated
Parameters:
  collection -
Parameters:
  source - array of return codes - one per collection entry
throws:
  OdalPersistencyException -



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