|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry.contrib.table.model.sql.SimpleSqlTableDataSource
public class SimpleSqlTableDataSource
Constructor Summary | |
---|---|
SimpleSqlTableDataSource(ISqlConnectionSource objConnSource,
String strTableName)
|
|
SimpleSqlTableDataSource(ISqlConnectionSource objConnSource,
String strTableName,
String strWhereClause)
|
Method Summary | |
---|---|
void |
closeResultSet(ResultSet objResultSet)
|
protected String |
generateColumnList(SqlTableColumnModel objColumnModel)
|
protected String |
generateCountQuery()
|
protected String |
generateDataQuery(SqlTableColumnModel objColumnModel,
SimpleTableState objState)
|
protected String |
generateLimitClause(ITablePagingState objPagingState)
|
protected String |
generateOrderByClause(ITableSortingState objSortingState)
|
protected String |
generateWhereClause()
|
ISqlConnectionSource |
getConnSource()
Returns the connSource. |
ResultSet |
getCurrentRows(SqlTableColumnModel objColumnModel,
SimpleTableState objState)
|
int |
getRowCount()
|
String |
getTableName()
Returns the tableName. |
String |
getWhereClause()
Returns the whereClause. |
protected String |
quoteObjectName(String strObject)
|
void |
setConnSource(ISqlConnectionSource connSource)
Sets the connSource. |
void |
setTableName(String tableName)
Sets the tableName. |
void |
setWhereClause(String whereClause)
Sets the whereClause. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleSqlTableDataSource(ISqlConnectionSource objConnSource, String strTableName)
public SimpleSqlTableDataSource(ISqlConnectionSource objConnSource, String strTableName, String strWhereClause)
Method Detail |
---|
public int getRowCount() throws SQLException
getRowCount
in interface ISqlTableDataSource
SQLException
ISqlTableDataSource.getRowCount()
public ResultSet getCurrentRows(SqlTableColumnModel objColumnModel, SimpleTableState objState) throws SQLException
getCurrentRows
in interface ISqlTableDataSource
SQLException
ISqlTableDataSource.getCurrentRows(SqlTableColumnModel, SimpleTableState)
public void closeResultSet(ResultSet objResultSet)
closeResultSet
in interface ISqlTableDataSource
ISqlTableDataSource.closeResultSet(ResultSet)
protected String quoteObjectName(String strObject)
public String getTableName()
public void setTableName(String tableName)
tableName
- The tableName to setpublic ISqlConnectionSource getConnSource()
public void setConnSource(ISqlConnectionSource connSource)
connSource
- The connSource to setpublic String getWhereClause()
public void setWhereClause(String whereClause)
whereClause
- The whereClause to setprotected String generateColumnList(SqlTableColumnModel objColumnModel)
protected String generateWhereClause()
protected String generateOrderByClause(ITableSortingState objSortingState)
protected String generateLimitClause(ITablePagingState objPagingState)
protected String generateDataQuery(SqlTableColumnModel objColumnModel, SimpleTableState objState)
protected String generateCountQuery()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |