Thanks to visit codestin.com
Credit goes to github.com

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

Commit 5ff83eb

Browse files
author
Klemens Burchardi
committed
* moved non implemented methods from RestGraphDatabase to
AbstractRemoteDatabase
1 parent 46d00d1 commit 5ff83eb

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
package org.neo4j.rest.graphdb;
2+
3+
import java.io.Serializable;
4+
import java.util.Map;
5+
6+
import org.neo4j.graphdb.Node;
7+
import org.neo4j.graphdb.RelationshipType;
8+
import org.neo4j.graphdb.Transaction;
9+
import org.neo4j.graphdb.event.KernelEventHandler;
10+
import org.neo4j.graphdb.event.TransactionEventHandler;
11+
import org.neo4j.kernel.AbstractGraphDatabase;
12+
13+
abstract class AbstractRemoteDatabase extends AbstractGraphDatabase {
14+
public Transaction beginTx() {
15+
return new Transaction() {
16+
public void success() {
17+
}
18+
19+
public void finish() {
20+
21+
}
22+
23+
public void failure() {
24+
}
25+
};
26+
}
27+
28+
public <T> TransactionEventHandler<T> registerTransactionEventHandler( TransactionEventHandler<T> tTransactionEventHandler ) {
29+
throw new UnsupportedOperationException();
30+
}
31+
32+
public <T> TransactionEventHandler<T> unregisterTransactionEventHandler( TransactionEventHandler<T> tTransactionEventHandler ) {
33+
throw new UnsupportedOperationException();
34+
}
35+
36+
public KernelEventHandler registerKernelEventHandler( KernelEventHandler kernelEventHandler ) {
37+
throw new UnsupportedOperationException();
38+
}
39+
40+
public KernelEventHandler unregisterKernelEventHandler( KernelEventHandler kernelEventHandler ) {
41+
throw new UnsupportedOperationException();
42+
}
43+
44+
public boolean enableRemoteShell() {
45+
throw new UnsupportedOperationException();
46+
}
47+
48+
public boolean enableRemoteShell( Map<String, Serializable> config ) {
49+
throw new UnsupportedOperationException();
50+
}
51+
52+
public Iterable<Node> getAllNodes() {
53+
throw new UnsupportedOperationException();
54+
}
55+
56+
public Iterable<RelationshipType> getRelationshipTypes() {
57+
throw new UnsupportedOperationException();
58+
}
59+
60+
@Override
61+
public <T> T getManagementBean(Class<T> type) {
62+
return null;
63+
}
64+
65+
public void shutdown() {
66+
}
67+
68+
}

0 commit comments

Comments
 (0)