Source Code Cross Referenced for StoreManager.java in  » Database-DBMS » Ozone-1.1 » org » ozoneDB » core » 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 DBMS » Ozone 1.1 » org.ozoneDB.core 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        // You can redistribute this software and/or modify it under the terms of
002:        // the Ozone Core License version 1 published by ozone-db.org.
003:        //
004:        // The original code and portions created by SMB are
005:        // Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
006:        //
007:        // $Id: StoreManager.java,v 1.2 2002/06/08 00:49:38 mediumnet Exp $
008:
009:        package org.ozoneDB.core;
010:
011:        import java.io.*;
012:        import org.ozoneDB.DxLib.*;
013:        import org.ozoneDB.*;
014:
015:        /**
016:         * Together with the {@link ObjectContainer} interface this is the StoreManager
017:         * back-end API.<p>
018:         * 
019:         * 
020:         * @author <a href="http://www.softwarebuero.de/">SMB</a>
021:         * @version $Revision: 1.2 $Date: 2002/06/08 00:49:38 $
022:         */
023:        public interface StoreManager {
024:
025:            /**
026:             * Aid constructor, because a store is instantiated with 'newInstance',
027:             * where we've got no arguments.
028:             */
029:            public void init(Env env);
030:
031:            public void startup() throws Exception;
032:
033:            public void shutdown() throws Exception;
034:
035:            public Object newTransactionData();
036:
037:            /**
038:             * Creates a new object container and initializes it with the specified
039:             * target object. The new container is immediatly accessible from the calling
040:             * transaction via containerByID but it is not joined to this transaction.
041:             * It needs to be joined and commited afterwards.
042:             * 
043:             * Iff this method returns normally, the returned container is pinned and thus has to be unpinned.
044:             * Iff this method returns normally, the returned container is locked with the given lock level.
045:             * 
046:             * @param ta
047:             * @param target
048:             * @param objID
049:             * @param permission
050:             * @param name
051:             * @return An container-proxy for the created container.
052:             */
053:            public ObjectContainer newContainerAndPinAndLock(Transaction ta,
054:                    OzoneCompatible target, ObjectID objID,
055:                    Permissions permissions, int lockLevel) throws Exception;
056:
057:            /**
058:             * Update lock level of the given container according to the leve of the
059:             * containers lock object.
060:             */
061:            public void updateLockLevel(Transaction ta,
062:                    ObjectContainer container) throws IOException;
063:
064:            /**
065:             * Prepare the specified transaction for commit. All operations that may
066:             * fail during the commit process should be done here. However, this method
067:             * must not change any global data structures such as the idTable that
068:             * are used by other transactions too.<p>
069:             * 
070:             * The {@link TransactionManager} let this method run exclusivly. However,
071:             * {@link  prepareCommitTransaction} and {@link commitTransaction} are not
072:             * an atomar operation.
073:             * 
074:             * 
075:             * @param ta Transaction that will be commited.
076:             */
077:            public void prepareCommitTransaction(Transaction ta)
078:                    throws IOException, ClassNotFoundException;
079:
080:            public void commitTransaction(Transaction ta) throws IOException,
081:                    ClassNotFoundException;
082:
083:            /**
084:             * @param ta ID of the comitting transaction.
085:             * @param created
086:             * @param modified
087:             */
088:            public void abortTransaction(Transaction ta) throws IOException,
089:                    ClassNotFoundException;
090:
091:            public ObjectContainer containerForIDAndPin(Transaction ta,
092:                    ObjectID id) throws ObjectNotFoundExc, IOException,
093:                    ClassNotFoundException;
094:
095:            /**
096:             * @param name The object name to search for.
097:             * @param ta
098:             * @return The object container for the name or null.
099:             */
100:            public ObjectContainer containerForNameAndPin(Transaction ta,
101:                    String name) throws Exception;
102:
103:            /**
104:             * @param ta
105:             * @param container
106:             * @param name
107:             */
108:            public void nameContainer(Transaction ta,
109:                    ObjectContainer container, String name)
110:                    throws PermissionDeniedExc;
111:
112:            /**
113:             * Force the Store to make a guess which objects are used together with the
114:             * container with the specified id.
115:             * @param id The ObjectID if the container.
116:             */
117:            public DxBag clusterOfID(ObjectID id) throws Exception;
118:
119:            public DxIterator objectIDIterator();
120:
121:            /**
122:            	Tells this StoreManager to report every named object to the garbage collector.
123:             */
124:            public void reportNamedObjectsToGarbageCollector();
125:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.