27 #ifndef __SBLOCALDATABASESCHEMAINFO_H__
28 #define __SBLOCALDATABASESCHEMAINFO_H__
30 #include <nsComponentManagerUtils.h>
32 #include <sbISQLBuilder.h>
33 #include <sbIDatabaseQuery.h>
34 #include <sbIDatabaseResult.h>
37 #include <sbILocalDatabasePropertyCache.h>
39 #define MAX_IN_LENGTH 5000
100 "media_list_type_id",
118 "metadata_hash_identity",
130 if(sStaticProperties[
i].mDBID == aPropertyDBID)
140 if(aProperty.EqualsLiteral(sStaticProperties[
i].
mPropertyID))
146 static inline nsresult
148 nsAString& aColumnName)
151 if(aProperty.EqualsLiteral(sStaticProperties[
i].
mPropertyID)) {
152 aColumnName.AssignLiteral(sStaticProperties[i].mColumn);
156 return NS_ERROR_NOT_AVAILABLE;
159 static inline nsresult
161 PRUint32 &aColumnType)
164 if(aProperty.EqualsLiteral(sStaticProperties[
i].
mPropertyID)) {
169 return NS_ERROR_NOT_AVAILABLE;
172 static inline nsresult
174 PRUint32 &aColumnType)
177 if(aPropertyDBID == sStaticProperties[
i].mDBID) {
182 return NS_ERROR_NOT_AVAILABLE;
185 static inline nsresult
187 nsAString& aColumnName)
190 if(aPropertyDBID == sStaticProperties[
i].mDBID) {
191 aColumnName.AssignLiteral(sStaticProperties[
i].mColumn);
195 return NS_ERROR_NOT_AVAILABLE;
198 static inline PRInt32
205 rv = aPropertyCache->GetPropertyDBID(aProperty, &
id);
213 #endif // __SBLOCALDATABASESCHEMAINFO_H__
[USER CODE SHOULD NOT REFERENCE THIS CLASS]
static const PRUint32 sStaticPropertyCount
#define SB_PROPERTY_HIDDEN
static nsresult SB_GetTopLevelPropertyColumnType(const nsAString &aProperty, PRUint32 &aColumnType)
static nsresult SB_GetTopLevelPropertyColumn(const nsAString &aProperty, nsAString &aColumnName)
static PRBool SB_IsTopLevelProperty(PRUint32 aPropertyDBID)
#define SB_PROPERTY_METADATA_HASH_IDENTITY
#define SB_PROPERTY_CONTENTLENGTH
#define SB_PROPERTY_CREATED
#define SB_PROPERTY_UPDATED
#define SB_PROPERTY_CONTENTTYPE
const PRUint32 SB_COLUMN_TYPE_TEXT
static PRInt32 SB_GetPropertyId(const nsAString &aProperty, sbILocalDatabasePropertyCache *aPropertyCache)
const PRUint32 SB_COLUMN_TYPE_INTEGER
#define SB_PROPERTY_LISTTYPE
static sbStaticProperty sStaticProperties[]
#define SB_PROPERTY_ISLIST
#define SB_PROPERTY_CONTENTURL
_getSelectedPageStyle s i