@Deprecated public interface QueryDelegate extends Serializable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
QueryDelegate.RowIdChangeEvent
Deprecated.
|
static interface |
QueryDelegate.RowIdChangeListener
Deprecated.
|
static interface |
QueryDelegate.RowIdChangeNotifier
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beginTransaction()
Deprecated.
Starts a new database transaction.
|
void |
commit()
Deprecated.
Commits a transaction.
|
boolean |
containsRowWithKey(Object... keys)
Deprecated.
Performs a query to find out whether the SQL table contains a row with
the given set of primary keys.
|
int |
getCount()
Deprecated.
Generates and executes a query to determine the current row count from
the DB.
|
List<String> |
getPrimaryKeyColumns()
Deprecated.
Returns a list of primary key column names.
|
ResultSet |
getResults(int offset,
int pagelength)
Deprecated.
Executes a paged SQL query and returns the ResultSet.
|
boolean |
implementationRespectsPagingLimits()
Deprecated.
Allows the SQLContainer implementation to check whether the QueryDelegate
implementation implements paging in the getResults method.
|
boolean |
removeRow(RowItem row)
Deprecated.
Removes the given RowItem from the database.
|
void |
rollback()
Deprecated.
Rolls a transaction back.
|
void |
setFilters(List<Container.Filter> filters)
Deprecated.
Sets the filters to apply when performing the SQL query.
|
void |
setOrderBy(List<OrderBy> orderBys)
Deprecated.
Sets the order in which to retrieve rows from the database.
|
int |
storeRow(RowItem row)
Deprecated.
Stores a row in the database.
|
int getCount()
throws SQLException
SQLExceptionResultSet getResults(int offset, int pagelength) throws SQLException
offset - the first item of the page to loadpagelength - the length of the page to loadSQLException - if the database access fails.boolean implementationRespectsPagingLimits()
getResults(int, int)void 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(RowItem row) throws UnsupportedOperationException, SQLException
row - The row to be stored or updated.UnsupportedOperationException - if the implementation is read only.SQLExceptionboolean removeRow(RowItem row) throws UnsupportedOperationException, SQLException
row - RowItem to be removedUnsupportedOperationExceptionSQLExceptionvoid beginTransaction()
throws SQLException
SQLException - if the database access fails.void commit()
throws SQLException
SQLException - if the database access fails.void rollback()
throws SQLException
SQLException - if the database access fails.List<String> getPrimaryKeyColumns()
boolean containsRowWithKey(Object... keys) throws SQLException
keys - the primary keysSQLExceptionCopyright © 2019 Vaadin Ltd. All rights reserved.