Interface IQuerySession
public interface IQuerySession
Definition of a query session.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the query should be abortedgetCatalogProperty(String alias, String key) Get catalog property.default ValueVectorgetCatalogProperty(String alias, String key, ValueVector defaultValue) Get catalog property with default value supportGet the current default catalog aliasGet the generic cachelongReturn the execution time in ms.longReturn the row count for the last executed statementGet the print writer used for message outputsReturns the system catalogdefault voidHandle known exception from catalogs.voidregisterAbortListener(Runnable listener) Register an abort query listener to session.default voidsetCatalogProperty(String catalogAlias, String key, boolean value) Set boolean catalog propertydefault voidsetCatalogProperty(String catalogAlias, String key, int value) Set integer catalog propertydefault voidsetCatalogProperty(String catalogAlias, String key, Object value) Set object catalog propertydefault voidsetCatalogProperty(String catalogAlias, String key, String value) Set string catalog propertyvoidsetCatalogProperty(String catalogAlias, String key, ValueVector value) Set catalog propertyvoidunregisterAbortListener(Runnable listener) Unregister provided abort listener
-
Method Details
-
getSystemCatalog
Catalog getSystemCatalog()Returns the system catalog -
getDefaultCatalogAlias
String getDefaultCatalogAlias()Get the current default catalog alias -
getCatalogProperty
Get catalog property. If no value is found a nullValueVectoris returned -
getCatalogProperty
Get catalog property with default value support -
setCatalogProperty
Set catalog property -
setCatalogProperty
Set string catalog property -
setCatalogProperty
Set integer catalog property -
setCatalogProperty
Set boolean catalog property -
setCatalogProperty
Set object catalog property -
getGenericCache
GenericCache getGenericCache()Get the generic cache -
abortQuery
boolean abortQuery()Returns true if the query should be aborted -
registerAbortListener
Register an abort query listener to session. This is called if the query should be aborted andIDatasource's can register to close connections etc. NOTE! Are called on a separate thread from the thread that executes the query -
unregisterAbortListener
Unregister provided abort listener -
getPrintWriter
Writer getPrintWriter()Get the print writer used for message outputs -
handleKnownException
Handle known exception from catalogs. For example a SQLException that is thrown during execution but is not crucial for the whole execution. -
getLastQueryExecutionTime
long getLastQueryExecutionTime()Return the execution time in ms. for the last executed statement -
getLastQueryRowCount
long getLastQueryRowCount()Return the row count for the last executed statement
-