Turns a parsed search expression into the WHERE part of a media store query for one kind of items (music, videos, images), pure Java.
More...
|
| class | Source |
| | The kind of items one query runs against.
|
| |
| class | Where |
| | The condition: a constant (TRUE, FALSE) or SQL with its arguments.
|
| |
|
| static Where | build (Node node, Source source, java.util.Set< String > supported) throws InvalidSearchException |
| |
|
|
static final String | PROPERTY_CLASS = "upnp:class" |
| |
Turns a parsed search expression into the WHERE part of a media store query for one kind of items (music, videos, images), pure Java.
Column names come only from the Source (never from the text of the search), every value is a bound argument, so what a control point sends can not change the query. A property that this server does not search at all is refused (UPnP error 708); a property that exists but not for this kind of items (the artist of a video) simply matches nothing.
◆ build()
| static Where de.yaacc.upnp.search.SearchSql.build |
( |
Node | node, |
|
|
Source | source, |
|
|
java.util.Set< String > | supported ) throws InvalidSearchException |
|
static |
- Parameters
-
| supported | the properties this server searches (GetSearchCapabilities); a property outside of it is refused |
- Exceptions
-
| InvalidSearchException | a property or an operator that is not supported |
Referenced by de.yaacc.upnp.search.SearchSql.build().
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/upnp/search/SearchSql.java