java.lang.Object
org.mozilla.javascript.ScriptableObject
org.pentaho.platform.plugin.services.connections.javascript.JavaScriptResultSet
All Implemented Interfaces:
Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable, org.mozilla.javascript.SymbolScriptable, org.pentaho.commons.connection.IDisposable, org.pentaho.commons.connection.IPeekable, org.pentaho.commons.connection.IPentahoResultSet

public class JavaScriptResultSet extends org.mozilla.javascript.ScriptableObject implements org.pentaho.commons.connection.IPentahoResultSet, org.pentaho.commons.connection.IPeekable
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.mozilla.javascript.ScriptableObject

    org.mozilla.javascript.ScriptableObject.KeyComparator
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Object[]
     

    Fields inherited from class org.mozilla.javascript.ScriptableObject

    CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST

    Fields inherited from interface org.mozilla.javascript.Scriptable

    NOT_FOUND
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addRow(Object[] row)
     
    void
    addRow(String[] row)
     
    void
     
    void
     
    void
     
    void
     
     
    int
     
    getDataColumn(int column)
     
    getDataRow(int row)
     
    org.pentaho.commons.connection.IPentahoMetaData
     
    int
     
    getValueAt(int row, int column)
     
    boolean
     
    static Object
    jsFunction_addRow(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj)
     
    static Object
    jsFunction_getColumnCount(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj)
     
    static Object
    jsFunction_getRowCount(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj)
     
    static Object
    jsFunction_getValueAt(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj)
     
    static Object
    jsFunction_setColumnHeaders(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj)
     
    org.pentaho.commons.connection.IPentahoResultSet
     
     
     
    void
    setMetaData(org.pentaho.commons.connection.IPentahoMetaData metaData)
     
    void
    setResultSet(org.pentaho.commons.connection.IPentahoResultSet pResults)
     
     

    Methods inherited from class org.mozilla.javascript.ScriptableObject

    applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • peekRow

      protected Object[] peekRow
  • Constructor Details

    • JavaScriptResultSet

      public JavaScriptResultSet()
  • Method Details

    • setResultSet

      public void setResultSet(org.pentaho.commons.connection.IPentahoResultSet pResults)
    • getClassName

      public String getClassName()
      Specified by:
      getClassName in interface org.mozilla.javascript.Scriptable
      Specified by:
      getClassName in class org.mozilla.javascript.ScriptableObject
    • jsFunction_getColumnCount

      public static Object jsFunction_getColumnCount(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj)
    • jsFunction_getRowCount

      public static Object jsFunction_getRowCount(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj)
    • jsFunction_getValueAt

      public static Object jsFunction_getValueAt(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj)
    • jsFunction_setColumnHeaders

      public static Object jsFunction_setColumnHeaders(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj)
    • jsFunction_addRow

      public static Object jsFunction_addRow(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj)
    • setMetaData

      public void setMetaData(org.pentaho.commons.connection.IPentahoMetaData metaData)
    • addRow

      public void addRow(String[] row)
    • addRow

      public void addRow(Object[] row)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getMetaData

      public org.pentaho.commons.connection.IPentahoMetaData getMetaData()
      Specified by:
      getMetaData in interface org.pentaho.commons.connection.IPentahoResultSet
    • peek

      public Object[] peek()
      Specified by:
      peek in interface org.pentaho.commons.connection.IPeekable
    • next

      public Object[] next()
      Specified by:
      next in interface org.pentaho.commons.connection.IPentahoResultSet
    • close

      public void close()
      Specified by:
      close in interface org.pentaho.commons.connection.IPentahoResultSet
    • closeConnection

      public void closeConnection()
      Specified by:
      closeConnection in interface org.pentaho.commons.connection.IPentahoResultSet
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.pentaho.commons.connection.IDisposable
    • isScrollable

      public boolean isScrollable()
      Specified by:
      isScrollable in interface org.pentaho.commons.connection.IPentahoResultSet
    • getColumnCount

      public int getColumnCount()
      Specified by:
      getColumnCount in interface org.pentaho.commons.connection.IPentahoResultSet
    • getRowCount

      public int getRowCount()
      Specified by:
      getRowCount in interface org.pentaho.commons.connection.IPentahoResultSet
    • getValueAt

      public Object getValueAt(int row, int column)
      Specified by:
      getValueAt in interface org.pentaho.commons.connection.IPentahoResultSet
    • memoryCopy

      public org.pentaho.commons.connection.IPentahoResultSet memoryCopy()
      Specified by:
      memoryCopy in interface org.pentaho.commons.connection.IPentahoResultSet
    • beforeFirst

      public void beforeFirst()
      Specified by:
      beforeFirst in interface org.pentaho.commons.connection.IPentahoResultSet
    • getDataColumn

      public Object[] getDataColumn(int column)
      Specified by:
      getDataColumn in interface org.pentaho.commons.connection.IPentahoResultSet
    • getDataRow

      public Object[] getDataRow(int row)
      Specified by:
      getDataRow in interface org.pentaho.commons.connection.IPentahoResultSet