Java Doc for AttributePersistenceManager.java in  » EJB-Server-JBoss-4.2.1 » jmx » org » jboss » mx » 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 » EJB Server JBoss 4.2.1 » jmx » org.jboss.mx.persistence 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.mx.persistence.AttributePersistenceManager

AttributePersistenceManager
public interface AttributePersistenceManager (Code)
AttributePersistenceManager interface. Implementations of this interface are created by an MBean service that acts as factory and a manager for the active AttributePersistenceManager implementation The DelegatingPersistenceManager will contact the MBean to get an AttributePersistenceManager implementation. In this way, the Persistence Manager can be controlled externally as an MBean.
author:
   Dimitris Andreadis
version:
   $Revision: 57200 $




Method Summary
public  voidcreate(String version, Element config)
     Initializes the AttributePersistenceManager using the supplied configuration element CONFIG_ELEMENT whose content will be probably different for each particular implementation. The version string is a tag that must be used by the AttributePersistenceManager implementation to make sure that data saved/loaded under different version tags are partitioned.
public  voiddestroy()
     Releases resources and destroys the AttributePersistenceManager.
public  booleanexists(String id)
    
public  booleangetState()
     Returns true if the AttributePersistenceManager is "in-service" state, i.e.
public  String[]listAll()
     Returns a String array with all the saved ids under the configured version tag.
public  AttributeListload(String id)
     Uses the specified id to retrieve a previously persisted AttributeList.
public  voidremove(String id)
    
public  voidremoveAll()
     Removes all the persisted data stored under the configured version tag.
public  voidstore(String id, AttributeList attrs)
     Persists an AttributeList (name/value pair list), under a specified id.



Method Detail
create
public void create(String version, Element config) throws Exception(Code)
Initializes the AttributePersistenceManager using the supplied configuration element CONFIG_ELEMENT whose content will be probably different for each particular implementation. The version string is a tag that must be used by the AttributePersistenceManager implementation to make sure that data saved/loaded under different version tags are partitioned. It can be null or empty to indicate that no particular version tag is required. Once created, the configuration of the implementation object cannot change. Calling any other method before create() is executed will result in a IllegalStateException Finally, the implementation should be prepared to receive multiple concurrent calls.
Parameters:
  version - a tag to identify the version
Parameters:
  config - XML Element to load arbitrary config
throws:
  Exception - when any error occurs during create



destroy
public void destroy()(Code)
Releases resources and destroys the AttributePersistenceManager. The object is unusable after destroy() has been called. Any call to any method will result to an IllegalStateException.



exists
public boolean exists(String id) throws Exception(Code)
Checks if a persistened AttributeList for this particular id exists
Parameters:
  id - the key of the image true if an image exists; false otherwise
throws:
  Exception - on any error



getState
public boolean getState()(Code)
Returns true if the AttributePersistenceManager is "in-service" state, i.e. after create() and before destroy() has been called, false otherwise. true if in operational state



listAll
public String[] listAll() throws Exception(Code)
Returns a String array with all the saved ids under the configured version tag. array with all persisted ids
throws:
  Exception - when any error occurs



load
public AttributeList load(String id) throws Exception(Code)
Uses the specified id to retrieve a previously persisted AttributeList. If no data can be found under the specified id, a null will be returned.
Parameters:
  id - the key for retrieving the data the data, or null
throws:
  Exception - when an error occurs



remove
public void remove(String id) throws Exception(Code)
Removes the persisted AttributeList, if exists
Parameters:
  id - the key of the image
throws:
  Exception - when any error occurs



removeAll
public void removeAll() throws Exception(Code)
Removes all the persisted data stored under the configured version tag.
throws:
  Exception - when any error occurs



store
public void store(String id, AttributeList attrs) throws Exception(Code)
Persists an AttributeList (name/value pair list), under a specified id. The id can be used to retrieve the AttributeList later on. The actual mechanism will differ among implementations.
Parameters:
  id - the key for retrieving the data later on, not null
Parameters:
  attrs - the data to be persisted, not null
throws:
  Exception - when data cannot be persisted



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