com.fdsapi.arrays
Class ColumnRowNum

java.lang.Object
  |
  +--com.fdsapi.arrays.ColumnRowNum
All Implemented Interfaces:
Column

public class ColumnRowNum
extends java.lang.Object
implements Column

An implementation of the Column interface that displays the current rownumber as part of the select clause. It is invoked for rownum() in the following example. It is not case sensitive, however there can be no spaces surrounding or in the parens (i.e. rowNum(), rowNUM() are valid but rowNum ( ) and rowNum( ) are not: select date(), rownum(), col0, col1, mycolname, 'souza' from array



View Code


Constructor Summary
ColumnRowNum()
           
 
Method Summary
 Column createInstance()
           
 java.lang.Object getObject(java.lang.Object[] row)
          Return the current rownumber for the row in the array
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnRowNum

public ColumnRowNum()
Method Detail

createInstance

public Column createInstance()
Specified by:
createInstance in interface Column

getObject

public java.lang.Object getObject(java.lang.Object[] row)
Return the current rownumber for the row in the array

Specified by:
getObject in interface Column