Class 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 Detail

      • lastQuery

        protected String lastQuery
      • logger

        protected org.pentaho.platform.api.engine.ILogger logger
    • Constructor Detail

      • HQLConnection

        public HQLConnection()
    • Method Detail

      • setConfigFile

        public void setConfigFile​(File hbmCfg)
      • setClassNames

        public void setClassNames​(String[] classNames)
      • setLogger

        public void setLogger​(org.pentaho.platform.api.engine.ILogger logger)
        Specified by:
        setLogger in interface org.pentaho.platform.engine.core.system.IPentahoLoggingConnection
      • setProperties

        public void setProperties​(Properties props)
        Specified by:
        setProperties in interface org.pentaho.commons.connection.IPentahoConnection
      • initialized

        public boolean initialized()
        Specified by:
        initialized in interface org.pentaho.commons.connection.IPentahoConnection
      • getDatasourceType

        public String getDatasourceType()
        return datasource type HQL
        Specified by:
        getDatasourceType in interface org.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 interface org.pentaho.commons.connection.IPentahoConnection
        Throws:
        Exception
      • preparedQueriesSupported

        public boolean preparedQueriesSupported()
        Specified by:
        preparedQueriesSupported in interface org.pentaho.commons.connection.IPentahoConnection
      • close

        public void close()
        Specified by:
        close in interface org.pentaho.commons.connection.IPentahoConnection
      • getLastQuery

        public String getLastQuery()
        Specified by:
        getLastQuery in interface org.pentaho.commons.connection.IPentahoConnection
      • executeQuery

        public org.pentaho.commons.connection.IPentahoResultSet executeQuery​(String query)
        Specified by:
        executeQuery in interface org.pentaho.commons.connection.IPentahoConnection
      • generateResultSet

        public org.pentaho.commons.connection.IPentahoResultSet generateResultSet​(List list,
                                                                                  String[] columnHeaders,
                                                                                  org.hibernate.type.Type[] columnTypes)
      • isClosed

        public boolean isClosed()
        Specified by:
        isClosed in interface org.pentaho.commons.connection.IPentahoConnection
      • isReadOnly

        public boolean isReadOnly()
        Specified by:
        isReadOnly in interface org.pentaho.commons.connection.IPentahoConnection
      • clearWarnings

        public void clearWarnings()
        Specified by:
        clearWarnings in interface org.pentaho.commons.connection.IPentahoConnection
      • getResultSet

        public org.pentaho.commons.connection.IPentahoResultSet getResultSet()
        Specified by:
        getResultSet in interface org.pentaho.commons.connection.IPentahoConnection
      • connect

        public boolean connect​(Properties props)
        Specified by:
        connect in interface org.pentaho.commons.connection.IPentahoConnection
      • setMaxRows

        public void setMaxRows​(int value)
        Specified by:
        setMaxRows in interface org.pentaho.commons.connection.ILimitableConnection
        Specified by:
        setMaxRows in interface org.pentaho.commons.connection.IPentahoConnection
      • setFetchSize

        public void setFetchSize​(int fetchSize)
        Specified by:
        setFetchSize in interface org.pentaho.commons.connection.IPentahoConnection
      • setQueryTimeout

        public void setQueryTimeout​(int value)
        Specified by:
        setQueryTimeout in interface org.pentaho.commons.connection.ILimitableConnection