Class XQResultSet
java.lang.Object
org.pentaho.platform.plugin.services.connections.xquery.XQResultSet
- All Implemented Interfaces:
org.pentaho.commons.connection.IDisposable,org.pentaho.commons.connection.IPeekable,org.pentaho.commons.connection.IPentahoResultSet
public class XQResultSet
extends Object
implements org.pentaho.commons.connection.IPentahoResultSet, org.pentaho.commons.connection.IPeekable
- 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 String[]protected XQConnectionprotected static final Stringprotected net.sf.saxon.query.DynamicQueryContextprotected static final Stringprotected net.sf.saxon.query.XQueryExpressionprotected static final org.apache.commons.logging.Logprotected XQMetaDataprotected Object[] -
Constructor Summary
ConstructorsConstructorDescriptionXQResultSet(XQConnection xqConnection, net.sf.saxon.query.XQueryExpression exp, net.sf.saxon.query.DynamicQueryContext dynamicContext, String[] columnTypes) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()voidprotected voiddecodeNode(Object obj, Map retValue) voiddispose()protected Listevaluate()intObject[]getDataColumn(int column) Object[]getDataRow(int row) org.pentaho.commons.connection.IPentahoMetaDataintgetValueAt(int row, int column) protected voidinit()booleanorg.pentaho.commons.connection.IPentahoResultSetObject[]next()Object[]peek()
-
Field Details
-
logger
protected static final org.apache.commons.logging.Log logger -
exp
protected net.sf.saxon.query.XQueryExpression exp -
dynamicContext
protected net.sf.saxon.query.DynamicQueryContext dynamicContext -
metaData
-
DELIM
- See Also:
-
EMPTY_STR
- See Also:
-
peekRow
-
columnTypes
-
connection
-
-
Constructor Details
-
XQResultSet
public XQResultSet(XQConnection xqConnection, net.sf.saxon.query.XQueryExpression exp, net.sf.saxon.query.DynamicQueryContext dynamicContext, String[] columnTypes) throws net.sf.saxon.trans.XPathException - Parameters:
exp-dynamicContext-columnTypes-- Throws:
net.sf.saxon.trans.XPathException
-
-
Method Details
-
init
protected void init() throws net.sf.saxon.trans.XPathException- Throws:
net.sf.saxon.trans.XPathException
-
evaluate
- Throws:
net.sf.saxon.trans.XPathException
-
getMetaData
public org.pentaho.commons.connection.IPentahoMetaData getMetaData()- Specified by:
getMetaDatain interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
peek
- Specified by:
peekin interfaceorg.pentaho.commons.connection.IPeekable
-
next
- Specified by:
nextin interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
decodeNode
-
close
public void close()- Specified by:
closein interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
closeConnection
public void closeConnection()- Specified by:
closeConnectionin interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
isScrollable
public boolean isScrollable()- Specified by:
isScrollablein interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getValueAt
- Specified by:
getValueAtin interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getRowCount
public int getRowCount()- Specified by:
getRowCountin interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCountin interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.pentaho.commons.connection.IDisposable
-
memoryCopy
public org.pentaho.commons.connection.IPentahoResultSet memoryCopy()- Specified by:
memoryCopyin interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
beforeFirst
public void beforeFirst()- Specified by:
beforeFirstin interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getDataColumn
- Specified by:
getDataColumnin interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getDataRow
- Specified by:
getDataRowin interfaceorg.pentaho.commons.connection.IPentahoResultSet
-