org.pentaho.platform.plugin.services.connections.xquery
Class XQConnection

java.lang.Object
  extended by org.pentaho.platform.plugin.services.connections.xquery.XQConnection
All Implemented Interfaces:
IPentahoLoggingConnection

public class XQConnection
extends Object
implements IPentahoLoggingConnection

Author:
wseyler TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
XQConnection()
           
 
Method Summary
 void clearWarnings()
           
 void close()
           
 boolean connect(Properties props)
           
 IPentahoResultSet executeQuery(String query)
           
 IPentahoResultSet executeQuery(String query, String[] columnTypes)
           
 String getDatasourceType()
          return datasource type MDX
 String getLastQuery()
           
 IPentahoResultSet getResultSet()
           
 boolean initialized()
           
 boolean isClosed()
           
 boolean isReadOnly()
           
 IPentahoResultSet prepareAndExecuteQuery(String query, List parameters)
           
 boolean preparedQueriesSupported()
           
 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

XQConnection

public XQConnection()
Method Detail

setLogger

public void setLogger(ILogger logger)
Specified by:
setLogger in interface IPentahoLoggingConnection

setProperties

public void setProperties(Properties props)

initialized

public boolean initialized()

prepareAndExecuteQuery

public IPentahoResultSet prepareAndExecuteQuery(String query,
                                                List parameters)
                                         throws Exception
Throws:
Exception

preparedQueriesSupported

public boolean preparedQueriesSupported()

getDatasourceType

public String getDatasourceType()
return datasource type MDX

Returns:
datasource type

close

public void close()

getLastQuery

public String getLastQuery()

executeQuery

public IPentahoResultSet executeQuery(String query)
                               throws XPathException
Throws:
XPathException

executeQuery

public IPentahoResultSet executeQuery(String query,
                                      String[] columnTypes)
                               throws XPathException
Throws:
XPathException

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)