/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.hp.hpl.jena.tdb.nodetable;

public class NodeTableReadonly extends NodeTableWrapper
{
    public NodeTableReadonly(NodeTable nodeTable)
    {
        super(nodeTable) ;
    }

}

@@ -840,16 +840,137 @@
 table;%0A%0A
+import com.hp.hpl.jena.graph.Node ;%0Aimport com.hp.hpl.jena.tdb.TDBException ;%0Aimport com.hp.hpl.jena.tdb.store.NodeId ;%0A%0A
 public c
@@ -1109,10 +1109,281 @@
 %0A    %7D%0A%0A
+    @Override%0A    public NodeId getAllocateNodeId(Node node)%0A    %7B%0A        NodeId nodeId = getNodeIdForNode(node) ;%0A        if ( NodeId.isDoesNotExist(nodeId) )%0A            throw new TDBException(%22Allocation attempt on NodeTableReadonly%22) ;%0A        return nodeId ;%0A    %7D%0A
 %7D%0A

Make a read-only node table check it is used read-only.