diff --git a/src/main/java/org/neo4j/rest/graphdb/AbstractRemoteDatabase.java b/src/main/java/org/neo4j/rest/graphdb/AbstractRemoteDatabase.java new file mode 100644 index 0000000..161e0ad --- /dev/null +++ b/src/main/java/org/neo4j/rest/graphdb/AbstractRemoteDatabase.java @@ -0,0 +1,68 @@ +package org.neo4j.rest.graphdb; + +import java.io.Serializable; +import java.util.Map; + +import org.neo4j.graphdb.Node; +import org.neo4j.graphdb.RelationshipType; +import org.neo4j.graphdb.Transaction; +import org.neo4j.graphdb.event.KernelEventHandler; +import org.neo4j.graphdb.event.TransactionEventHandler; +import org.neo4j.kernel.AbstractGraphDatabase; + +abstract class AbstractRemoteDatabase extends AbstractGraphDatabase { + public Transaction beginTx() { + return new Transaction() { + public void success() { + } + + public void finish() { + + } + + public void failure() { + } + }; + } + + public TransactionEventHandler registerTransactionEventHandler( TransactionEventHandler tTransactionEventHandler ) { + throw new UnsupportedOperationException(); + } + + public TransactionEventHandler unregisterTransactionEventHandler( TransactionEventHandler tTransactionEventHandler ) { + throw new UnsupportedOperationException(); + } + + public KernelEventHandler registerKernelEventHandler( KernelEventHandler kernelEventHandler ) { + throw new UnsupportedOperationException(); + } + + public KernelEventHandler unregisterKernelEventHandler( KernelEventHandler kernelEventHandler ) { + throw new UnsupportedOperationException(); + } + + public boolean enableRemoteShell() { + throw new UnsupportedOperationException(); + } + + public boolean enableRemoteShell( Map config ) { + throw new UnsupportedOperationException(); + } + + public Iterable getAllNodes() { + throw new UnsupportedOperationException(); + } + + public Iterable getRelationshipTypes() { + throw new UnsupportedOperationException(); + } + + @Override + public T getManagementBean(Class type) { + return null; + } + + public void shutdown() { + } + +}