Class JavaScriptResultSet

  • All Implemented Interfaces:
    Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable, 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:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Object[] peekRow  
      • 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addRow​(Object[] row)  
      void addRow​(String[] row)  
      void beforeFirst()  
      void close()  
      void closeConnection()  
      void dispose()  
      String getClassName()  
      int getColumnCount()  
      Object[] getDataColumn​(int column)  
      Object[] getDataRow​(int row)  
      org.pentaho.commons.connection.IPentahoMetaData getMetaData()  
      int getRowCount()  
      Object getValueAt​(int row, int column)  
      boolean isScrollable()  
      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 memoryCopy()  
      Object[] next()  
      Object[] peek()  
      void setMetaData​(org.pentaho.commons.connection.IPentahoMetaData metaData)  
      void setResultSet​(org.pentaho.commons.connection.IPentahoResultSet pResults)  
      String toString()  
      • Methods inherited from class org.mozilla.javascript.ScriptableObject

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

      • peekRow

        protected Object[] peekRow
    • Constructor Detail

      • JavaScriptResultSet

        public JavaScriptResultSet()
    • Method Detail

      • 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)
      • 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