|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfi.paatti.paattidatabaseutils.dbservice.querydelegates.PaattiQueryDelegate
fi.paatti.paattidatabaseutils.dbservice.querydelegates.BelongsQueryDelegate
public class BelongsQueryDelegate
A delegate for BELONGS-table.
![]() |
![]() |
| Field Summary |
|---|
| Fields inherited from class fi.paatti.paattidatabaseutils.dbservice.querydelegates.PaattiQueryDelegate |
|---|
ROWSTATUS_ACTIVE, ROWSTATUS_DELETED |
| Constructor Summary | |
|---|---|
BelongsQueryDelegate(Object groupId,
Object userId)
BelongsQueryDelegate constructor. |
|
| Method Summary | |
|---|---|
com.vaadin.data.util.sqlcontainer.query.generator.StatementHelper |
getQueryStatement(int offset,
int limit)
Returns a new StatementHelper containing the SELECT query statement. |
boolean |
removeRow(Connection conn,
com.vaadin.data.util.sqlcontainer.RowItem row)
Removes a row by setting its rowStatus to 'DELETED'. |
protected void |
setRowValues(PreparedStatement statement,
com.vaadin.data.util.sqlcontainer.RowItem row)
Sets the values for the row. |
int |
storeRow(Connection conn,
com.vaadin.data.util.sqlcontainer.RowItem row)
Stores a row in the database. |
| Methods inherited from class fi.paatti.paattidatabaseutils.dbservice.querydelegates.PaattiQueryDelegate |
|---|
addNewiRowIdListener, fireNewRowIdEvent, getArrayAsStringWithAddedString, getArrayAsStringWithCommas, getArrayAsStringWithCommasAndWithoutIdColumn, getColumnNames, getContainsRowQueryStatement, getContainsRowQueryString, getCountQuery, getCountStatement, getFilters, getFilterStringWithoutWhere, getIdColumn, getInsertQueryString, getInsertQueryString, getOrderBys, getQueryString, getTableName, getUpdateQueryString, getUpdateQueryString, getValuesString, removeNewRowIdListener, setFilters, setOrderBy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BelongsQueryDelegate(Object groupId,
Object userId)
groupId - The ID of the group.userId - The ID of the user.| Method Detail |
|---|
public int storeRow(Connection conn,
com.vaadin.data.util.sqlcontainer.RowItem row)
throws SQLException
storeRow in interface com.vaadin.data.util.sqlcontainer.query.FreeformQueryDelegatestoreRow in class PaattiQueryDelegateconn - The database connection.row - The row where the values will be set.
SQLException
protected void setRowValues(PreparedStatement statement,
com.vaadin.data.util.sqlcontainer.RowItem row)
throws SQLException
setRowValues in class PaattiQueryDelegatestatement - The prepared statement where the values will be set.row - The row where the values will be taken from.
SQLException
public com.vaadin.data.util.sqlcontainer.query.generator.StatementHelper getQueryStatement(int offset,
int limit)
throws UnsupportedOperationException
offset - the starting row.limit - the number of rows to get.
UnsupportedOperationException
public boolean removeRow(Connection conn,
com.vaadin.data.util.sqlcontainer.RowItem row)
throws SQLException
removeRow in interface com.vaadin.data.util.sqlcontainer.query.FreeformQueryDelegateremoveRow in class PaattiQueryDelegateconn - The database connectionrow - The row where the values will be set.
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||