com.jaeksoft.pojodbc
Class PageDataModel<T>
java.lang.Object
javax.faces.model.DataModel
com.jaeksoft.pojodbc.PageDataModel<T>
public abstract class PageDataModel<T>
- extends javax.faces.model.DataModel
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 |
PageDataModel
public PageDataModel(ConnectionManager cm,
int transactionIsolation,
java.lang.Class<T> beanClass,
int pageSize)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
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()