org.tm4j.vtl.helpers
Class TologResultsSetHelper

java.lang.Object
  extended byorg.tm4j.vtl.helpers.TologResultsSetHelper

public class TologResultsSetHelper
extends java.lang.Object

Provides some utility methods making it easier to work with TologResultsSet objects


Constructor Summary
TologResultsSetHelper()
          Public no-args constructor so that this class can be instantiated by the factory
 
Method Summary
 java.util.List getResults(org.tm4j.tolog.TologResultsSet results, int colNum)
          Returns the list of results in the specified column of the results set.
 java.util.List getResults(org.tm4j.tolog.TologResultsSet results, java.lang.String var)
          Returns the list of results bound to the specified variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TologResultsSetHelper

public TologResultsSetHelper()
Public no-args constructor so that this class can be instantiated by the factory

Method Detail

getResults

public java.util.List getResults(org.tm4j.tolog.TologResultsSet results,
                                 int colNum)
Returns the list of results in the specified column of the results set. Results are returned in the order in which they appear in the original TologResultsSet.

Parameters:
results - the TologResultsSet object to extract from
colNum - the column number of the results to return
Returns:
A List of result objects (Topics or Integers)

getResults

public java.util.List getResults(org.tm4j.tolog.TologResultsSet results,
                                 java.lang.String var)
Returns the list of results bound to the specified variable. Results are returned in the order in which they appear in the original TologResultsSet.

Parameters:
results - the TologResultsSet object to extract from
var - the name of the variable to return results for
Returns:
A List of result objects