org.pentaho.platform.plugin.services.connections.hql
Class HQLConnection

java.lang.Object
  extended by 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

Constructor Summary
HQLConnection()
           
 
Method Summary
 void clearWarnings()
           
 void close()
           
 boolean connect(Properties props)
           
 IPentahoResultSet executeQuery(String query)
           
 IPentahoResultSet generateResultSet(List list, String[] columnHeaders, Type[] columnTypes)
           
 String getDatasourceType()
          return datasource type HQL
 String getLastQuery()
           
 IPentahoResultSet getResultSet()
           
 boolean initialized()
           
 boolean isClosed()
           
 boolean isReadOnly()
           
 IPentahoResultSet prepareAndExecuteQuery(String query, List parameters)
           
 boolean preparedQueriesSupported()
           
 void setClassNames(String[] classNames)
           
 void setConfigFile(File hbmCfg)
           
 void setFetchSize(int fetchSize)
           
 void setLogger(ILogger logger)
           
 void setMaxRows(int maxRows)
           
 void setProperties(Properties props)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HQLConnection

public HQLConnection()
Method Detail

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)