Example #1
0
        public INode Clone()
        {
            DbObject dbObject = new DbObject((Identifier)(m_identifier.Clone()));

            if (m_next != null)
            {
                dbObject.Add((DbObject)(m_next.Clone()));
            }

            return(dbObject);
        }
Example #2
0
        public INode Clone()
        {
            Assignment assignment = new Assignment(
                (DbObject)(m_name.Clone()),
                m_value.Clone());

            if (m_next != null)
            {
                assignment.Add((Assignment)(m_next.Clone()));
            }

            return(assignment);
        }
Example #3
0
        public INode Clone()
        {
            DeleteStatement deleteStatement = new DeleteStatement();

            if (m_table != null)
            {
                deleteStatement.Table = (DbObject)(m_table.Clone());
            }

            if (m_where != null)
            {
                deleteStatement.Where = (IExpression)(m_where.Clone());
            }

            return(deleteStatement);
        }
Example #4
0
        public INode Clone()
        {
            InsertStatement insertStatement = new InsertStatement();

            if (m_table != null)
            {
                insertStatement.Table = (DbObject)(m_table.Clone());
            }

            if (m_columnNames != null)
            {
                insertStatement.ColumnNames = (AliasedItem)(m_columnNames.Clone());
            }

            if (m_columnValues != null)
            {
                insertStatement.ColumnValues = (ExpressionItem)(m_columnValues.Clone());
            }

            return(insertStatement);
        }
Example #5
0
        public INode Clone()
        {
            UpdateStatement updateStatement = new UpdateStatement();

            if (m_table != null)
            {
                updateStatement.Table = (DbObject)(m_table.Clone());
            }

            if (m_assignments != null)
            {
                updateStatement.Assignments = (Assignment)(m_assignments.Clone());
            }

            if (m_where != null)
            {
                updateStatement.Where = (IExpression)(m_where.Clone());
            }

            return(updateStatement);
        }
Example #6
0
 public INode Clone()
 {
     return(new TableWildcard((DbObject)(m_dbObject.Clone())));
 }