This repository has been archived by the owner on Apr 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* moved non implemented methods from RestGraphDatabase to
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.
There are no files selected for viewing
68 changes: 68 additions & 0 deletions
68
src/main/java/org/neo4j/rest/graphdb/AbstractRemoteDatabase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { | ||
} | ||
|
||
} |