com.jaeksoft.pojodbc
Class PageDataModel<T>

java.lang.Object
  extended by javax.faces.model.DataModel
      extended by com.jaeksoft.pojodbc.PageDataModel<T>

public abstract class PageDataModel<T>
extends javax.faces.model.DataModel


Constructor Summary
PageDataModel(ConnectionManager cm, int transactionIsolation, java.lang.Class<T> beanClass, int pageSize)
           
 
Method Summary
 java.util.Iterator<T> currentPageIterator()
           
abstract  Query getQuery(Transaction transaction)
           
 int getRowCount()
           
 java.lang.Object getRowData()
           
 int getRowIndex()
           
 java.lang.Object getWrappedData()
           
 boolean isRowAvailable()
           
 void populate(int index)
           
 void setRowIndex(int index)
           
 void setWrappedData(java.lang.Object data)
           
 
Methods inherited from class javax.faces.model.DataModel
addDataModelListener, getDataModelListeners, removeDataModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageDataModel

public PageDataModel(ConnectionManager cm,
                     int transactionIsolation,
                     java.lang.Class<T> beanClass,
                     int pageSize)
              throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

getRowCount

public int getRowCount()
Specified by:
getRowCount in class javax.faces.model.DataModel

getRowData

public java.lang.Object getRowData()
Specified by:
getRowData in class javax.faces.model.DataModel

getRowIndex

public int getRowIndex()
Specified by:
getRowIndex in class javax.faces.model.DataModel

getWrappedData

public java.lang.Object getWrappedData()
Specified by:
getWrappedData in class javax.faces.model.DataModel

isRowAvailable

public boolean isRowAvailable()
Specified by:
isRowAvailable in class javax.faces.model.DataModel

setRowIndex

public void setRowIndex(int index)
Specified by:
setRowIndex in class javax.faces.model.DataModel

setWrappedData

public void setWrappedData(java.lang.Object data)
Specified by:
setWrappedData in class javax.faces.model.DataModel

populate

public void populate(int index)
              throws java.lang.Exception
Throws:
java.lang.Exception

getQuery

public abstract Query getQuery(Transaction transaction)

currentPageIterator

public java.util.Iterator<T> currentPageIterator()