com.zentense.step2.view
Class View.Empty

java.lang.Object
  extended by com.zentense.step2.view.View
      extended by com.zentense.step2.view.ResultSetView
          extended by com.zentense.step2.view.View.Empty
Enclosing class:
View

public static final class View.Empty
extends ResultSetView

An empty ResultSetView implementation


Nested Class Summary
 
Nested classes/interfaces inherited from class com.zentense.step2.view.View
View.Empty
 
Field Summary
 
Fields inherited from class com.zentense.step2.view.View
EMPTY
 
Constructor Summary
View.Empty()
           
 
Method Summary
 java.lang.Object get(java.lang.String colName)
          Gets a column value
 java.lang.String[] getCols()
          Returns view columns
 int getCount()
          Gets results total size
 int getOrdinal()
          Gets the current position of this view.
 int getSize()
          Gets results size.
 boolean next()
          Advances the view to the next row.
 void open()
          Position the view before the first visible row
 
Methods inherited from class com.zentense.step2.view.ResultSetView
close, createPrepared, execPrepared, executeQuery, executeUpdate, finalize, first, get, getResultSet, getStart, getStatement, insertRow, set, setPageBounds, setPosition, toString, updateRow
 
Methods inherited from class com.zentense.step2.view.View
asDelegated, asDelegatedResultSet, asResultSet, fillFromRow, fillRowFromRequest, getBool, getCachedClone, getColsAsView, getDouble, getIndent, getInt, getRow, getRow, getSum, randomPosition, setPageBounds, setPageBounds, setPageBounds
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

View.Empty

public View.Empty()
Method Detail

get

public final java.lang.Object get(java.lang.String colName)
                           throws java.lang.Exception
Description copied from class: View
Gets a column value

Overrides:
get in class ResultSetView
Parameters:
colName - Column name (key)
Returns:
Column value
Throws:
java.lang.Exception

getCols

public final java.lang.String[] getCols()
Description copied from class: View
Returns view columns

Overrides:
getCols in class ResultSetView

getCount

public final int getCount()
Description copied from class: ResultSetView
Gets results total size

Overrides:
getCount in class ResultSetView
Returns:
Number of results in view (even outside page).

getSize

public final int getSize()
Description copied from class: ResultSetView
Gets results size. For a paged view it returns the page size.

Overrides:
getSize in class ResultSetView
Returns:
Visible results size

getOrdinal

public final int getOrdinal()
                     throws java.lang.Exception
Description copied from class: View
Gets the current position of this view. First is 0

Overrides:
getOrdinal in class ResultSetView
Throws:
java.lang.Exception

open

public final void open()
Description copied from class: View
Position the view before the first visible row

Overrides:
open in class ResultSetView

next

public final boolean next()
Description copied from class: View
Advances the view to the next row. Returns true while more rows are available

Overrides:
next in class ResultSetView

 

© Zentense 2008