blob: c2bd154a26b9137d2fb25792cccf3807470c1d10 [file] [log] [blame]
#ifndef STMTDDLCREATEEXCEPTIONTABLE_H
#define STMTDDLCREATEEXCEPTIONTABLE_H
//**********************************************************************
// @@@ 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 @@@
/*
******************************************************************************
*
* File: StmtDDLCreateExceptionTable.h
* RCS: $Id:
* Description: class for parse node representing create exception table
* statement.
*
* Created: 08/27/07
* Language: C++
*
******************************************************************************
*/
#include "ComSmallDefs.h"
#include "StmtDDLNode.h"
// -----------------------------------------------------------------------
// contents of this file
// -----------------------------------------------------------------------
class StmtDDLCreateExceptionTable;
// -----------------------------------------------------------------------
// forward references
// -----------------------------------------------------------------------
// None
// -----------------------------------------------------------------------
// Create Exception table statement
// -----------------------------------------------------------------------
class StmtDDLCreateExceptionTable : public StmtDDLNode
{
public:
// constructor
StmtDDLCreateExceptionTable();
StmtDDLCreateExceptionTable (const QualifiedName & exceptionname,
const QualifiedName & objectreference);
// virtual destructor
virtual ~StmtDDLCreateExceptionTable();
// cast
virtual StmtDDLCreateExceptionTable * castToStmtDDLCreateExceptionTable();
// method for binding
ExprNode * bindNode(BindWA *bindWAPtr);
// accessors
inline const NAString getExceptionName() const;
inline const NAString getObjectReference() const ;
QualifiedName const &getExceptionNameAsQualifiedName() const
{ return exceptionName_; }
QualifiedName const &getObjectReferenceAsQualifiedName() const
{ return objectReference_; }
// for tracing
virtual const NAString displayLabel1() const;
virtual const NAString displayLabel2() const;
virtual const NAString getText() const;
private:
QualifiedName exceptionName_;
QualifiedName objectReference_;
}; // class StmtDDLCreateExceptionTable
//----------------------------------------------------------------------------
// definitions of inline methods for class StmtDDLCreateExceptionTable
//----------------------------------------------------------------------------
// accessors
inline const NAString StmtDDLCreateExceptionTable::getExceptionName() const
{
NAString exceptionname = exceptionName_.getQualifiedNameAsAnsiString();
return exceptionname;
}
inline const NAString StmtDDLCreateExceptionTable::getObjectReference() const
{
NAString objectreference = objectReference_.getQualifiedNameAsAnsiString();
return objectreference;
}
#endif // STMTDDLCREATEEXCEPTIONTABLE_H