org.pentaho.platform.plugin.services.connections.hql
Class HQLConnection
java.lang.Object
org.pentaho.platform.plugin.services.connections.hql.HQLConnection
- All Implemented Interfaces:
- IPentahoLoggingConnection
public class HQLConnection
- extends Object
- implements IPentahoLoggingConnection
- Author:
- mdamour
TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
HQLConnection
public HQLConnection()
setConfigFile
public void setConfigFile(File hbmCfg)
setClassNames
public void setClassNames(String[] classNames)
setLogger
public void setLogger(ILogger logger)
- Specified by:
setLogger
in interface IPentahoLoggingConnection
setProperties
public void setProperties(Properties props)
initialized
public boolean initialized()
getDatasourceType
public String getDatasourceType()
- return datasource type HQL
- Returns:
- datasource type
prepareAndExecuteQuery
public IPentahoResultSet prepareAndExecuteQuery(String query,
List parameters)
throws Exception
- Throws:
Exception
preparedQueriesSupported
public boolean preparedQueriesSupported()
close
public void close()
getLastQuery
public String getLastQuery()
executeQuery
public IPentahoResultSet executeQuery(String query)
generateResultSet
public IPentahoResultSet generateResultSet(List list,
String[] columnHeaders,
Type[] columnTypes)
isClosed
public boolean isClosed()
isReadOnly
public boolean isReadOnly()
clearWarnings
public void clearWarnings()
getResultSet
public IPentahoResultSet getResultSet()
connect
public boolean connect(Properties props)
setMaxRows
public void setMaxRows(int maxRows)
setFetchSize
public void setFetchSize(int fetchSize)