Source Code Cross Referenced for CollectionManagementServiceImpl.java in  » Database-DBMS » Ozone-1.1 » org » ozoneDB » xml » cli » services » 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.xml.cli.services 
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 Library 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:        package org.ozoneDB.xml.cli.services;
008:
009:        import org.ozoneDB.Database;
010:        import org.ozoneDB.OzoneInterface;
011:        import org.ozoneDB.xml.core.XMLCollection;
012:        import org.ozoneDB.xml.core.XMLCollectionImpl;
013:        import org.ozoneDB.xml.cli.CollectionImpl;
014:
015:        import org.xmldb.api.base.Service;
016:        import org.xmldb.api.base.XMLDBException;
017:        import org.xmldb.api.base.Collection;
018:        import org.xmldb.api.base.ErrorCodes;
019:
020:        /**
021:         * @author Per Nyfelt
022:         */
023:        public class CollectionManagementServiceImpl implements 
024:                org.xmldb.api.modules.CollectionManagementService {
025:
026:            private final String version = "0.1";
027:            private Collection collection = null;
028:
029:            //private OzoneInterface db = null;
030:
031:            /** Creates new CollectionManagementServiceImpl */
032:            public CollectionManagementServiceImpl() {
033:                //db = new Database();
034:            }
035:
036:            /** Create a new child collection  */
037:            public Collection createCollection(String name)
038:                    throws XMLDBException {
039:                try {
040:                    // get the XMLCollection from the database
041:                    // create a new XMLCollection
042:                    // set the parent-child relationships
043:                    throw new XMLDBException(ErrorCodes.VENDOR_ERROR,
044:                            "Not yet implemented");
045:                } catch (Exception e) {
046:                    throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e
047:                            .getMessage());
048:                }
049:            }
050:
051:            /** Remove the named collection  */
052:            public void removeCollection(String name) throws XMLDBException {
053:                try {
054:                    throw new XMLDBException(ErrorCodes.VENDOR_ERROR,
055:                            "Not implemented yet");
056:                    //db.deleteObject((XMLCollection)db.objectForName(name));
057:                    //System.out.println("CollectionStorageHelper.deleteCollection() - deleted " + name);        
058:                } catch (Exception e) {
059:                    throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e
060:                            .getMessage());
061:                }
062:            }
063:
064:            /**
065:             * Gets the Version attribute of the Service object
066:             *
067:             * @return The Version value
068:             * @exception XMLDBException with expected error codes.<br />
069:             * <code>ErrorCodes.VENDOR_ERROR</code> for any vendor
070:             * specific errors that occur.<br />
071:             */
072:            public String getVersion() throws XMLDBException {
073:                return version;
074:            }
075:
076:            /**
077:             * Returns the name associated with the Configurable object.
078:             *
079:             * @return the name of the object.
080:             * @exception XMLDBException with expected error codes.<br />
081:             * <code>ErrorCodes.VENDOR_ERROR</code> for any vendor
082:             * specific errors that occur.<br />
083:             */
084:            public String getName() throws XMLDBException {
085:                // return "CollectionManagementService"
086:                return super .getClass().getName();
087:            }
088:
089:            /**
090:             * Sets the property <code>name</code> to have the value provided in
091:             * <code>value</code>.
092:             *
093:             * @param name the name of the property to set.
094:             * @param value the value to set for the property.
095:             * @exception XMLDBException with expected error codes.<br />
096:             * <code>ErrorCodes.VENDOR_ERROR</code> for any vendor
097:             * specific errors that occur.<br />
098:             */
099:            public void setProperty(String name, String value)
100:                    throws XMLDBException {
101:                // do nothing
102:            }
103:
104:            /**
105:             * Sets the Collection attribute of the Service object
106:             *
107:             * @param col The new Collection value
108:             * @exception XMLDBException with expected error codes.<br />
109:             * <code>ErrorCodes.VENDOR_ERROR</code> for any vendor
110:             * specific errors that occur.<br />
111:             */
112:            public void setCollection(Collection col) throws XMLDBException {
113:                this .collection = col;
114:            }
115:
116:            /**
117:             * Returns the value of the property identified by <code>name</code>.
118:             *
119:             * @param name the name of the property to retrieve.
120:             * @return the property value or null if no property exists.
121:             * @exception XMLDBException with expected error codes.<br />
122:             * <code>ErrorCodes.VENDOR_ERROR</code> for any vendor
123:             * specific errors that occur.<br />
124:             */
125:            public String getProperty(String name) throws XMLDBException {
126:                return null;
127:            }
128:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.