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
Modifier and TypeFieldDescriptionprotected String
protected org.pentaho.platform.api.engine.ILogger
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
boolean
connect
(Properties props) org.pentaho.commons.connection.IPentahoResultSet
executeQuery
(String query) org.pentaho.commons.connection.IPentahoResultSet
generateResultSet
(List list, String[] columnHeaders, org.hibernate.type.Type[] columnTypes) return datasource type HQLorg.pentaho.commons.connection.IPentahoResultSet
boolean
boolean
isClosed()
boolean
org.pentaho.commons.connection.IPentahoResultSet
prepareAndExecuteQuery
(String query, List parameters) boolean
void
setClassNames
(String[] classNames) void
setConfigFile
(File hbmCfg) void
setFetchSize
(int fetchSize) void
setLogger
(org.pentaho.platform.api.engine.ILogger logger) void
setMaxRows
(int value) void
setProperties
(Properties props) void
setQueryTimeout
(int value)
-
Field Details
-
lastQuery
-
logger
protected org.pentaho.platform.api.engine.ILogger logger
-
-
Constructor Details
-
HQLConnection
public HQLConnection()
-
-
Method Details
-
setConfigFile
-
setClassNames
-
setLogger
public void setLogger(org.pentaho.platform.api.engine.ILogger logger) - Specified by:
setLogger
in interfaceorg.pentaho.platform.engine.core.system.IPentahoLoggingConnection
-
setProperties
- Specified by:
setProperties
in interfaceorg.pentaho.commons.connection.IPentahoConnection
-
initialized
public boolean initialized()- Specified by:
initialized
in interfaceorg.pentaho.commons.connection.IPentahoConnection
-
getDatasourceType
return datasource type HQL- Specified by:
getDatasourceType
in interfaceorg.pentaho.commons.connection.IPentahoConnection
- Returns:
- datasource type
-
prepareAndExecuteQuery
public org.pentaho.commons.connection.IPentahoResultSet prepareAndExecuteQuery(String query, List parameters) throws Exception - Specified by:
prepareAndExecuteQuery
in interfaceorg.pentaho.commons.connection.IPentahoConnection
- Throws:
Exception
-
preparedQueriesSupported
public boolean preparedQueriesSupported()- Specified by:
preparedQueriesSupported
in interfaceorg.pentaho.commons.connection.IPentahoConnection
-
close
public void close()- Specified by:
close
in interfaceorg.pentaho.commons.connection.IPentahoConnection
-
getLastQuery
- Specified by:
getLastQuery
in interfaceorg.pentaho.commons.connection.IPentahoConnection
-
executeQuery
- Specified by:
executeQuery
in interfaceorg.pentaho.commons.connection.IPentahoConnection
-
generateResultSet
-
isClosed
public boolean isClosed()- Specified by:
isClosed
in interfaceorg.pentaho.commons.connection.IPentahoConnection
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnly
in interfaceorg.pentaho.commons.connection.IPentahoConnection
-
clearWarnings
public void clearWarnings()- Specified by:
clearWarnings
in interfaceorg.pentaho.commons.connection.IPentahoConnection
-
getResultSet
public org.pentaho.commons.connection.IPentahoResultSet getResultSet()- Specified by:
getResultSet
in interfaceorg.pentaho.commons.connection.IPentahoConnection
-
connect
- Specified by:
connect
in interfaceorg.pentaho.commons.connection.IPentahoConnection
-
setMaxRows
public void setMaxRows(int value) - Specified by:
setMaxRows
in interfaceorg.pentaho.commons.connection.ILimitableConnection
- Specified by:
setMaxRows
in interfaceorg.pentaho.commons.connection.IPentahoConnection
-
setFetchSize
public void setFetchSize(int fetchSize) - Specified by:
setFetchSize
in interfaceorg.pentaho.commons.connection.IPentahoConnection
-
setQueryTimeout
public void setQueryTimeout(int value) - Specified by:
setQueryTimeout
in interfaceorg.pentaho.commons.connection.ILimitableConnection
-