View Javadoc

1   /*
2    * Copyright 2001-2005 The Apache Software Foundation.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package net.sf.nxqd.xmldb;
17  
18  import java.io.File;
19  import java.io.StringReader;
20  import java.util.Iterator;
21  import java.util.List;
22  import java.util.logging.Level;
23  import java.util.logging.Logger;
24  
25  import javax.xml.transform.TransformerException;
26  import javax.xml.transform.sax.SAXSource;
27  import javax.xml.transform.stream.StreamSource;
28  
29  import org.xml.sax.InputSource;
30  import org.xmldb.api.base.Collection;
31  import org.xmldb.api.base.ErrorCodes;
32  import org.xmldb.api.base.Resource;
33  import org.xmldb.api.base.ResourceSet;
34  import org.xmldb.api.base.XMLDBException;
35  import org.xmldb.api.modules.XUpdateQueryService;
36  import org.xmldb.api.reference.ResourceSetImpl;
37  import org.xmldb.api.reference.modules.XMLResourceImpl;
38  
39  /**
40   * The class <code>NxqdXUpdateQueryService</code> is an implemenation of
41   * <code>org.xmldb.api.modules.XUpdateQueryService</code>.
42   *
43   * @see org.xmldb.api.modules.XUpdateQueryService
44   *
45   * @author <a href="mailto:webhiker@sourceforge.net">webhiker</a>
46   * @version 1.0
47   */
48  public class NxqdXUpdateQueryService extends NxqdService implements XUpdateQueryService {
49      private static Logger logger = Logger.getLogger(NxqdXUpdateQueryService.class.getName());
50  
51      /**
52       *  
53       */
54      public NxqdXUpdateQueryService() {
55  	super(NxqdXUpdateQueryService.class.getName(),"1.0");
56      }
57  
58      /**
59       * @see org.xmldb.api.modules.XUpdateQueryService#update(java.lang.String)
60       */
61      public long update(java.lang.String commands) throws XMLDBException {
62          // TODO fill this method in
63  	    throw new XMLDBException(ErrorCodes.VENDOR_ERROR,
64  				     "Not yet supported");
65      }
66  
67      /**
68       * @see org.xmldb.api.modules.XUpdateQueryService#update(java.lang.String)
69       */
70      public long updateResource(java.lang.String id, java.lang.String commands) throws XMLDBException {
71          // TODO fill this method in
72  	    throw new XMLDBException(ErrorCodes.VENDOR_ERROR,
73  				     "Not yet supported");
74      }
75  
76  }