I am in the process of updating the SQL Extensions to add a skipRec method to help with SQL Pagination but its killing me.

The problem is, the XConnection#pquery returns an SQLDocument that is cast to its base class via its return type.
public DTM pquery( ExpressionContext exprContext, String queryString, String typeInfo)



I store the output of pquery in in a variable. <xsl:variable name="cfrs" select="sql:pquery($Xcon1, $CFRQuery)"/>

Then I use that variable as a parameter to the skip method.
<xsl:value-of select="sql:skip($Xcon1, $cfrs, '4')" />

But I have yet to find the correct method signature that
will satisify the MethodResolver.

The Error message I get is
java.lang.NoSuchMethodException: For extension function, could not find method static org.apache.xalan.lib.sql.XConnection.skip(
[ExpressionContext, ]#UNKNOWN (org.apache.xalan.lib.sql.XConnection), #NODESET, #STRING) nor class org.apache.xalan.lib.sql.XConnection.skip([ExpressionContext,] #NODESET, #STRING).


The methods I am currently trying are

public static void skip( ExpressionContext exprContext, XConnection doc, XNodeSet ns, 
String value )
public static void skip( ExpressionContext exprContext, SQLDocument doc, XNodeSet ns, 
String value )
public void skip( ExpressionContext exprContext, XNodeSet ns, XString value )
public void skip( XConnection doc, String value )

Can anyone shed some light on the situation ??




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to