Class ConnectionManager
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.ConnectionManager
-
public class ConnectionManager extends Object
H2 connection manager.
-
-
Constructor Summary
Constructors Constructor Description ConnectionManager(GridKernalContext ctx)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description H2PooledConnectionconnection()H2PooledConnectionconnection(String schema)org.h2.store.DataHandlerdataHandler()voidexecuteStatement(String schema, String sql)Execute SQL statement on specific schema.voidexecuteSystemStatement(String sql)Execute statement on H2 INFORMATION_SCHEMA.voidonCacheDestroyed()Clear statement cache when cache is unregistered..voidonKernalStop()Cancel all queries.voidstop()Close executor.
-
-
-
Constructor Detail
-
ConnectionManager
public ConnectionManager(GridKernalContext ctx)
Constructor.- Parameters:
ctx- Context.
-
-
Method Detail
-
executeStatement
public void executeStatement(String schema, String sql) throws IgniteCheckedException
Execute SQL statement on specific schema.- Parameters:
schema- Schemasql- SQL statement.- Throws:
IgniteCheckedException- If failed.
-
executeSystemStatement
public void executeSystemStatement(String sql) throws IgniteCheckedException
Execute statement on H2 INFORMATION_SCHEMA.- Parameters:
sql- SQL statement.- Throws:
IgniteCheckedException- On error.
-
onCacheDestroyed
public void onCacheDestroyed()
Clear statement cache when cache is unregistered..
-
onKernalStop
public void onKernalStop()
Cancel all queries.
-
stop
public void stop()
Close executor.
-
connection
public H2PooledConnection connection(String schema)
- Parameters:
schema- Schema name.- Returns:
- Connection with setup schema.
-
connection
public H2PooledConnection connection()
- Returns:
- H2 connection wrapper.
-
dataHandler
public org.h2.store.DataHandler dataHandler()
- Returns:
- Data handler.
-
-