YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.upnp.search.SearchSql Class Reference

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...

Collaboration diagram for de.yaacc.upnp.search.SearchSql:
Collaboration graph

Classes

class  Source
 The kind of items one query runs against.
 
class  Where
 The condition: a constant (TRUE, FALSE) or SQL with its arguments.
 

Static Public Member Functions

static Where build (Node node, Source source, java.util.Set< String > supported) throws InvalidSearchException
 

Static Public Attributes

static final String PROPERTY_CLASS = "upnp:class"
 

Detailed Description

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.

Member Function Documentation

◆ build()

static Where de.yaacc.upnp.search.SearchSql.build ( Node node,
Source source,
java.util.Set< String > supported ) throws InvalidSearchException
static
Parameters
supportedthe properties this server searches (GetSearchCapabilities); a property outside of it is refused
Exceptions
InvalidSearchExceptiona property or an operator that is not supported

Referenced by de.yaacc.upnp.search.SearchSql.build().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: