Class HQLConnection
- java.lang.Object
-
- org.pentaho.platform.plugin.services.connections.hql.HQLConnection
-
- All Implemented Interfaces:
org.pentaho.commons.connection.ILimitableConnection,org.pentaho.commons.connection.IPentahoConnection,org.pentaho.platform.engine.core.system.IPentahoLoggingConnection
public class HQLConnection extends Object implements org.pentaho.platform.engine.core.system.IPentahoLoggingConnection, org.pentaho.commons.connection.ILimitableConnection
- Author:
- mdamour TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
-
-
Field Summary
Fields Modifier and Type Field Description protected StringlastQueryprotected org.pentaho.platform.api.engine.ILoggerlogger-
Fields inherited from interface org.pentaho.commons.connection.IPentahoConnection
CLASSNAME_KEY, CONNECTION, CONNECTION_NAME, DRIVER_KEY, HQL_DATASOURCE, JNDI_NAME_KEY, KEYS, LOCATION_KEY, MDX_DATASOURCE, MDX_OLAP4J_DATASOURCE, NONE_DATASOURCE, PASSWORD_KEY, PROVIDER, QUERY_KEY, SQL_DATASOURCE, USERNAME_KEY, XML_DATASOURCE
-
-
Constructor Summary
Constructors Constructor Description HQLConnection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearWarnings()voidclose()booleanconnect(Properties props)org.pentaho.commons.connection.IPentahoResultSetexecuteQuery(String query)org.pentaho.commons.connection.IPentahoResultSetgenerateResultSet(List list, String[] columnHeaders, org.hibernate.type.Type[] columnTypes)StringgetDatasourceType()return datasource type HQLStringgetLastQuery()org.pentaho.commons.connection.IPentahoResultSetgetResultSet()booleaninitialized()booleanisClosed()booleanisReadOnly()org.pentaho.commons.connection.IPentahoResultSetprepareAndExecuteQuery(String query, List parameters)booleanpreparedQueriesSupported()voidsetClassNames(String[] classNames)voidsetConfigFile(File hbmCfg)voidsetFetchSize(int fetchSize)voidsetLogger(org.pentaho.platform.api.engine.ILogger logger)voidsetMaxRows(int value)voidsetProperties(Properties props)voidsetQueryTimeout(int value)
-
-
-
Field Detail
-
lastQuery
protected String lastQuery
-
logger
protected org.pentaho.platform.api.engine.ILogger logger
-
-
Method Detail
-
setConfigFile
public void setConfigFile(File hbmCfg)
-
setClassNames
public void setClassNames(String[] classNames)
-
setLogger
public void setLogger(org.pentaho.platform.api.engine.ILogger logger)
- Specified by:
setLoggerin interfaceorg.pentaho.platform.engine.core.system.IPentahoLoggingConnection
-
setProperties
public void setProperties(Properties props)
- Specified by:
setPropertiesin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
initialized
public boolean initialized()
- Specified by:
initializedin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
getDatasourceType
public String getDatasourceType()
return datasource type HQL- Specified by:
getDatasourceTypein interfaceorg.pentaho.commons.connection.IPentahoConnection- Returns:
- datasource type
-
prepareAndExecuteQuery
public org.pentaho.commons.connection.IPentahoResultSet prepareAndExecuteQuery(String query, List parameters) throws Exception
- Specified by:
prepareAndExecuteQueryin interfaceorg.pentaho.commons.connection.IPentahoConnection- Throws:
Exception
-
preparedQueriesSupported
public boolean preparedQueriesSupported()
- Specified by:
preparedQueriesSupportedin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
close
public void close()
- Specified by:
closein interfaceorg.pentaho.commons.connection.IPentahoConnection
-
getLastQuery
public String getLastQuery()
- Specified by:
getLastQueryin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
executeQuery
public org.pentaho.commons.connection.IPentahoResultSet executeQuery(String query)
- Specified by:
executeQueryin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
generateResultSet
public org.pentaho.commons.connection.IPentahoResultSet generateResultSet(List list, String[] columnHeaders, org.hibernate.type.Type[] columnTypes)
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnlyin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
clearWarnings
public void clearWarnings()
- Specified by:
clearWarningsin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
getResultSet
public org.pentaho.commons.connection.IPentahoResultSet getResultSet()
- Specified by:
getResultSetin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
connect
public boolean connect(Properties props)
- Specified by:
connectin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
setMaxRows
public void setMaxRows(int value)
- Specified by:
setMaxRowsin interfaceorg.pentaho.commons.connection.ILimitableConnection- Specified by:
setMaxRowsin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
setFetchSize
public void setFetchSize(int fetchSize)
- Specified by:
setFetchSizein interfaceorg.pentaho.commons.connection.IPentahoConnection
-
setQueryTimeout
public void setQueryTimeout(int value)
- Specified by:
setQueryTimeoutin interfaceorg.pentaho.commons.connection.ILimitableConnection
-
-