Class XQConnection
java.lang.Object
org.pentaho.platform.plugin.services.connections.xquery.XQConnection
- All Implemented Interfaces:
org.pentaho.commons.connection.IPentahoConnection,org.pentaho.platform.engine.core.system.IPentahoLoggingConnection
public class XQConnection
extends Object
implements org.pentaho.platform.engine.core.system.IPentahoLoggingConnection
- Author:
- wseyler TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.sf.saxon.Configurationprotected Stringprotected org.pentaho.platform.api.engine.ILoggerprotected net.sf.saxon.query.StaticQueryContextFields inherited from interface org.pentaho.commons.connection.IPentahoConnection
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()booleanconnect(Properties props) org.pentaho.commons.connection.IPentahoResultSetexecuteQuery(String query) org.pentaho.commons.connection.IPentahoResultSetexecuteQuery(String query, String[] columnTypes) return datasource type MDXintorg.pentaho.commons.connection.IPentahoResultSetbooleanbooleanisClosed()booleanorg.pentaho.commons.connection.IPentahoResultSetprepareAndExecuteQuery(String query, List parameters) booleanvoidsetFetchSize(int fetchSize) voidsetLogger(org.pentaho.platform.api.engine.ILogger logger) voidsetMaxRows(int maxRows) voidsetProperties(Properties props)
-
Field Details
-
config
protected net.sf.saxon.Configuration config -
sqc
protected net.sf.saxon.query.StaticQueryContext sqc -
lastQuery
-
logger
protected org.pentaho.platform.api.engine.ILogger logger
-
-
Constructor Details
-
XQConnection
public XQConnection()
-
-
Method Details
-
setLogger
public void setLogger(org.pentaho.platform.api.engine.ILogger logger) - Specified by:
setLoggerin interfaceorg.pentaho.platform.engine.core.system.IPentahoLoggingConnection
-
setProperties
- Specified by:
setPropertiesin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
initialized
public boolean initialized()- Specified by:
initializedin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
prepareAndExecuteQuery
public org.pentaho.commons.connection.IPentahoResultSet prepareAndExecuteQuery(String query, List parameters) throws Exception - Specified by:
prepareAndExecuteQueryin interfaceorg.pentaho.commons.connection.IPentahoConnection- Throws:
Exception
-
preparedQueriesSupported
public boolean preparedQueriesSupported()- Specified by:
preparedQueriesSupportedin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
getDatasourceType
return datasource type MDX- Specified by:
getDatasourceTypein interfaceorg.pentaho.commons.connection.IPentahoConnection- Returns:
- datasource type
-
close
public void close()- Specified by:
closein interfaceorg.pentaho.commons.connection.IPentahoConnection
-
getLastQuery
- Specified by:
getLastQueryin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
executeQuery
public org.pentaho.commons.connection.IPentahoResultSet executeQuery(String query) throws net.sf.saxon.trans.XPathException - Specified by:
executeQueryin interfaceorg.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:
isClosedin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
clearWarnings
public void clearWarnings()- Specified by:
clearWarningsin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
getResultSet
public org.pentaho.commons.connection.IPentahoResultSet getResultSet()- Specified by:
getResultSetin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
connect
- Specified by:
connectin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
setMaxRows
public void setMaxRows(int maxRows) - Specified by:
setMaxRowsin interfaceorg.pentaho.commons.connection.IPentahoConnection
-
getMaxRows
public int getMaxRows() -
setFetchSize
public void setFetchSize(int fetchSize) - Specified by:
setFetchSizein interfaceorg.pentaho.commons.connection.IPentahoConnection
-