Java Doc for QueryPersistenceManager.java in  » Development » ivatamasks » com » ivata » mask » persistence » 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 » Development » ivatamasks » com.ivata.mask.persistence 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.ivata.mask.persistence.QueryPersistenceManager

QueryPersistenceManager
public interface QueryPersistenceManager extends PersistenceManager(Code)
Extends the ivata masks persistence manager to include facilities to execute queries against the persistence store, and adds listeners.
author:
   Colin MacLeod
author:
   colin.macleod@ivata.com
since:
   ivata masks 1.0 (2004-03-27)
version:
   $Revision: 1.2 $




Method Summary
 voidaddAddListener(Class dOClass, AddPersistenceListener listener)
     Add an add listener to this persistence manager.
 voidaddAmendListener(Class dOClass, AmendPersistenceListener listener)
     Add an amend listener to this persistence manager.
 voidaddFilter(PersistenceFilter filter)
     Add a persitence to the system.
 voidaddRemoveListener(Class dOClass, RemovePersistenceListener listener)
     Add an remove listener to this persistence manager.
 Listfind(PersistenceSession session, String queryName, Object[] queryArguments)
    

Find a list of value objects, with the given query name and arguments. The meaning of the query name is implementation specific - in the initialization of your concrete persistence manager, you define which queries are available.


Parameters:
  session - A valid persistence session.
 Listfind(PersistenceSession session, String queryName, Object[] queryArguments, Integer pageSize, Integer pageNumber)
    

Find a list of value objects, with the given query name and arguments. The meaning of the query name is implementation specific - in the initialization of your concrete persistence manager, you define which queries are available.


Parameters:
  session - A valid persistence session.
 ValueObjectfindInstance(PersistenceSession session, String queryName, Object[] queryArguments)
    

Find a single value object, using the given query name and arguments. The meaning of the query name is implementation specific - in the initialization of your concrete persistence manager, you define which queries are available.


Parameters:
  session - A valid persistence session.
 IntegerfindInteger(PersistenceSession session, String queryName, Object[] queryArguments)
    

Find a integer property value, using the given query name and arguments. The meaning of the query name is implementation specific - in the initialization of your concrete persistence manager, you define which queries are available.


Parameters:
  session - A valid persistence session.
 StringfindString(PersistenceSession session, String queryName, Object[] queryArguments)
    

Find a string property value, using the given query name and arguments. The meaning of the query name is implementation specific - in the initialization of your concrete persistence manager, you define which queries are available.


Parameters:
  session - A valid persistence session.
 voidremove(PersistenceSession session, ValueObject valueObject)
    

Remove a single value object from the system.


Parameters:
  session - A valid persistence session.
 voidremoveAll(PersistenceSession session, String queryName, Object[] queryArguments)
    

Remove all value objects matching the given query name and arguments. The meaning of the query name is implementation specific - in the initialization of your concrete persistence manager, you define which queries are available.


Parameters:
  session - A valid persistence session.



Method Detail
addAddListener
void addAddListener(Class dOClass, AddPersistenceListener listener)(Code)
Add an add listener to this persistence manager. This listener will be invoked whenever a value object of the given type is added to the system.
Parameters:
  dOClass - Class to listen for. Whenever a value object of this class(or a subclass of this class) is added, then the listener will beinvoked.
Parameters:
  listener - The listener to add.



addAmendListener
void addAmendListener(Class dOClass, AmendPersistenceListener listener)(Code)
Add an amend listener to this persistence manager. This listener will be invoked whenever a value object of the given type is amended in the system.
Parameters:
  dOClass - Class to listen for. Whenever a value object of this class(or a subclass of this class) is amended, then the listener will beinvoked.
Parameters:
  listener - The listener to add.



addFilter
void addFilter(PersistenceFilter filter)(Code)
Add a persitence to the system. This filter will be called every time a value object is read from the persistence store for viewing by a client.
Parameters:
  filter - The filter to be added.



addRemoveListener
void addRemoveListener(Class dOClass, RemovePersistenceListener listener)(Code)
Add an remove listener to this persistence manager. This listener will be invoked whenever a value object of the given type is removed from the system.
Parameters:
  dOClass - Class to listen for. Whenever a value object of this class(or a subclass of this class) is removed, then the listener will beinvoked.
Parameters:
  listener - The listener to add.



find
List find(PersistenceSession session, String queryName, Object[] queryArguments) throws PersistenceException(Code)

