public class HQLConnection extends Object implements org.pentaho.platform.engine.core.system.IPentahoLoggingConnection, org.pentaho.commons.connection.ILimitableConnection
Modifier and Type | Field and Description |
---|---|
protected String |
lastQuery |
protected org.pentaho.platform.api.engine.ILogger |
logger |
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 and Description |
---|
HQLConnection() |
Modifier and Type | Method and Description |
---|---|
void |
clearWarnings() |
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) |
String |
getDatasourceType()
return datasource type HQL
|
String |
getLastQuery() |
org.pentaho.commons.connection.IPentahoResultSet |
getResultSet() |
boolean |
initialized() |
boolean |
isClosed() |
boolean |
isReadOnly() |
org.pentaho.commons.connection.IPentahoResultSet |
prepareAndExecuteQuery(String query,
List parameters) |
boolean |
preparedQueriesSupported() |
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) |
protected String lastQuery
protected org.pentaho.platform.api.engine.ILogger logger
public void setConfigFile(File hbmCfg)
public void setClassNames(String[] classNames)
public void setLogger(org.pentaho.platform.api.engine.ILogger logger)
setLogger
in interface org.pentaho.platform.engine.core.system.IPentahoLoggingConnection
public void setProperties(Properties props)
setProperties
in interface org.pentaho.commons.connection.IPentahoConnection
public boolean initialized()
initialized
in interface org.pentaho.commons.connection.IPentahoConnection
public String getDatasourceType()
getDatasourceType
in interface org.pentaho.commons.connection.IPentahoConnection
public org.pentaho.commons.connection.IPentahoResultSet prepareAndExecuteQuery(String query, List parameters) throws Exception
prepareAndExecuteQuery
in interface org.pentaho.commons.connection.IPentahoConnection
Exception
public boolean preparedQueriesSupported()
preparedQueriesSupported
in interface org.pentaho.commons.connection.IPentahoConnection
public void close()
close
in interface org.pentaho.commons.connection.IPentahoConnection
public String getLastQuery()
getLastQuery
in interface org.pentaho.commons.connection.IPentahoConnection
public org.pentaho.commons.connection.IPentahoResultSet executeQuery(String query)
executeQuery
in interface org.pentaho.commons.connection.IPentahoConnection
public org.pentaho.commons.connection.IPentahoResultSet generateResultSet(List list, String[] columnHeaders, org.hibernate.type.Type[] columnTypes)
public boolean isClosed()
isClosed
in interface org.pentaho.commons.connection.IPentahoConnection
public boolean isReadOnly()
isReadOnly
in interface org.pentaho.commons.connection.IPentahoConnection
public void clearWarnings()
clearWarnings
in interface org.pentaho.commons.connection.IPentahoConnection
public org.pentaho.commons.connection.IPentahoResultSet getResultSet()
getResultSet
in interface org.pentaho.commons.connection.IPentahoConnection
public boolean connect(Properties props)
connect
in interface org.pentaho.commons.connection.IPentahoConnection
public void setMaxRows(int value)
setMaxRows
in interface org.pentaho.commons.connection.ILimitableConnection
setMaxRows
in interface org.pentaho.commons.connection.IPentahoConnection
public void setFetchSize(int fetchSize)
setFetchSize
in interface org.pentaho.commons.connection.IPentahoConnection
public void setQueryTimeout(int value)
setQueryTimeout
in interface org.pentaho.commons.connection.ILimitableConnection
Copyright © 2021 Hitachi Vantara. All rights reserved.