This project has retired. For details please refer to its Attic page.
tmudr: tmudr::CardinalityConstraintInfo Class Reference

tmudr::CardinalityConstraintInfo Class Reference

A cardinality constraint. More...

#include <sqludr.h>

Inheritance diagram for tmudr::CardinalityConstraintInfo:
tmudr::ConstraintInfo

Public Member Functions

 CardinalityConstraintInfo (long minNumRows=0, long maxNumRows=-1)
long getMinNumRows () const
long getMaxNumRows () const

Detailed Description

A cardinality constraint.

Upper and/or lower bounds for the cardinality of a table. Note that unlike cardinality estimates, this is a hard constraint that must be followed by the table, otherwise incorrect results and errors may occur.


Constructor & Destructor Documentation

CardinalityConstraintInfo::CardinalityConstraintInfo ( long  minNumRows = 0,
long  maxNumRows = -1 
)

Construct a new cardinality constraint.

A cardinality constraint allows to specify a lower and/or an upper limit for the number of rows in a table.

Parameters:
minNumRows The minimum number of rows in the table, 0 or a positive number.
maxNumRows The maximum number of rows in the table, or -1 if there is no upper bound. If it is not -1, maxNumRows must be greater or equal minNumRows.
Exceptions:
UDRException 

Member Function Documentation

long CardinalityConstraintInfo::getMaxNumRows (  )  const

Return the maximum number of rows in a table.

Returns:
Maximum number of rows or -1 if there is no upper bound.
long CardinalityConstraintInfo::getMinNumRows (  )  const

Return the minimum number of rows in a table.

Returns:
Minimum number of rows (0 or a positive number).

The documentation for this class was generated from the following files:
 All Data Structures Functions Enumerations Enumerator

Generated on 31 Aug 2016 for tmudr by  doxygen 1.6.1