Java Doc for Persistency2.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.Persistency2

All known Subclasses:   com.completex.objective.components.persistency.core.impl.AbstractDatabasePersistency,
Persistency2
public interface Persistency2 extends Persistency0,InsertPersistency2,TransactionManagerAware(Code)

author:
   Gennady Krizhevsky




Method Summary
 intdelete(Transaction transaction, PersistentObject persistentObject)
     Delete persistent object by primary key
Parameters:
  transaction -
Parameters:
  persistentObject - number of row affected.
 intdelete(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller)
     Delete persistent object by primary key
Parameters:
  transaction -
Parameters:
  persistentObject -
Parameters:
  controller - number of row affected.
 int[]delete(Transaction transaction, Collection persistentObjects)
    
 intdeleteByExample(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller, int limit)
     Deletes persistent object "by example" PersistentObject.
 intdeleteByExample(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller)
     Deletes persistent object "by example" PersistentObject.
 voidexecuteCall(Transaction transaction, Call call)
    
 intexecuteUpdate(Transaction transaction, String sql, Parameters parameters)
     Execute ad-hoc data modifying sql.
 intexecuteUpdate(Transaction transaction, String sql)
     Execute ad-hoc data modifying sql.
 longgetNextSeqValue(Transaction transaction, Persistency persistency, Record record, String name)
    
 intinsert(Transaction transaction, PersistentObject persistentObject)
     Insert persistent object
Parameters:
  transaction - transaction
Parameters:
  persistentObject - PersistentObject number of row affected or RC_NON_DIRTY value if record is not "dirty".
 intinsert(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller)
     Insert persistent object
Parameters:
  transaction - transaction
Parameters:
  persistentObject -
