#include <sbLocalDatabaseSQL.h>
Public Member Functions | |
nsString | MediaItemSelect () |
nsString | LibraryMediaItemSelect () |
Static Public Member Functions | |
static nsString | SecondaryPropertySelect () |
static nsString | MediaItemsFtsAllDelete () |
static nsString | MediaItemsFtsAllInsert () |
static nsString | LibraryMediaItemsPropertiesSelect () |
static nsString | PropertiesTableInsert () |
static nsString | PropertiesSelect () |
static nsString | PropertiesInsert () |
static nsString | PropertiesDelete () |
Static Public Attributes | |
static const int | MediaItemBindCount = 50 |
static const int | SecondaryPropertyBindCount = 50 |
A collection of SQL statements. Most members are static as they cheaply return the strings. A few are more expensive so we cache the results in the instance. So for those you'll need to keep an instance of the class around.
Definition at line 39 of file sbLocalDatabaseSQL.h.
nsString sbLocalDatabaseSQL::LibraryMediaItemSelect | ( | ) |
SQL statement to return the library media item
Definition at line 129 of file sbLocalDatabaseSQL.cpp.
|
static |
Retrieves the list of properties for the library
Definition at line 122 of file sbLocalDatabaseSQL.cpp.
nsString sbLocalDatabaseSQL::MediaItemSelect | ( | ) |
Returns an SQL string that selects a single media item.
Definition at line 101 of file sbLocalDatabaseSQL.cpp.
|
static |
Removes the items with id's matching those found in aRowIDs from the resource_properties_fts table
Definition at line 94 of file sbLocalDatabaseSQL.cpp.
|
static |
Populates the resource_properties_fts from the resource_properties table for the ID's given in aRowIDs
Definition at line 114 of file sbLocalDatabaseSQL.cpp.
|
static |
Removes a property given the item ID and property ID
Definition at line 160 of file sbLocalDatabaseSQL.cpp.
|
static |
Inserts a property into the resource_properties table
Definition at line 152 of file sbLocalDatabaseSQL.cpp.
|
static |
Returns all the properties in the system (property_id, property_name)
Definition at line 146 of file sbLocalDatabaseSQL.cpp.
|
static |
Inserts a property into the property table. The property name is the parameter.
Definition at line 139 of file sbLocalDatabaseSQL.cpp.
|
static |
Selects secondary properties for the given media
Definition at line 80 of file sbLocalDatabaseSQL.cpp.
|
static |
Definition at line 88 of file sbLocalDatabaseSQL.h.
|
static |
Definition at line 89 of file sbLocalDatabaseSQL.h.