Source Code Cross Referenced for ComplexMapping.java in  » Database-ORM » TJDO » com » triactive » jdo » store » 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 » TJDO » com.triactive.jdo.store 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         * Copyright 2004 (C) TJDO.
03:         * All rights reserved.
04:         *
05:         * This software is distributed under the terms of the TJDO License version 1.0.
06:         * See the terms of the TJDO License in the documentation provided with this software.
07:         *
08:         * $Id: ComplexMapping.java,v 1.2 2004/02/01 18:22:42 jackknifebarber Exp $
09:         */
10:
11:        package com.triactive.jdo.store;
12:
13:        import com.triactive.jdo.StateManager;
14:
15:        /**
16:         * A database mapping that incorporates custom logic for object storage and
17:         * retrieval.
18:         *
19:         * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
20:         * @version $Revision: 1.2 $
21:         */
22:
23:        public abstract class ComplexMapping extends Mapping {
24:            /**
25:             * Create a new complex mapping with the given DatabaseAdapter for the given
26:             * type.
27:             * 
28:             * @param dba   The DatabaseAdapter that this Mapping should use.
29:             * @param type  The Class that this mapping maps to the database.
30:             */
31:
32:            protected ComplexMapping(DatabaseAdapter dba, Class type) {
33:                super (dba, type);
34:            }
35:
36:            /**
37:             * Inserts an object in the database.
38:             *
39:             * @param sm
40:             *      The state manager of the instance owning the Java object being
41:             *      inserted.
42:             * @param value
43:             *      The object to insert.
44:             */
45:
46:            public abstract void insertObject(StateManager sm, Object value);
47:
48:            /**
49:             * Fetchs an object from the database.
50:             *
51:             * @param sm
52:             *      The state manager of the instance owning the Java object being
53:             *      fetched.
54:             */
55:
56:            public abstract Object fetchObject(StateManager sm);
57:
58:            /**
59:             * Updates an object in the database.
60:             *
61:             * @param sm
62:             *      The state manager of the instance owning the Java object being
63:             *      updated.
64:             * @param value
65:             *      The object to update.
66:             */
67:
68:            public abstract void updateObject(StateManager sm, Object value);
69:
70:            /**
71:             * Deletes an object from the database.
72:             *
73:             * @param sm
74:             *      The state manager of the instance owning the Java object being
75:             *      deleted.
76:             */
77:
78:            public abstract void deleteObject(StateManager sm);
79:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.