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

All known Subclasses:   com.ivata.mask.web.demo.catalog.Catalog,
PersistenceManager
public interface PersistenceManager (Code)

Defines how data objects are stored and retrieved throughout the system.

For each ivata masks implementation, you will need an implementation of this interface. Think of it as an Adapter to your persistence layer.


author:
   Colin MacLeod
author:
   colin.macleod@ivata.com
since:
   ivata masks 0.3 (2004-03-27)
version:
   $Revision: 1.5 $




Method Summary
 ValueObjectadd(PersistenceSession session, ValueObject valueObject)
     Store a new value object.
 voidamend(PersistenceSession session, ValueObject valueObject)
     Amend a previously stored value object, after changes have been made. This is analagous to a database UPDATE.
Parameters:
  session - current persistence session.
 ListfindAll(PersistenceSession session, Class dOClass)
     Find all value objects in the system with the given class.
 ValueObjectfindByPrimaryKey(PersistenceSession session, Class dOClass, Serializable key)
     Find a single value object with the unique identifier given.
 PersistenceSessionopenSession(HttpSession webSession)
     Before performing any other persistence operation, you need to open a valid persistence session.
 PersistenceSessionopenSession(Object systemSession)
     Before performing any other persistence operation, you need to open a valid persistence session.
 voidremove(PersistenceSession session, Class dOClass, Serializable key)
     Remove a value object from the persistence store.



Method Detail
add
ValueObject add(PersistenceSession session, ValueObject valueObject) throws PersistenceException(Code)
Store a new value object. This is analagous to a database INSERT.
Parameters:
  session - current persistence session. Should have been previouslyopened with PersistenceManager.openSession() openSession().
Parameters:
  valueObject - new value object which should be saved. the value object which is currently persisted.
throws:
  PersistenceException - if the object cannot be persisted.



amend
void amend(PersistenceSession session, ValueObject valueObject) throws PersistenceException(Code)
Amend a previously stored value object, after changes have been made. This is analagous to a database UPDATE.
Parameters:
  session - current persistence session. Should have been previouslyopened with PersistenceManager.openSession() openSession().
Parameters:
  valueObject - value object for which changes should be saved.
throws:
  PersistenceException - if the object cannot be persisted.



findAll
List findAll(PersistenceSession session, Class dOClass) throws PersistenceException(Code)
Find all value objects in the system with the given class. This is analagous to a database SELECT * FROM ....
Parameters:
  session - current persistence session. Should have been previouslyopened with PersistenceManager.openSession() openSession().
Parameters:
  dOClass - class of value objects to return. a List of instances of the class specified.
throws:
  PersistenceException - if no object can be found, or there is an error looking forobjects of this class.



findByPrimaryKey
ValueObject findByPrimaryKey(PersistenceSession session, Class dOClass, Serializable key) throws PersistenceException(Code)
Find a single value object with the unique identifier given. This is analagous to a database SELECT UNIQUE ... FROM WHERE ....
Parameters:
  session - current persistence session. Should have been previouslyopened with PersistenceManager.openSession() openSession().
Parameters:
  dOClass - class of value object to find.
Parameters:
  key - unique identifier of the object to find. The exact meaning ofthis field depends on the persistence mechanism used. an instance of the class specified with the matching identifier.
throws:
  PersistenceException - if no object can be found, or there is an error looking forthis object.



openSession
PersistenceSession openSession(HttpSession webSession) throws PersistenceException(Code)
Before performing any other persistence operation, you need to open a valid persistence session. An ivata masks persistence session can be considered analagous to a database transaction.
Parameters:
  webSession - Current HTTP session we are processing. a valid, open persistence session.
throws:
  PersistenceException - if the session cannot be opened for any reason.



openSession
PersistenceSession openSession(Object systemSession) throws PersistenceException(Code)
Before performing any other persistence operation, you need to open a valid persistence session. An ivata masks persistence session can be considered analagous to a database transaction.
Parameters:
  systemSession - system/implementation-specific session object whichwill be wrapped by the persistence session. a valid, open persistence session.
throws:
  PersistenceException - if the session cannot be opened for any reason.



remove
void remove(PersistenceSession session, Class dOClass, Serializable key) throws PersistenceException(Code)
Remove a value object from the persistence store. This is analagous to a database DELETE.
Parameters:
  session - current persistence session. Should have been previouslyopened with PersistenceManager.openSession() openSession().
Parameters:
  dOClass - class of value object to remove.
Parameters:
  key - unique identifier of the object to remove. The exact meaningof this field depends on the persistence mechanism used.
throws:
  PersistenceException - if the object cannot be removed.



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