27 #ifndef __SBSQLBUILDERCRITERION_H__
28 #define __SBSQLBUILDERCRITERION_H__
30 #include <sbISQLBuilder.h>
32 #include <nsAutoPtr.h>
33 #include <nsStringGlue.h>
35 #include <nsCOMArray.h>
44 const nsAString& aColumnName,
59 nsCOMPtr<sbISQLBuilderCriterion>
mLeft;
60 nsCOMPtr<sbISQLBuilderCriterion>
mRight;
67 NS_DECL_ISUPPORTS_INHERITED
68 NS_DECL_SBISQLBUILDERCRITERION
71 const nsAString& aColumnName,
83 NS_DECL_ISUPPORTS_INHERITED
84 NS_DECL_SBISQLBUILDERCRITERION
87 const nsAString& aColumnName,
88 const nsAString& aLeftValue,
89 const nsAString& aRightValue,
102 NS_DECL_ISUPPORTS_INHERITED
103 NS_DECL_SBISQLBUILDERCRITERION
106 const nsAString& aColumnName,
118 NS_DECL_ISUPPORTS_INHERITED
119 NS_DECL_SBISQLBUILDERCRITERION
122 const nsAString& aColumnName,
134 NS_DECL_ISUPPORTS_INHERITED
135 NS_DECL_SBISQLBUILDERCRITERION
138 const nsAString& aColumnName,
139 PRUint32 aMatchType);
146 NS_DECL_ISUPPORTS_INHERITED
147 NS_DECL_SBISQLBUILDERCRITERION
150 const nsAString& aColumnName,
151 PRUint32 aMatchType);
158 NS_DECL_ISUPPORTS_INHERITED
159 NS_DECL_SBISQLBUILDERCRITERION
162 const nsAString& aLeftColumnName,
164 const nsAString& aRightTableName,
165 const nsAString& aRightColumnName);
168 nsString mRightTableName;
169 nsString mRightColumnName;
175 NS_DECL_ISUPPORTS_INHERITED
176 NS_DECL_SBISQLBUILDERCRITERION
186 NS_DECL_ISUPPORTS_INHERITED
187 NS_DECL_SBISQLBUILDERCRITERION
198 NS_DECL_ISUPPORTS_INHERITED
199 NS_DECL_SBISQLBUILDERCRITERION
200 NS_DECL_SBISQLBUILDERCRITERIONIN
203 const nsAString& aColumnName);
216 nsString stringValue;
218 nsCOMPtr<sbISQLSelectBuilder> subquery;
221 nsTArray<sbInItem> mInItems;
virtual ~sbSQLBuilderCriterionLong()
NS_DECL_ISUPPORTS_INHERITED NS_DECL_SBISQLBUILDERCRITERION sbSQLBuilderCriterionLong(const nsAString &aTableName, const nsAString &aColumnName, PRUint32 aMatchType, PRInt32 aValue)
virtual ~sbSQLBuilderCriterionIn()
NS_DECL_ISUPPORTS_INHERITED NS_DECL_SBISQLBUILDERCRITERION sbSQLBuilderCriterionParameter(const nsAString &aTableName, const nsAString &aColumnName, PRUint32 aMatchType)
virtual ~sbSQLBuilderCriterionString()
virtual ~sbSQLBuilderCriterionAnd()
nsCOMPtr< sbISQLBuilderCriterion > mLeft
void AppendMatchTo(nsAString &aStr)
NS_DECL_ISUPPORTS_INHERITED NS_DECL_SBISQLBUILDERCRITERION sbSQLBuilderCriterionTable(const nsAString &aLeftTableName, const nsAString &aLeftColumnName, PRUint32 aMatchType, const nsAString &aRightTableName, const nsAString &aRightColumnName)
virtual ~sbSQLBuilderCriterionNull()
void AppendLogicalTo(const nsAString &aOperator, nsAString &aStr)
virtual ~sbSQLBuilderCriterionParameter()
NS_DECL_ISUPPORTS_INHERITED NS_DECL_SBISQLBUILDERCRITERION sbSQLBuilderCriterionOr(sbISQLBuilderCriterion *aLeft, sbISQLBuilderCriterion *aRight)
NS_DECL_ISUPPORTS_INHERITED NS_DECL_SBISQLBUILDERCRITERION sbSQLBuilderCriterionLongLong(const nsAString &aTableName, const nsAString &aColumnName, PRUint32 aMatchType, PRInt64 aValue)
virtual ~sbSQLBuilderCriterionBetweenString()
Interface for "in" SQL critera.
nsCOMPtr< sbISQLBuilderCriterion > mRight
NS_DECL_ISUPPORTS_INHERITED NS_DECL_SBISQLBUILDERCRITERION sbSQLBuilderCriterionString(const nsAString &aTableName, const nsAString &aColumnName, PRUint32 aMatchType, const nsAString &aValue)
NS_DECL_ISUPPORTS_INHERITED NS_DECL_SBISQLBUILDERCRITERION sbSQLBuilderCriterionNull(const nsAString &aTableName, const nsAString &aColumnName, PRUint32 aMatchType)
NS_DECL_ISUPPORTS_INHERITED NS_DECL_SBISQLBUILDERCRITERION NS_DECL_SBISQLBUILDERCRITERIONIN sbSQLBuilderCriterionIn(const nsAString &aTableName, const nsAString &aColumnName)
Interface for SQL critera. This interface has no public methods as it is used only as a return type f...
NS_DECL_ISUPPORTS_INHERITED NS_DECL_SBISQLBUILDERCRITERION sbSQLBuilderCriterionBetweenString(const nsAString &aTableName, const nsAString &aColumnName, const nsAString &aLeftValue, const nsAString &aRightValue, PRBool aNegate)
virtual ~sbSQLBuilderCriterionOr()
virtual ~sbSQLBuilderCriterionLongLong()
NS_DECL_ISUPPORTS_INHERITED NS_DECL_SBISQLBUILDERCRITERION sbSQLBuilderCriterionAnd(sbISQLBuilderCriterion *aLeft, sbISQLBuilderCriterion *aRight)
virtual ~sbSQLBuilderCriterionBase()
virtual ~sbSQLBuilderCriterionTable()
void AppendTableColumnTo(nsAString &aStr)
NS_DECL_ISUPPORTS sbSQLBuilderCriterionBase(const nsAString &aTableName, const nsAString &aColumnName, PRUint32 aMatchType, sbISQLBuilderCriterion *aLeft, sbISQLBuilderCriterion *aRight)