com.polarion.platform.persistence.IDatabaseSearch
METHODS
Modifiers and Type | Name | Description |
---|---|---|
IPObjectList<T> | instances(String) | Searches the persistent objects by executing the specified SQL-query in the database for the current revision. |
IPObjectList<T> | instancesInBaseline(String,String) | Searches the persistent objects by executing the specified SQL-query in the database for the specified revision. |
IPObjectList<T> | instancesInCollection(String,IObjectId) | Executes an SQL query against the specified Collection to retrieve persistent objects. Note: Queries executed against the Collection HEAD (without a specified revision in the Collection ID) may return slightly stale data (in the range of several minutes). For detailed information about Collection query syntax and best practices, please refer to the Polarion SDK documentation. |
int | count(String) | Returns the number of persistent objects found by executing the given SQL-query in the database for the current revision. Should be used instead of {@link #instances(String sqlQuery)} . {@link Collection#size() size()} when only the number of search results is required. |
int | countInBaseline(String,String) | Returns the number of persistent objects found by executing the specified SQL-query in the database for the specified revision. Should be used instead of {@link #instancesInBaseline(String sqlQuery,String revision)} . {@link Collection#size() size()} when only the number or search results is required. |
int | countInCollection(String,IObjectId) | Returns the count of persistent objects matching the specified SQL query in the Collection. This method is optimized for counting and should be preferred over {@link #instancesInCollection(String,IObjectId)} when only the result count is needed. Note: Queries executed against the Collection HEAD (without a specified revision in the Collection ID) may return slightly stale data (in the range of several minutes). For detailed information about Collection query syntax and best practices, please refer to the Polarion SDK documentation. |
Back to Index