org.pentaho.platform.plugin.services.connections.javascript
Class JavaScriptResultSet

java.lang.Object
  extended by org.mozilla.javascript.ScriptableObject
      extended by 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.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 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
JavaScriptResultSet()
           
 
Method Summary
 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
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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)

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