コード例 #1
0
 public SQLiteCreateViewStatement(bool isTemp, bool ifNotExists, SQLiteObjectName viewName, SQLiteSelectStatement select)
     : base(viewName)
 {
     _isTemp      = isTemp;
     _ifNotExists = ifNotExists;
     _select      = select;
 }
コード例 #2
0
 public SQLiteInsertStatement(SQLiteInsertPrefix prefix, string table, List <string> columns, SQLiteSelectStatement select)
 {
     _prefix   = prefix;
     TableName = table;
     Columns   = columns;
     _select   = select;
 }
コード例 #3
0
        public override object Clone()
        {
            SQLiteSelectStatement select = null;

            if (_select != null)
            {
                select = (SQLiteSelectStatement)_select.Clone();
            }

            SQLiteSelectExpression res = new SQLiteSelectExpression();

            res._select = select;
            return(res);
        }
コード例 #4
0
        public override object Clone()
        {
            SQLiteInsertPrefix prefix = null;

            if (_prefix != null)
            {
                prefix = (SQLiteInsertPrefix)_prefix.Clone();
            }
            SQLiteSelectStatement select = null;

            if (_select != null)
            {
                select = (SQLiteSelectStatement)_select.Clone();
            }
            List <string> columns = null;

            if (_columns != null)
            {
                columns = new List <string>();
                foreach (string str in _columns)
                {
                    columns.Add(str);
                }
            }
            List <SQLiteExpression> values = null;

            if (_values != null)
            {
                values = new List <SQLiteExpression>();
                foreach (SQLiteExpression expr in _values)
                {
                    values.Add((SQLiteExpression)expr.Clone());
                } // foreach
            }

            SQLiteInsertStatement res = new SQLiteInsertStatement();

            res._table   = _table;
            res._prefix  = prefix;
            res._select  = select;
            res._columns = columns;
            res._values  = values;
            return(res);
        }
コード例 #5
0
        public virtual object Clone()
        {
            SQLiteSelectStatement stmt = null;

            if (_select != null)
            {
                stmt = (SQLiteSelectStatement)_select.Clone();
            }
            SQLiteFromClause f = null;

            if (_from != null)
            {
                f = (SQLiteFromClause)_from.Clone();
            }
            SQLiteFromInternalTable res = new SQLiteFromInternalTable();

            res._from   = f;
            res._select = stmt;
            return(res);
        }
コード例 #6
0
        public override object Clone()
        {
            SQLiteExpression expr = null;

            if (_expr != null)
            {
                expr = (SQLiteExpression)_expr.Clone();
            }
            SQLiteSelectStatement select = null;

            if (_select != null)
            {
                select = (SQLiteSelectStatement)_select.Clone();
            }
            SQLiteObjectName table = null;

            if (_table != null)
            {
                table = (SQLiteObjectName)_table.Clone();
            }
            List <SQLiteExpression> exprlist = null;

            if (_exprlist != null)
            {
                exprlist = new List <SQLiteExpression>();
                foreach (SQLiteExpression e in _exprlist)
                {
                    exprlist.Add((SQLiteExpression)e.Clone());
                }
            }

            SQLiteInExpression res = new SQLiteInExpression();

            res._expr     = expr;
            res._exprlist = exprlist;
            res._isIn     = _isIn;
            res._select   = select;
            res._table    = table;
            return(res);
        }
コード例 #7
0
        public override object Clone()
        {
            SQLiteSelectStatement select = null;

            if (_select != null)
            {
                select = (SQLiteSelectStatement)_select.Clone();
            }
            SQLiteObjectName viewName = null;

            if (this.ObjectName != null)
            {
                viewName = (SQLiteObjectName)this.ObjectName.Clone();
            }

            SQLiteCreateViewStatement res = new SQLiteCreateViewStatement(viewName);

            res._ifNotExists = _ifNotExists;
            res._isTemp      = _isTemp;
            res._select      = select;
            return(res);
        }
コード例 #8
0
        public override object Clone()
        {
            SQLiteSelectStatement first = null;

            if (_first != null)
            {
                first = (SQLiteSelectStatement)_first.Clone();
            }
            SQLiteSelectStatement next = null;

            if (_next != null)
            {
                next = (SQLiteSelectStatement)_next.Clone();
            }

            SQLiteMultiSelectStatement res = new SQLiteMultiSelectStatement();

            res._first = first;
            res._op    = _op;
            res._next  = next;
            return(res);
        }
コード例 #9
0
 public SQLiteFromInternalTable(SQLiteSelectStatement select)
 {
     _select = select;
 }
コード例 #10
0
 public SQLiteSelectExpression(SQLiteSelectStatement select)
 {
     _select = select;
 }
コード例 #11
0
 public SQLiteInExpression(SQLiteExpression expr, bool isIn, SQLiteSelectStatement select)
 {
     _expr   = expr;
     _isIn   = isIn;
     _select = select;
 }
コード例 #12
0
 public SQLiteMultiSelectStatement(SQLiteSelectStatement first, SQLiteSelectOperator op, SQLiteSelectStatement next)
 {
     _first = first;
     _op    = op;
     _next  = next;
 }