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

SelectPersistency
public interface SelectPersistency (Code)

author:
   Gennady Krizhevsky


Field Summary
final static  longNO_TIMEOUT
    


Method Summary
 longgetNextSeqValue(String name)
    
 Objectload(PersistentObject persistentObject)
     Retrieves persistent object "by example" by primary key.
 Objectload(PersistentObject persistentObject, LockType lockType)
     Retrieves persistent object "by example" by primary key.
 Objectload(PersistentObject persistentObject, LockType lockType, long timeout)
     Retrieves persistent object "by example" by primary key.
 Objectload(PersistentObject persistentObject, LifeCycleController controller)
    
 Objectload(PersistentObject persistentObject, LifeCycleController controller, LockType lockType, long timeout)
    
 ObjectloadForUpdate(PersistentObject persistentObject)
     Retrieves persistent object "by example" by primary key.
 Collectionselect(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.
Parameters:
  persistentObject - PersistentObject which values and corresponding column names are used to build the where clause Collection of persistent objects never null.
 Collectionselect(Query query)
     Retrieves collection of persistent objects "by query". Query controls the type of collection and objects to return. Collection is never null.
 Collectionselect(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.
Parameters:
  persistentObject - PersistentObject which values and corresponding column names are used to build the where clause
Parameters:
  controller - Collection of persistent objects - never null.
 Collectionselect(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(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.
Parameters:
  persistentObject - PersistentObject which values and corresponding column names are used to build the where clause
Parameters:
  controller - Collection of persistent objects - never null.
 Collectionselect(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.
Parameters:
  persistentObject - PersistentObject which values and corresponding column names are used to build the where clause
Parameters:
  controller -
Parameters:
  lock -
Parameters:
  timeout - Timeout on lock in seconds Collection of persistent objects - never null.
 longselectCount(Query query)
     Method will use query object to build "select count(*)" statement.
 longselectCount(PersistentObject persistentObject)
     Method will use PersistentObject object to build "select count(*)" statement.
 booleanselectExists(Query query)
     Method will use query object to build exists sql statement.
 booleanselectExists(PersistentObject persistentObject)
     Method will use persistentObject to build exists sql statement.
 ObjectselectFirst(Query query)
     Retrieves collection of persistent objects "by query" and returns the 1st object.
 ObjectselectFirst(Query query, LifeCycleController controller)
    
 ObjectselectFirst(PersistentObject persistentObject)
     Retrieves collection of persistent objects "by example" and returns the 1st object.
 ObjectselectFirst(PersistentObject persistentObject, LifeCycleController controller)
    
 ObjectselectFirstForUpdate(PersistentObject persistentObject)
     Retrieves collection of persistent objects "by example" and returns the 1st object.
 CollectionselectForUpdate(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. Method will wait indefinitely until the records are released if locked by another session and will lock them upon retieval
Parameters:
  persistentObject - PersistentObject which values and corresponding column names are used to build the where clause Collection of persistent objects - never null.
 MultipartCollectionselectMultiPartResultCall(Call query, LifeCycleController controller)
    
 MultipartCollectionselectMultiPartResultCall(Call query)
    
 ObjectselectSingle(Query query)
    
 CollectionselectSinglePartResultCall(Call query, LifeCycleController controller)
    
 CollectionselectSinglePartResultCall(Call query)
    

Field Detail
NO_TIMEOUT
final static long NO_TIMEOUT(Code)





Method Detail
getNextSeqValue
long getNextSeqValue(String name) throws OdalPersistencyException(Code)
Get next sequence using default sequence generator
Parameters:
  name - of the sequence next sequnce value
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



load
Object load(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:
  persistentObject - PersistentObject which values and corresponding column names are used to build the where clause loaded PersistentObject
throws:
  com.completex.objective.components.persistency.OdalPersistencyException - primary key values are nulls



load
Object load(PersistentObject persistentObject, LockType lockType) 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:
  persistentObject -
Parameters:
  lockType - loaded PersistentObject
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



load
Object load(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:
  persistentObject - PersistentObject which values and corresponding column names are used to build the where clause
Parameters:
  lockType - Lock type loaded PersistentObject
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -
See Also:   com.completex.objective.components.persistency.LockType



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



load
Object load(PersistentObject persistentObject, LifeCycleController controller, LockType lockType, long timeout) throws OdalPersistencyException(Code)



loadForUpdate
Object loadForUpdate(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. Method will wait indefinitely until the record is released if locked by another session and will lock it upon retieval
Parameters:
  persistentObject - PersistentObject which values and corresponding column names are used to build the where clause loaded PersistentObject
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



select
Collection select(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:
  persistentObject - PersistentObject which values and corresponding column names are used to build the where clause Collection of persistent objects never null. If nothing found the one with 0-length is returned.
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



select
Collection select(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.
Parameters:
  query - Collection of persistent objects - never null. If nothing found the one with 0-length is returned.
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -
See Also:   com.completex.objective.components.persistency.Query



select
Collection select(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:
  persistentObject - PersistentObject which values and corresponding column names are used to build the where clause
Parameters:
  controller - Collection of persistent objects - never null. If nothing found the one with 0-length is returned.
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



select
Collection select(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:
  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:
  com.completex.objective.components.persistency.OdalPersistencyException -



select
Collection select(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:
  persistentObject - PersistentObject which values and corresponding column names are used to build the where clause
Parameters:
  controller - Collection of persistent objects - never null. If nothing found the one with 0-length is returned.
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



select
Collection select(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:
  persistentObject - PersistentObject which values and corresponding column names are used to build the where clause
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:
  com.completex.objective.components.persistency.OdalPersistencyException -



selectCount
long selectCount(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:
  query - count
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



selectCount
long selectCount(PersistentObject persistentObject) throws OdalPersistencyException(Code)
Method will use PersistentObject object to build "select count(*)" statement.
Parameters:
  persistentObject - PersistentObject which values and corresponding column names are used to build the where clause count
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



selectExists
boolean selectExists(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:
  query - true if query returns any results
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



selectExists
boolean selectExists(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:
  persistentObject - PersistentObject which values and corresponding column names are used to build the where clause true if query returns any results
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



selectFirst
Object selectFirst(Query query) throws OdalPersistencyException(Code)
Retrieves collection of persistent objects "by query" and returns the 1st object.
Parameters:
  query - 1st object or null if nothing found
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



selectFirst
Object selectFirst(Query query, LifeCycleController controller) throws OdalPersistencyException(Code)



selectFirst
Object selectFirst(PersistentObject persistentObject) throws OdalPersistencyException(Code)
Retrieves collection of persistent objects "by example" and returns the 1st object.
Parameters:
  persistentObject - PersistentObject which values and corresponding column names are used to build the where clause 1st object or null if nothing found
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



selectFirst
Object selectFirst(PersistentObject persistentObject, LifeCycleController controller) throws OdalPersistencyException(Code)



selectFirstForUpdate
Object selectFirstForUpdate(PersistentObject persistentObject) throws OdalPersistencyException(Code)
Retrieves collection of persistent objects "by example" and returns the 1st object. Method will wait indefinitely until the records are released if locked by another session and will lock them upon retieval
Parameters:
  persistentObject - PersistentObject which values and corresponding column names are used to build the where clause 1st object or null if nothing found
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



selectForUpdate
Collection selectForUpdate(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. Method will wait indefinitely until the records are released if locked by another session and will lock them upon retieval
Parameters:
  persistentObject - PersistentObject which values and corresponding column names are used to build the where clause Collection of persistent objects - never null. If nothing found the one with 0-length is returned.
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



selectMultiPartResultCall
MultipartCollection selectMultiPartResultCall(Call query, LifeCycleController controller) throws OdalPersistencyException(Code)
Execute multi-result set procedure call
Parameters:
  query -
Parameters:
  controller - Collection of persistent objects
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



selectMultiPartResultCall
MultipartCollection selectMultiPartResultCall(Call query) throws OdalPersistencyException(Code)
Execute multi-result set procedure call
Parameters:
  query - Collection of persistent objects
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



selectSingle
Object selectSingle(Query query) throws OdalPersistencyException(Code)
Method can be used for queries that return single value results
Parameters:
  query - single value
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



selectSinglePartResultCall
Collection selectSinglePartResultCall(Call query, LifeCycleController controller) throws OdalPersistencyException(Code)
Execute single result set procedure call
Parameters:
  query -
Parameters:
  controller - Collection of persistent objects
throws:
  com.completex.objective.components.persistency.OdalPersistencyException -



selectSinglePartResultCall
Collection selectSinglePartResultCall(Call query) throws OdalPersistencyException(Code)
Execute single result set procedure call
Parameters:
  query - Collection of persistent objects
throws:
  com.completex.objective.components.persistency.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.