public class XQConnection extends Object implements IPentahoLoggingConnection
Modifier and Type | Field and Description |
---|---|
protected net.sf.saxon.Configuration |
config |
protected String |
lastQuery |
protected ILogger |
logger |
protected net.sf.saxon.query.StaticQueryContext |
sqc |
CLASSNAME_KEY, CONNECTION, CONNECTION_NAME, 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(ILogger logger) |
void |
setMaxRows(int maxRows) |
void |
setProperties(Properties props) |
protected net.sf.saxon.Configuration config
protected net.sf.saxon.query.StaticQueryContext sqc
protected String lastQuery
protected ILogger logger
public void setLogger(ILogger logger)
setLogger
in interface 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
Copyright © 2017 Hitachi Vantara. All rights reserved.