You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by an...@apache.org on 2016/08/02 23:24:41 UTC
[09/10] incubator-trafodion git commit: added missing file to git
added missing file to git
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/15f78779
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/15f78779
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/15f78779
Branch: refs/heads/master
Commit: 15f78779da2fd94e6d7a4020a7e57b9d0ccbb495
Parents: 19c96b1
Author: Anoop Sharma <an...@esgyn.com>
Authored: Tue Aug 2 20:30:19 2016 +0000
Committer: Anoop Sharma <an...@esgyn.com>
Committed: Tue Aug 2 20:30:19 2016 +0000
----------------------------------------------------------------------
core/sql/parser/StmtDDLAlterTableStoredDesc.h | 102 +++++++++++++++++++++
1 file changed, 102 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/15f78779/core/sql/parser/StmtDDLAlterTableStoredDesc.h
----------------------------------------------------------------------
diff --git a/core/sql/parser/StmtDDLAlterTableStoredDesc.h b/core/sql/parser/StmtDDLAlterTableStoredDesc.h
new file mode 100644
index 0000000..9f6f757
--- /dev/null
+++ b/core/sql/parser/StmtDDLAlterTableStoredDesc.h
@@ -0,0 +1,102 @@
+/**********************************************************************
+// @@@ START COPYRIGHT @@@
+//
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+//
+// @@@ END COPYRIGHT @@@
+**********************************************************************/
+#ifndef STMTDDLALTERTABLESTOREDDESC_H
+#define STMTDDLALTERTABLESTOREDDESC_H
+/* -*-C++-*-
+ *****************************************************************************
+ *
+ * File: StmtDDLAlterTableStoredDesc.h
+ * Description:
+ * Alter Table <table-name> [generate|delete|enable|disable] stored descriptor
+ * DDL statements
+ *
+ *
+ * Created: 7/26/2016
+ * Language: C++
+ *
+ *****************************************************************************
+ */
+
+
+#include "StmtDDLAlterTable.h"
+
+// -----------------------------------------------------------------------
+// contents of this file
+// -----------------------------------------------------------------------
+class StmtDDLAlterTableStoredDesc;
+
+// -----------------------------------------------------------------------
+// forward references
+// -----------------------------------------------------------------------
+// None.
+
+// -----------------------------------------------------------------------
+// definition of class StmtDDLAlterTableStoredDesc
+// -----------------------------------------------------------------------
+class StmtDDLAlterTableStoredDesc : public StmtDDLAlterTable
+{
+
+public:
+ enum AlterStoredDescType
+ {
+ CHECK,
+ GENERATE,
+ DELETE,
+ ENABLE,
+ DISABLE
+ };
+
+ // constructor
+ StmtDDLAlterTableStoredDesc(const AlterStoredDescType type)
+ : StmtDDLAlterTable(DDL_ALTER_TABLE_STORED_DESC),
+ type_(type)
+ {}
+
+ // virtual destructor
+ virtual ~StmtDDLAlterTableStoredDesc()
+ {}
+
+ // cast
+ virtual StmtDDLAlterTableStoredDesc * castToStmtDDLAlterTableStoredDesc()
+ { return this; }
+
+ // accessors
+ AlterStoredDescType getType() { return type_; }
+
+ // method for tracing
+ virtual const NAString getText() const
+ {
+ return "StmtDDLAlterTableStoredDesc";
+ }
+
+private:
+
+ AlterStoredDescType type_;
+
+}; // class StmtDDLAlterTableStoredDesc
+
+// -----------------------------------------------------------------------
+// definitions of inline methods for class StmtDDLAlterTableStoredDesc
+// -----------------------------------------------------------------------
+
+#endif // STMTDDLALTERTABLESTOREDDESC_H