@Override public long commit( TransactionToApply batch, CommitEvent commitEvent, TransactionApplicationMode mode ) throws TransactionFailureException { throw new ReadOnlyDbException(); } }
@Override public int getOrCreateId( String name ) { Integer id = tokenRegistry.getId( name ); if ( id != null ) { return id; } // Let's create it try { return createToken( name ); } catch ( ReadOnlyDbException e ) { throw new TransactionFailureException( e.getMessage(), e ); } catch ( Throwable e ) { throw new TransactionFailureException( "Could not create token.", e ); } }
throw new TransactionFailureException( e.getMessage(), e );
@Override public int createToken( String name ) throws ReadOnlyDbException { throw new ReadOnlyDbException(); }
@Override public int getOrCreateId( String name ) { Integer id = tokenRegistry.getId( name ); if ( id != null ) { return id; } // Let's create it try { return createToken( name ); } catch ( ReadOnlyDbException e ) { throw new TransactionFailureException( e.getMessage(), e ); } catch ( Throwable e ) { throw new TransactionFailureException( "Could not create token.", e ); } }
@Override public void createTokens( String[] names, int[] ids, IntPredicate filter ) throws ReadOnlyDbException { throw new ReadOnlyDbException(); } }
throw new TransactionFailureException( e.getMessage(), e );
@Override public void createTokens( String[] names, int[] ids, IntPredicate filter ) throws ReadOnlyDbException { throw new ReadOnlyDbException(); } }
@Override public int createToken( String name ) throws ReadOnlyDbException { throw new ReadOnlyDbException(); }
@Override public long commit( TransactionToApply batch, CommitEvent commitEvent, TransactionApplicationMode mode ) throws TransactionFailureException { throw new ReadOnlyDbException(); } }
@Override public void acquireExclusive( LockTracer tracer, ResourceType resourceType, long... resourceIds ) throws AcquireLockTimeoutException { throw new RuntimeException( new ReadOnlyDbException() ); }
@Override public boolean tryExclusiveLock( ResourceType resourceType, long resourceId ) { throw new RuntimeException( new ReadOnlyDbException() ); }