Find a list of value objects, with the given query name and arguments. The meaning of the query name is implementation specific - in the initialization of your concrete persistence manager, you define which queries are available.


Parameters:
  session - A valid persistence session. SeePersistenceManager.openSession openSession.
Parameters:
  queryName - The name of the query to execute. The actual definitionof the query with this name depends on the implementation of thepersistence manager.
Parameters:
  queryArguments - All query arguments in the order in which theyappear in the query text. List of ValueObject instances, matchingthe results of this query.
throws:
  PersistenceException - Thrown if the query cannot be performed forany reason.



find
List find(PersistenceSession session, String queryName, Object[] queryArguments, Integer pageSize, Integer pageNumber) throws PersistenceException(Code)

Find a list of value objects, with the given query name and arguments. The meaning of the query name is implementation specific - in the initialization of your concrete persistence manager, you define which queries are available.


Parameters:
  session - A valid persistence session. SeePersistenceManager.openSession openSession.
Parameters:
  queryName - The name of the query to execute. The actual definitionof the query with this name depends on the implementation of thepersistence manager.
Parameters:
  queryArguments - All query arguments in the order in which theyappear in the query text.
Parameters:
  pageSize - Maximum number of items to return.
Parameters:
  pageNumber - Defines where to start returning. This numbermultiplied by pageSize gives the total number of rowsbefore the first row returned. List of ValueObject instances, matchingthe results of this query.
throws:
  PersistenceException - Thrown if the query cannot be performed forany reason.



findInstance
ValueObject findInstance(PersistenceSession session, String queryName, Object[] queryArguments) throws PersistenceException(Code)

Find a single value object, using the given query name and arguments. The meaning of the query name is implementation specific - in the initialization of your concrete persistence manager, you define which queries are available.


Parameters:
  session - A valid persistence session. SeePersistenceManager.openSession openSession.
Parameters:
  queryName - The name of the query to execute. The actual definitionof the query with this name depends on the implementation of thepersistence manager.
Parameters:
  queryArguments - All query arguments in the order in which theyappear in the query text. a single ValueObject matchingthe result of this query.
throws:
  PersistenceException - Thrown if the query cannot be performed forany reason.



findInteger
Integer findInteger(PersistenceSession session, String queryName, Object[] queryArguments) throws PersistenceException(Code)

Find a integer property value, using the given query name and arguments. The meaning of the query name is implementation specific - in the initialization of your concrete persistence manager, you define which queries are available.


Parameters:
  session - A valid persistence session. SeePersistenceManager.openSession openSession.
Parameters:
  queryName - The name of the query to execute. The actual definitionof the query with this name depends on the implementation of thepersistence manager.
Parameters:
  queryArguments - All query arguments in the order in which theyappear in the query text. a single Integer matchingthe result of this query.
throws:
  PersistenceException - Thrown if the query cannot be performed forany reason.



findString
String findString(PersistenceSession session, String queryName, Object[] queryArguments) throws PersistenceException(Code)

Find a string property value, using the given query name and arguments. The meaning of the query name is implementation specific - in the initialization of your concrete persistence manager, you define which queries are available.


Parameters:
  session - A valid persistence session. SeePersistenceManager.openSession openSession.
Parameters:
  queryName - The name of the query to execute. The actual definitionof the query with this name depends on the implementation of thepersistence manager.
Parameters:
  queryArguments - All query arguments in the order in which theyappear in the query text. a single String matchingthe result of this query.
throws:
  PersistenceException - Thrown if the query cannot be performed forany reason.



remove
void remove(PersistenceSession session, ValueObject valueObject) throws PersistenceException(Code)

Remove a single value object from the system.


Parameters:
  session - A valid persistence session. SeePersistenceManager.openSession openSession.
Parameters:
  valueObject - The value object to be removed.
throws:
  PersistenceException - Thrown if the object cannot be removed forany reason.



removeAll
void removeAll(PersistenceSession session, String queryName, Object[] queryArguments) throws PersistenceException(Code)

Remove all value objects matching the given query name and arguments. The meaning of the query name is implementation specific - in the initialization of your concrete persistence manager, you define which queries are available.


Parameters:
  session - A valid persistence session. SeePersistenceManager.openSession openSession.
Parameters:
  queryName - The name of the query to execute. The actual definitionof the query with this name depends on the implementation of thepersistence manager.
Parameters:
  queryArguments - All query arguments in the order in which theyappear in the query text.
throws:
  PersistenceException - Thrown if the query cannot be performed forany reason.



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