|
using System;
using System.Collections.Generic;
using System.Text;
namespace SQLiteParser
{
public class SQLiteFromIndexed
{
public SQLiteFromIndexed()
{
}
public SQLiteFromIndexed(string by)
{
IndexedBy = by;
}
public bool IsIndexed
{
get { return _by != null; }
}
public string IndexedBy
{
get { return _by; }
set
{
_by = Utils.QuoteIfNeeded(value);
}
}
public override bool Equals(object obj)
{
if (obj == null)
return false;
SQLiteFromIndexed dst = obj as SQLiteFromIndexed;
if (dst == null)
return false;
return _by == dst._by;
}
public override string ToString()
{
if (IsIndexed)
return "INDEXED BY " + _by;
else
return "NOT INDEXED";
}
public virtual object Clone()
{
SQLiteFromIndexed res = new SQLiteFromIndexed();
res._by = _by;
return res;
}
private string _by;
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
My name is Liron Levi and I'm developing software for fun & profit for 15 years already.