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
Fields Modifier and Type Field Description protected String[]
columnTypes
protected XQConnection
connection
protected static String
DELIM
protected net.sf.saxon.query.DynamicQueryContext
dynamicContext
protected static String
EMPTY_STR
protected net.sf.saxon.query.XQueryExpression
exp
protected static org.apache.commons.logging.Log
logger
protected XQMetaData
metaData
protected Object[]
peekRow
-
Constructor Summary
Constructors Constructor Description XQResultSet(XQConnection xqConnection, net.sf.saxon.query.XQueryExpression exp, net.sf.saxon.query.DynamicQueryContext dynamicContext, String[] columnTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beforeFirst()
void
close()
void
closeConnection()
protected void
decodeNode(Object obj, Map retValue)
void
dispose()
protected List
evaluate()
int
getColumnCount()
Object[]
getDataColumn(int column)
Object[]
getDataRow(int row)
org.pentaho.commons.connection.IPentahoMetaData
getMetaData()
int
getRowCount()
Object
getValueAt(int row, int column)
protected void
init()
boolean
isScrollable()
org.pentaho.commons.connection.IPentahoResultSet
memoryCopy()
Object[]
next()
Object[]
peek()
-
-
-
Field Detail
-
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
protected XQMetaData metaData
-
DELIM
protected static final String DELIM
- See Also:
- Constant Field Values
-
EMPTY_STR
protected static final String EMPTY_STR
- See Also:
- Constant Field Values
-
peekRow
protected Object[] peekRow
-
columnTypes
protected String[] columnTypes
-
connection
protected XQConnection connection
-
-
Constructor Detail
-
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 Detail
-
init
protected void init() throws net.sf.saxon.trans.XPathException
- Throws:
net.sf.saxon.trans.XPathException
-
evaluate
protected List evaluate() throws net.sf.saxon.trans.XPathException
- Throws:
net.sf.saxon.trans.XPathException
-
getMetaData
public org.pentaho.commons.connection.IPentahoMetaData getMetaData()
- Specified by:
getMetaData
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
peek
public Object[] peek()
- Specified by:
peek
in interfaceorg.pentaho.commons.connection.IPeekable
-
next
public Object[] next()
- Specified by:
next
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
close
public void close()
- Specified by:
close
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
closeConnection
public void closeConnection()
- Specified by:
closeConnection
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
isScrollable
public boolean isScrollable()
- Specified by:
isScrollable
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getValueAt
public Object getValueAt(int row, int column)
- Specified by:
getValueAt
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.pentaho.commons.connection.IDisposable
-
memoryCopy
public org.pentaho.commons.connection.IPentahoResultSet memoryCopy()
- Specified by:
memoryCopy
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
beforeFirst
public void beforeFirst()
- Specified by:
beforeFirst
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getDataColumn
public Object[] getDataColumn(int column)
- Specified by:
getDataColumn
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getDataRow
public Object[] getDataRow(int row)
- Specified by:
getDataRow
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
-