@ Override public void bind ( TransactionResource resource ) { if ( resource != null && resource instanceof Neo4JTransaction ) { ( ( Neo4JTransaction ) resource ) . setGraphDb ( factory . getConnection ( ) ) ; this . resource = resource ; } else { throw new KunderaTransactionException ( "Invalid transaction resource provided:" + resource + " Should have been an instance of :" + Neo4JTransaction . class ) ; } }
Binds Transaction resource to this client .