Parameters:
  controller - number of row affected or RC_NON_DIRTY value if record is not "dirty".
 int[]insert(Transaction transaction, Collection persistentObjects)
    
 Objectload(Transaction transaction, PersistentObject persistentObject)
     Retrieves persistent object "by example" by primary key.
 Objectload(Transaction transaction, PersistentObject persistentObject, LockType lock)
     Retrieves persistent object "by example" by primary key.
 Objectload(Transaction transaction, PersistentObject persistentObject, LockType lockType, long timeout)
     Retrieves persistent object "by example" by primary key.
 Objectload(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller, LockType lockType, long timeout)
     Retrieves persistent object "by example" by primary key.
 Objectload(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller)
    
 intpipeInsert(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller)
    
 CallableStatementprepareCall(Transaction transaction, Call query, StringBuffer bindBuffer)
    
 PreparedStatementprepareStatement(Transaction transaction, Query query, StringBuffer bindBuffer)
    
 ResultSetIteratorresultSetIterator(PreparedStatement statement, AbstractParameters parameters)
    
 Collectionselect(Transaction transaction, PersistentObject persistentObject)
     Retrieves collection of persistent objects "by example" PersistentObject. The fields and their values that are set on the object are then joined by "and" into sql where clause. PersistentObject passed as parameter used as a factory of objects to be returned.
 Collectionselect(Transaction transaction, Query query)
     Retrieves collection of persistent objects "by query". Query controls the type of collection and objects to return. Collection is never null.
 Collectionselect(Transaction transaction, Query query, LifeCycleController controller)
     Retrieves collection of persistent objects "by query". Query controls the type of collection and objects to return. Collection is never null.
 Collectionselect(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller)
     Retrieves collection of persistent objects "by example" PersistentObject. The fields and their values that are set on the object are then joined by "and" into sql where clause. PersistentObject passed as parameter used as a factory of objects to be returned.
 Collectionselect(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller, LockType lock)
     Retrieves collection of persistent objects "by example" PersistentObject. The fields and their values that are set on the object are then joined by "and" into sql where clause. PersistentObject passed as parameter used as a factory of objects to be returned.
 Collectionselect(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller, LockType lock, long timeout)
     Retrieves collection of persistent objects "by example" PersistentObject. The fields and their values that are set on the object are then joined by "and" into sql where clause. PersistentObject passed as parameter used as a factory of objects to be returned.
 longselectCount(Transaction transaction, Query query)
     Method will use query object to build "select count(*)" statement. Concrete implementation may reject query in case sql string is set externally.
 longselectCount(Transaction transaction, PersistentObject persistentObject)
     Method will use persistentObject object to build "select count(*)" statement.
 booleanselectExists(Transaction transaction, Query query)
     Method will use query object to build exists sql statement. Concrete implementation may reject query in case sql string is set externally.
 booleanselectExists(Transaction transaction, PersistentObject persistentObject)
     Method will use persistentObject to build exists sql statement. Concrete implementation may reject query in case sql string is set externally.
 ObjectselectFirst(Transaction transaction, Query query)
     Retrieves collection of persistent objects "by query" and returns the 1st object.
 ObjectselectFirst(Transaction transaction, PersistentObject persistentObject)
     Retrieves collection of persistent objects "by example" and returns the 1st object.
 ObjectselectFirst(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller)
     Retrieves collection of persistent objects "by example" and returns the 1st object.
 ObjectselectFirst(Transaction transaction, PersistentObject persistentObject, LockType lockType)
     Retrieves collection of persistent objects "by example" and returns the 1st object.
 ObjectselectFirst(Transaction transaction, Query query, LifeCycleController controller)
    
 ObjectselectFirst(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller, LockType lockType)
    
 ObjectselectSingle(Transaction transaction, Query query)
    
 inttruncate(Transaction transaction, String tableName)
     Execute truncate table sql.
 intupdate(Transaction transaction, PersistentObject persistentObject)
     Update persistent object.
 intupdate(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller)
     Update persistent object.
 intupdate(Transaction transaction, PersistentObject persistentObject, String extraWhere, Parameters extraParameters, LifeCycleController controller)
     Update persistent object.
 intupdate(Transaction transaction, PersistentObject persistentObject, String extraWhere, Object[] extraParameters, LifeCycleController controller)
     Update persistent object.
 int[]update(Transaction transaction, Collection persistentObjects)
    
 int[]update(Transaction transaction, Collection collection, LifeCycleController lifeCycleController)
    
 int[]update(Transaction transaction, TracingCollection collection, Collection source, LifeCycleController lifeCycleController)
     Update collection of persistent objects. TracingCollection collection will be matched with the source one and "trced".



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



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



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



