Package org.liquigraph.testing
Class JdbcAwareGraphDatabase
- java.lang.Object
-
- org.liquigraph.testing.JdbcAwareGraphDatabase
-
public class JdbcAwareGraphDatabase extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Supplier<Connection>asConnectionSupplier(String uri)StringboltJdbcUrl()voidcleanUp()JdbcAwareGraphDatabasecommitNewConnection(String url, ThrowingConsumer<Connection,SQLException> connectionConsumer)JdbcAwareGraphDatabasecommitNewSingleStatementConnection(String url, ThrowingConsumer<Statement,SQLException> statementConsumer)static JdbcAwareGraphDatabasecreateCommunityInstance()static JdbcAwareGraphDatabasecreateEnterpriseInstance()voidensureStarted()StringhttpJdbcUrl()Optional<String>password()Propertiesprops()JdbcAwareGraphDatabaserollbackNewConnection(String url, ThrowingConsumer<Connection,SQLException> connectionConsumer)JdbcAwareGraphDatabaserollbackNewSingleStatementConnection(String url, ThrowingConsumer<Statement,SQLException> statementConsumer)Optional<String>username()
-
-
-
Method Detail
-
createCommunityInstance
public static JdbcAwareGraphDatabase createCommunityInstance()
-
createEnterpriseInstance
public static JdbcAwareGraphDatabase createEnterpriseInstance()
-
commitNewSingleStatementConnection
public JdbcAwareGraphDatabase commitNewSingleStatementConnection(String url, ThrowingConsumer<Statement,SQLException> statementConsumer)
-
commitNewConnection
public JdbcAwareGraphDatabase commitNewConnection(String url, ThrowingConsumer<Connection,SQLException> connectionConsumer)
-
rollbackNewSingleStatementConnection
public JdbcAwareGraphDatabase rollbackNewSingleStatementConnection(String url, ThrowingConsumer<Statement,SQLException> statementConsumer)
-
rollbackNewConnection
public JdbcAwareGraphDatabase rollbackNewConnection(String url, ThrowingConsumer<Connection,SQLException> connectionConsumer)
-
ensureStarted
public void ensureStarted()
-
asConnectionSupplier
public Supplier<Connection> asConnectionSupplier(String uri)
-
boltJdbcUrl
public String boltJdbcUrl()
-
httpJdbcUrl
public String httpJdbcUrl()
-
props
public Properties props()
-
cleanUp
public void cleanUp()
-
-