public interface FreeformQueryDelegate extends Serializable
| Modifier and Type | Method and Description |
|---|---|
String |
getContainsRowQueryString(Object... keys)
Deprecated.
As of 6.7. Implement
FreeformStatementDelegate
instead of FreeformQueryDelegate |
String |
getCountQuery()
Deprecated.
As of 6.7. Implement
FreeformStatementDelegate
instead of FreeformQueryDelegate |
String |
getQueryString(int offset,
int limit)
Deprecated.
As of 6.7. Implement
FreeformStatementDelegate
instead of FreeformQueryDelegate |
boolean |
removeRow(Connection conn,
RowItem row)
Removes the given RowItem from the database.
|
void |
setFilters(List<Container.Filter> filters)
Sets the filters to apply when performing the SQL query.
|
void |
setOrderBy(List<OrderBy> orderBys)
Sets the order in which to retrieve rows from the database.
|
int |
storeRow(Connection conn,
RowItem row)
Stores a row in the database.
|
@Deprecated String getQueryString(int offset, int limit) throws UnsupportedOperationException
FreeformStatementDelegate
instead of FreeformQueryDelegateoffset - the first record (row) to fetch.pagelength - the number of records (rows) to fetch. 0 means all records
starting from offset.UnsupportedOperationException@Deprecated String getCountQuery() throws UnsupportedOperationException
FreeformStatementDelegate
instead of FreeformQueryDelegateSQLExceptionUnsupportedOperationExceptionvoid setFilters(List<Container.Filter> filters) throws UnsupportedOperationException
filters - The filters to apply.UnsupportedOperationException - if the implementation doesn't support filtering.void setOrderBy(List<OrderBy> orderBys) throws UnsupportedOperationException
orderBys - A list of the OrderBy conditions.UnsupportedOperationException - if the implementation doesn't support ordering.int storeRow(Connection conn, RowItem row) throws UnsupportedOperationException, SQLException
conn - the JDBC connection to userow - RowItem to be stored or updated.UnsupportedOperationException - if the implementation is read only.SQLExceptionboolean removeRow(Connection conn, RowItem row) throws UnsupportedOperationException, SQLException
conn - the JDBC connection to userow - RowItem to be removedUnsupportedOperationExceptionSQLException@Deprecated String getContainsRowQueryString(Object... keys) throws UnsupportedOperationException
FreeformStatementDelegate
instead of FreeformQueryDelegatekeys - the values of the primary keysUnsupportedOperationException - to use the default logic in FreeformQueryCopyright © 2023 Vaadin Ltd. All rights reserved.