deleteByExample
int deleteByExample(Transaction transaction, 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:
  transaction -
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 -



deleteByExample
int deleteByExample(Transaction transaction, 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:
  transaction -
Parameters:
  persistentObject -
Parameters:
  controller - LifeCycleController number of row affected. Should not be used for batch updates or complex/compound objects
throws:
  OdalPersistencyException -



executeCall
void executeCall(Transaction transaction, Call call) throws SQLException(Code)
Executes stored procedure call that doe not return result set
Parameters:
  transaction - transaction
Parameters:
  call - Call object
throws:
  java.sql.SQLException -



executeUpdate
int executeUpdate(Transaction transaction, String sql, Parameters parameters) throws OdalPersistencyException(Code)
Execute ad-hoc data modifying sql.
Parameters:
  transaction -
Parameters:
  sql -
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(Transaction transaction, String sql) throws OdalPersistencyException(Code)
Execute ad-hoc data modifying sql.
Parameters:
  transaction -
Parameters:
  sql - 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 -



getNextSeqValue
long getNextSeqValue(Transaction transaction, Persistency persistency, Record record, String name) throws OdalPersistencyException(Code)
Get next sequence using default sequence generator
Parameters:
  transaction - transaction
Parameters:
  persistency - persistency
Parameters:
  record - record
Parameters:
  name - of the sequence next sequnce value
throws:
  OdalPersistencyException -



insert
int insert(Transaction transaction, PersistentObject persistentObject) throws DuplicateRecordException, OdalPersistencyException(Code)
Insert persistent object
Parameters:
  transaction - transaction
Parameters:
  persistentObject - PersistentObject 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:
  DuplicateRecordException - if duplicate record is detected
throws:
  OdalPersistencyException -



insert
int insert(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller) throws DuplicateRecordException, OdalPersistencyException(Code)
Insert persistent object
Parameters:
  transaction - transaction
Parameters:
  persistentObject -
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:
  DuplicateRecordException -
throws:
  OdalPersistencyException -



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



load
Object load(Transaction transaction, PersistentObject persistentObject) throws OdalPersistencyException(Code)
Retrieves persistent object "by example" by primary key. The fields and their values that are set on the object are then joined by "and" into sql where clause. Even if non-key fields are set they will be ignored. PersistentObject passed as parameter used as a factory of object to be returned. The returned instance is different from the parameter one
Parameters:
  transaction -
Parameters:
  persistentObject - loaded PersistentObject
throws:
  OdalPersistencyException -
throws:
  RecordValidationException - if primary key is missing or the values are not set



load
Object load(Transaction transaction, PersistentObject persistentObject, LockType lock) throws OdalPersistencyException(Code)
Retrieves persistent object "by example" by primary key. The fields and their values that are set on the object are then joined by "and" into sql where clause. Even if non-key fields are set they will be ignored. PersistentObject passed as parameter used as a factory of object to be returned. The returned instance is different from the parameter one
See Also:   LockType
Parameters:
  transaction -
Parameters:
  persistentObject -
Parameters:
  lock - Lock type loaded PersistentObject
throws:
  OdalPersistencyException -



load
Object load(Transaction transaction, PersistentObject persistentObject, LockType lockType, long timeout) throws OdalPersistencyException(Code)
Retrieves persistent object "by example" by primary key. The fields and their values that are set on the object are then joined by "and" into sql where clause. Even if non-key fields are set they will be ignored. PersistentObject passed as parameter used as a factory of object to be returned. The returned instance is different from the parameter one
Parameters:
  transaction -
Parameters:
  persistentObject -
Parameters:
  lockType -
Parameters:
  timeout - Timeout on lock in seconds loaded PersistentObject
throws:
  OdalPersistencyException -



load
Object load(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller, LockType lockType, long timeout) throws OdalPersistencyException(Code)
Retrieves persistent object "by example" by primary key. The fields and their values that are set on the object are then joined by "and" into sql where clause. Even if non-key fields are set they will be ignored. PersistentObject passed as parameter used as a factory of object to be returned. The returned instance is different from the parameter one
Parameters:
  transaction -
Parameters:
  persistentObject -
Parameters:
  controller -
Parameters:
  lockType -
Parameters:
  timeout - Timeout on lock in seconds loaded PersistentObject
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



load
Object load(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller) throws OdalPersistencyException(Code)



pipeInsert
int pipeInsert(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller) throws OdalPersistencyException(Code)



prepareCall
CallableStatement prepareCall(Transaction transaction, Call query, StringBuffer bindBuffer) throws SQLException(Code)

Parameters:
  transaction -
Parameters:
  query -
Parameters:
  bindBuffer - CallableStatement
throws:
  SQLException -



prepareStatement
PreparedStatement prepareStatement(Transaction transaction, Query query, StringBuffer bindBuffer) throws OdalPersistencyException(Code)

Parameters:
  transaction -
Parameters:
  query -
Parameters:
  bindBuffer - PreparedStatement
throws:
  OdalPersistencyException -



resultSetIterator
ResultSetIterator resultSetIterator(PreparedStatement statement, AbstractParameters parameters) throws SQLException(Code)

See Also:   ResultSetIterator
Parameters:
  statement -
Parameters:
  parameters - new ResultSetIterator
throws:
  SQLException -



select
Collection select(Transaction transaction, PersistentObject persistentObject) throws OdalPersistencyException(Code)
Retrieves collection of persistent objects "by example" PersistentObject. The fields and their values that are set on the object are then joined by "and" into sql where clause. PersistentObject passed as parameter used as a factory of objects to be returned.
Parameters:
  transaction -
Parameters:
  persistentObject - Collection of persistent objects never null. If nothing found the one with 0-length is returned.
throws:
  OdalPersistencyException -



select
Collection select(Transaction transaction, Query query) throws OdalPersistencyException(Code)
Retrieves collection of persistent objects "by query". Query controls the type of collection and objects to return. Collection is never null. If nothing found the one with 0-length is returned.
See Also:   Query
Parameters:
  transaction -
Parameters:
  query - Collection of persistent objects - never null. If nothing found the one with 0-length is returned.
throws:
  OdalPersistencyException -



select
Collection select(Transaction transaction, Query query, LifeCycleController controller) throws OdalPersistencyException(Code)
Retrieves collection of persistent objects "by query". Query controls the type of collection and objects to return. Collection is never null. If nothing found the one with 0-length is returned.
Parameters:
  transaction -
Parameters:
  query -
Parameters:
  controller - LifeCycle interface that called when certain events happen Collection of persistent objects - never null. If nothing found the one with 0-length is returned.
throws:
  OdalPersistencyException -



select
Collection select(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller) throws OdalPersistencyException(Code)
Retrieves collection of persistent objects "by example" PersistentObject. The fields and their values that are set on the object are then joined by "and" into sql where clause. PersistentObject passed as parameter used as a factory of objects to be returned.
Parameters:
  transaction -
Parameters:
  persistentObject -
Parameters:
  controller - Collection of persistent objects - never null. If nothing found the one with 0-length is returned.
throws:
  OdalPersistencyException -



select
Collection select(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller, LockType lock) throws OdalPersistencyException(Code)
Retrieves collection of persistent objects "by example" PersistentObject. The fields and their values that are set on the object are then joined by "and" into sql where clause. PersistentObject passed as parameter used as a factory of objects to be returned.
Parameters:
  transaction -
Parameters:
  persistentObject -
Parameters:
  controller -
Parameters:
  lock - Lock type Collection of persistent objects - never null. If nothing found the one with 0-length is returned.
throws:
  OdalPersistencyException -



select
Collection select(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller, LockType lock, long timeout) throws OdalPersistencyException(Code)
Retrieves collection of persistent objects "by example" PersistentObject. The fields and their values that are set on the object are then joined by "and" into sql where clause. PersistentObject passed as parameter used as a factory of objects to be returned.
Parameters:
  transaction -
Parameters:
  persistentObject -
Parameters:
  controller -
Parameters:
  lock -
Parameters:
  timeout - Timeout on lock in seconds Collection of persistent objects - never null. If nothing found the one with 0-length is returned.
throws:
  OdalPersistencyException -



selectCount
long selectCount(Transaction transaction, Query query) throws OdalPersistencyException(Code)
Method will use query object to build "select count(*)" statement. Concrete implementation may reject query in case sql string is set externally.
Parameters:
  transaction -
Parameters:
  query - count
throws:
  OdalPersistencyException -



selectCount
long selectCount(Transaction transaction, PersistentObject persistentObject) throws OdalPersistencyException(Code)
Method will use persistentObject object to build "select count(*)" statement.
Parameters:
  transaction -
Parameters:
  persistentObject - count
throws:
  OdalPersistencyException -



selectExists
boolean selectExists(Transaction transaction, Query query) throws OdalPersistencyException(Code)
Method will use query object to build exists sql statement. Concrete implementation may reject query in case sql string is set externally.
Parameters:
  transaction -
Parameters:
  query - true if query returns any results
throws:
  OdalPersistencyException -



selectExists
boolean selectExists(Transaction transaction, PersistentObject persistentObject) throws OdalPersistencyException(Code)
Method will use persistentObject to build exists sql statement. Concrete implementation may reject query in case sql string is set externally.
Parameters:
  transaction -
Parameters:
  persistentObject - true if query returns any results
throws:
  OdalPersistencyException -



selectFirst
Object selectFirst(Transaction transaction, Query query) throws OdalPersistencyException(Code)
Retrieves collection of persistent objects "by query" and returns the 1st object.
Parameters:
  transaction -
Parameters:
  query - 1st object or null if nothing found
throws:
  OdalPersistencyException -



selectFirst
Object selectFirst(Transaction transaction, PersistentObject persistentObject) throws OdalPersistencyException(Code)
Retrieves collection of persistent objects "by example" and returns the 1st object.
Parameters:
  transaction -
Parameters:
  persistentObject - 1st object or null if nothing found
throws:
  OdalPersistencyException -



selectFirst
Object selectFirst(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller) throws OdalPersistencyException(Code)
Retrieves collection of persistent objects "by example" and returns the 1st object.
Parameters:
  transaction -
Parameters:
  persistentObject -
Parameters:
  controller - 1st object or null if nothing found
throws:
  OdalPersistencyException -



selectFirst
Object selectFirst(Transaction transaction, PersistentObject persistentObject, LockType lockType) throws OdalPersistencyException(Code)
Retrieves collection of persistent objects "by example" and returns the 1st object.
See Also:   LockType
Parameters:
  transaction -
Parameters:
  persistentObject -
Parameters:
  lockType - 1st object or null if nothing found
throws:
  OdalPersistencyException -



selectFirst
Object selectFirst(Transaction transaction, Query query, LifeCycleController controller) throws OdalPersistencyException(Code)
Returns 1st AbstractPersistentObject if several are found or null none is found
Parameters:
  transaction -
Parameters:
  query -
Parameters:
  controller - 1st AbstractPersistentObject if several are found or null if none is found
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



selectFirst
Object selectFirst(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller, LockType lockType) throws OdalPersistencyException(Code)
Returns 1st AbstractPersistentObject if several are found or null none is found
Parameters:
  transaction -
Parameters:
  persistentObject -
Parameters:
  controller -
Parameters:
  lockType - 1st AbstractPersistentObject if several are found or null none is found
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



selectSingle
Object selectSingle(Transaction transaction, Query query) throws OdalPersistencyException(Code)
Method can be used for queries that return single value results
Parameters:
  transaction -
Parameters:
  query - single value
throws:
  OdalPersistencyException -



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



update
int update(Transaction transaction, PersistentObject persistentObject) throws OdalPersistencyException(Code)
Update persistent object. Key values are the ones of primary key and "optimistic lock" fields.
Parameters:
  transaction - transaction
Parameters:
  persistentObject - 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(Transaction transaction, PersistentObject persistentObject, LifeCycleController controller) throws OdalPersistencyException(Code)
Update persistent object. Key values are the ones of primary key and "optimistic lock" fields.
Parameters:
  transaction - transaction
Parameters:
  persistentObject -
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(Transaction transaction, 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:
  transaction - transaction
Parameters:
  persistentObject -
Parameters:
  extraWhere - sql fragment that is added to the where clause w/o actual "WHERE" keyword inside
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(Transaction transaction, 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:
  transaction - transaction
Parameters:
  persistentObject -
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(Transaction transaction, Collection persistentObjects) throws OdalPersistencyException(Code)
Update collection of persistent objects
Parameters:
  transaction -
Parameters:
  persistentObjects - array of return codes - one per collection entry
throws:
  OdalPersistencyException -



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



update
int[] update(Transaction transaction, 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:
  transaction -
Parameters:
  collection -
Parameters:
  source -
Parameters:
  lifeCycleController - 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.