|
using System;
using System.Collections.Generic;
using System.Text;
namespace SQLiteParser
{
/// <summary>
/// Serves as the base class for all SQL DDL statements
/// </summary>
public class SQLiteDdlStatement : SQLiteStatement
{
#region Constructors
public SQLiteDdlStatement()
{
}
public SQLiteDdlStatement(SQLiteObjectName name)
{
_objectName = name;
}
#endregion
#region Public Properties
/// <summary>
/// Get/Set the name of the SQL object
/// </summary>
public SQLiteObjectName ObjectName
{
get { return _objectName; }
set { _objectName = value; }
}
#endregion
#region Public Overrided Methods
public override bool Equals(object obj)
{
if (obj == null)
return false;
SQLiteDdlStatement dst = obj as SQLiteDdlStatement;
if (dst == null)
return false;
return RefCompare.Compare(_objectName, dst._objectName);
}
public override object Clone()
{
SQLiteObjectName objectName = null;
if (_objectName != null)
objectName = (SQLiteObjectName)_objectName.Clone();
SQLiteDdlStatement res = new SQLiteDdlStatement();
res._objectName = objectName;
return res;
}
#endregion
#region Private Variables
private SQLiteObjectName _objectName;
#endregion
}
}
|
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.