Package org.apache.calcite.test
Class CalciteAssert.ConnectionFactory
- java.lang.Object
-
- org.apache.calcite.test.CalciteAssert.ConnectionFactory
-
- Direct Known Subclasses:
CalciteAssert.MapConnectionFactory
,CalciteAssert.PoolingConnectionFactory
- Enclosing class:
- CalciteAssert
public abstract static class CalciteAssert.ConnectionFactory extends java.lang.Object
Abstract implementation of connection factory whosewith
methods throw.Avoid creating new sub-classes otherwise it would be hard to support
.with(property, value).with(...)
kind of chains.If you want augment the connection, use
CalciteAssert.ConnectionPostProcessor
.
-
-
Constructor Summary
Constructors Constructor Description ConnectionFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.sql.Connection
createConnection()
CalciteAssert.ConnectionFactory
with(java.lang.String property, java.lang.Object value)
CalciteAssert.ConnectionFactory
with(org.apache.calcite.avatica.ConnectionProperty property, java.lang.Object value)
CalciteAssert.ConnectionFactory
with(CalciteAssert.ConnectionPostProcessor postProcessor)
-
-
-
Method Detail
-
createConnection
public abstract java.sql.Connection createConnection() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
with
public CalciteAssert.ConnectionFactory with(java.lang.String property, java.lang.Object value)
-
with
public CalciteAssert.ConnectionFactory with(org.apache.calcite.avatica.ConnectionProperty property, java.lang.Object value)
-
with
public CalciteAssert.ConnectionFactory with(CalciteAssert.ConnectionPostProcessor postProcessor)
-
-