org.pentaho.platform.plugin.services.connections.xquery
Class XQConnection
java.lang.Object
org.pentaho.platform.plugin.services.connections.xquery.XQConnection
- All Implemented Interfaces:
- org.pentaho.commons.connection.IPentahoConnection, 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
Fields inherited from interface org.pentaho.commons.connection.IPentahoConnection |
CLASSNAME_KEY, CONNECTION, DRIVER_KEY, HQL_DATASOURCE, JNDI_NAME_KEY, KEYS, LOCATION_KEY, MDX_DATASOURCE, NONE_DATASOURCE, PASSWORD_KEY, PROVIDER, QUERY_KEY, SQL_DATASOURCE, USERNAME_KEY, XML_DATASOURCE |
XQConnection
public XQConnection()
setLogger
public void setLogger(ILogger logger)
- Specified by:
setLogger
in interface 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
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
getDatasourceType
public String getDatasourceType()
- return datasource type MDX
- Specified by:
getDatasourceType
in interface org.pentaho.commons.connection.IPentahoConnection
- Returns:
- datasource type
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)
throws net.sf.saxon.trans.XPathException
- Specified by:
executeQuery
in interface org.pentaho.commons.connection.IPentahoConnection
- Throws:
net.sf.saxon.trans.XPathException
executeQuery
public org.pentaho.commons.connection.IPentahoResultSet executeQuery(String query,
String[] columnTypes)
throws net.sf.saxon.trans.XPathException
- Throws:
net.sf.saxon.trans.XPathException
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 maxRows)
- Specified by:
setMaxRows
in interface org.pentaho.commons.connection.IPentahoConnection
getMaxRows
public int getMaxRows()
setFetchSize
public void setFetchSize(int fetchSize)
- Specified by:
setFetchSize
in interface org.pentaho.commons.connection.IPentahoConnection