Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
* moved non implemented methods from RestGraphDatabase to
Browse files Browse the repository at this point in the history
AbstractRemoteDatabase
  • Loading branch information
Klemens Burchardi committed Sep 12, 2011
1 parent 46d00d1 commit 5ff83eb
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions src/main/java/org/neo4j/rest/graphdb/AbstractRemoteDatabase.java
Original file line number Diff line number Diff line change
@@ -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 <T> TransactionEventHandler<T> registerTransactionEventHandler( TransactionEventHandler<T> tTransactionEventHandler ) {
throw new UnsupportedOperationException();
}

public <T> TransactionEventHandler<T> unregisterTransactionEventHandler( TransactionEventHandler<T> 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<String, Serializable> config ) {
throw new UnsupportedOperationException();
}

public Iterable<Node> getAllNodes() {
throw new UnsupportedOperationException();
}

public Iterable<RelationshipType> getRelationshipTypes() {
throw new UnsupportedOperationException();
}

@Override
public <T> T getManagementBean(Class<T> type) {
return null;
}

public void shutdown() {
}

}

0 comments on commit 5ff83eb

Please sign in to comment.