|
| 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