public class XQConnection extends Object implements org.pentaho.platform.engine.core.system.IPentahoLoggingConnection
CLASSNAME_KEY, CONNECTION, DRIVER_KEY, HQL_DATASOURCE, JNDI_NAME_KEY, KEYS, LOCATION_KEY, MDX_DATASOURCE, MDX_OLAP4J_DATASOURCE, NONE_DATASOURCE, PASSWORD_KEY, PROVIDER, QUERY_KEY, SQL_DATASOURCE, USERNAME_KEY, XML_DATASOURCE
Constructor and Description |
---|
XQConnection() |
Modifier and Type | Method and Description |
---|---|
void |
clearWarnings() |
void |
close() |
boolean |
connect(Properties props) |
org.pentaho.commons.connection.IPentahoResultSet |
executeQuery(String query) |
org.pentaho.commons.connection.IPentahoResultSet |
executeQuery(String query,
String[] columnTypes) |
String |
getDatasourceType()
return datasource type MDX
|
String |
getLastQuery() |
int |
getMaxRows() |
org.pentaho.commons.connection.IPentahoResultSet |
getResultSet() |
boolean |
initialized() |
boolean |
isClosed() |
boolean |
isReadOnly() |
org.pentaho.commons.connection.IPentahoResultSet |
prepareAndExecuteQuery(String query,
List parameters) |
boolean |
preparedQueriesSupported() |
void |
setFetchSize(int fetchSize) |
void |
setLogger(org.pentaho.platform.api.engine.ILogger logger) |
void |
setMaxRows(int maxRows) |
void |
setProperties(Properties props) |
public void setLogger(org.pentaho.platform.api.engine.ILogger logger)
setLogger
in interface org.pentaho.platform.engine.core.system.IPentahoLoggingConnection
public void setProperties(Properties props)
setProperties
in interface org.pentaho.commons.connection.IPentahoConnection
public boolean initialized()
initialized
in interface org.pentaho.commons.connection.IPentahoConnection
public org.pentaho.commons.connection.IPentahoResultSet prepareAndExecuteQuery(String query, List parameters) throws Exception
prepareAndExecuteQuery
in interface org.pentaho.commons.connection.IPentahoConnection
Exception
public boolean preparedQueriesSupported()
preparedQueriesSupported
in interface org.pentaho.commons.connection.IPentahoConnection
public String getDatasourceType()
getDatasourceType
in interface org.pentaho.commons.connection.IPentahoConnection
public void close()
close
in interface org.pentaho.commons.connection.IPentahoConnection
public String getLastQuery()
getLastQuery
in interface org.pentaho.commons.connection.IPentahoConnection
public org.pentaho.commons.connection.IPentahoResultSet executeQuery(String query) throws net.sf.saxon.trans.XPathException
executeQuery
in interface org.pentaho.commons.connection.IPentahoConnection
net.sf.saxon.trans.XPathException
public org.pentaho.commons.connection.IPentahoResultSet executeQuery(String query, String[] columnTypes) throws net.sf.saxon.trans.XPathException
net.sf.saxon.trans.XPathException
public boolean isClosed()
isClosed
in interface org.pentaho.commons.connection.IPentahoConnection
public boolean isReadOnly()
isReadOnly
in interface org.pentaho.commons.connection.IPentahoConnection
public void clearWarnings()
clearWarnings
in interface org.pentaho.commons.connection.IPentahoConnection
public org.pentaho.commons.connection.IPentahoResultSet getResultSet()
getResultSet
in interface org.pentaho.commons.connection.IPentahoConnection
public boolean connect(Properties props)
connect
in interface org.pentaho.commons.connection.IPentahoConnection
public void setMaxRows(int maxRows)
setMaxRows
in interface org.pentaho.commons.connection.IPentahoConnection
public int getMaxRows()
public void setFetchSize(int fetchSize)
setFetchSize
in interface org.pentaho.commons.connection.IPentahoConnection