blob: 2314e062e0632a0df2a73b25a15304494a40f6ac [file] [log] [blame]
/**********************************************************************
// @@@ 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 ELEMDDLLIKEOPTIONS_H
#define ELEMDDLLIKEOPTIONS_H
/* -*-C++-*-
*****************************************************************************
*
* File: ElemDDLLikeOptions.h
* Description: classes for options in Like clause in DDL statements
*
*
* Created: 6/5/95
* Language: C++
*
*
*
*
*****************************************************************************
*/
#include "BaseTypes.h"
#include "ElemDDLNode.h"
// -----------------------------------------------------------------------
// contents of this file
// -----------------------------------------------------------------------
class ElemDDLLikeOpt;
class ElemDDLLikeOptWithConstraints;
class ElemDDLLikeOptWithHeadings;
class ElemDDLLikeOptWithHorizontalPartitions;
class ElemDDLLikeOptWithDivision;
// -----------------------------------------------------------------------
// forward references
// -----------------------------------------------------------------------
// None
// -----------------------------------------------------------------------
// definition of base class ElemDDLLikeOpt
// -----------------------------------------------------------------------
class ElemDDLLikeOpt : public ElemDDLNode
{
public:
// default constructor
ElemDDLLikeOpt(OperatorTypeEnum operatorType = ELM_ANY_LIKE_OPT_ELEM)
: ElemDDLNode(operatorType)
{ }
// virtual destructor
virtual ~ElemDDLLikeOpt();
// cast
virtual ElemDDLLikeOpt * castToElemDDLLikeOpt();
// method for tracing
virtual const NAString getText() const;
private:
}; // class ElemDDLLikeOpt
// -----------------------------------------------------------------------
// definition of class ElemDDLLikeOptWithoutConstraints
// -----------------------------------------------------------------------
class ElemDDLLikeOptWithoutConstraints : public ElemDDLLikeOpt
{
public:
// constructor
ElemDDLLikeOptWithoutConstraints()
: ElemDDLLikeOpt(ELM_LIKE_OPT_WITHOUT_CONSTRAINTS_ELEM)
{ }
// virtual destructor
virtual ~ElemDDLLikeOptWithoutConstraints();
// cast
virtual ElemDDLLikeOptWithoutConstraints *
castToElemDDLLikeOptWithoutConstraints();
// method for tracing
virtual const NAString getText() const;
private:
}; // class ElemDDLLikeOptWithoutConstraints
// -----------------------------------------------------------------------
// definition of class ElemDDLLikeOptWithHeadings
// -----------------------------------------------------------------------
class ElemDDLLikeOptWithHeadings : public ElemDDLLikeOpt
{
public:
// constructor
ElemDDLLikeOptWithHeadings()
: ElemDDLLikeOpt(ELM_LIKE_OPT_WITH_HEADINGS_ELEM)
{ }
// virtual destructor
virtual ~ElemDDLLikeOptWithHeadings();
// cast
virtual ElemDDLLikeOptWithHeadings * castToElemDDLLikeOptWithHeadings();
// method for tracing
virtual const NAString getText() const;
private:
}; // class ElemDDLLikeOptWithHeadings
// -----------------------------------------------------------------------
// definition of class ElemDDLLikeOptWithHorizontalPartitions
// -----------------------------------------------------------------------
class ElemDDLLikeOptWithHorizontalPartitions : public ElemDDLLikeOpt
{
public:
// constructor
ElemDDLLikeOptWithHorizontalPartitions()
: ElemDDLLikeOpt(ELM_LIKE_OPT_WITH_HORIZONTAL_PARTITIONS_ELEM)
{ }
// virtual destructor
virtual ~ElemDDLLikeOptWithHorizontalPartitions();
// cast
virtual ElemDDLLikeOptWithHorizontalPartitions *
castToElemDDLLikeOptWithHorizontalPartitions();
// method for tracing
virtual const NAString getText() const;
private:
}; // class ElemDDLLikeOptWithHorizontalPartitions
// -----------------------------------------------------------------------
// definition of class ElemDDLLikeOptWithoutSalt
// -----------------------------------------------------------------------
class ElemDDLLikeOptWithoutSalt : public ElemDDLLikeOpt
{
public:
// constructor
ElemDDLLikeOptWithoutSalt()
: ElemDDLLikeOpt(ELM_LIKE_OPT_WITHOUT_SALT_ELEM)
{ }
// virtual destructor
virtual ~ElemDDLLikeOptWithoutSalt();
// cast
virtual ElemDDLLikeOptWithoutSalt *
castToElemDDLLikeOptWithoutSalt();
// method for tracing
virtual const NAString getText() const;
private:
}; // class ElemDDLLikeOptWithoutSalt
// -----------------------------------------------------------------------
// definition of class ElemDDLLikeOptWithoutDivision
// -----------------------------------------------------------------------
class ElemDDLLikeOptWithoutDivision : public ElemDDLLikeOpt
{
public:
// constructor
ElemDDLLikeOptWithoutDivision()
: ElemDDLLikeOpt(ELM_LIKE_OPT_WITHOUT_DIVISION_ELEM)
{ }
// virtual destructor
virtual ~ElemDDLLikeOptWithoutDivision();
// cast
virtual ElemDDLLikeOptWithoutDivision *
castToElemDDLLikeOptWithoutDivision();
// method for tracing
virtual const NAString getText() const;
private:
}; // class ElemDDLLikeOptWithoutDivision
#endif // ELEMDDLLIKEOPTIONS_H