public class HQLConnection extends Object implements org.pentaho.platform.engine.core.system.IPentahoLoggingConnection, org.pentaho.commons.connection.ILimitableConnection
CLASSNAME_KEY, CONNECTION, 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) |
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.IPentahoLoggingConnectionpublic void setProperties(Properties props)
setProperties in interface org.pentaho.commons.connection.IPentahoConnectionpublic boolean initialized()
initialized in interface org.pentaho.commons.connection.IPentahoConnectionpublic String getDatasourceType()
getDatasourceType in interface org.pentaho.commons.connection.IPentahoConnectionpublic org.pentaho.commons.connection.IPentahoResultSet prepareAndExecuteQuery(String query, List parameters) throws Exception
prepareAndExecuteQuery in interface org.pentaho.commons.connection.IPentahoConnectionExceptionpublic boolean preparedQueriesSupported()
preparedQueriesSupported in interface org.pentaho.commons.connection.IPentahoConnectionpublic void close()
close in interface org.pentaho.commons.connection.IPentahoConnectionpublic String getLastQuery()
getLastQuery in interface org.pentaho.commons.connection.IPentahoConnectionpublic org.pentaho.commons.connection.IPentahoResultSet executeQuery(String query)
executeQuery in interface org.pentaho.commons.connection.IPentahoConnectionpublic 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.IPentahoConnectionpublic boolean isReadOnly()
isReadOnly in interface org.pentaho.commons.connection.IPentahoConnectionpublic void clearWarnings()
clearWarnings in interface org.pentaho.commons.connection.IPentahoConnectionpublic org.pentaho.commons.connection.IPentahoResultSet getResultSet()
getResultSet in interface org.pentaho.commons.connection.IPentahoConnectionpublic boolean connect(Properties props)
connect in interface org.pentaho.commons.connection.IPentahoConnectionpublic void setMaxRows(int value)
setMaxRows in interface org.pentaho.commons.connection.ILimitableConnectionsetMaxRows in interface org.pentaho.commons.connection.IPentahoConnectionpublic void setFetchSize(int fetchSize)
setFetchSize in interface org.pentaho.commons.connection.IPentahoConnectionpublic void setQueryTimeout(int value)
setQueryTimeout in interface org.pentaho.commons.connection.ILimitableConnection