| Modifier and Type | Field and Description |
|---|---|
private SqlNodeList |
columnList |
private SqlIdentifier |
name |
protected static SqlSpecialOperator |
PRIMARY |
private static SqlSpecialOperator |
UNIQUE |
EMPTY_ARRAY, pos| Constructor and Description |
|---|
SqlKeyConstraint(SqlParserPos pos,
SqlIdentifier name,
SqlNodeList columnList)
Creates a SqlKeyConstraint.
|
| Modifier and Type | Method and Description |
|---|---|
List<SqlNode> |
getOperandList() |
SqlOperator |
getOperator() |
static SqlKeyConstraint |
primary(SqlParserPos pos,
SqlIdentifier name,
SqlNodeList columnList)
Creates a PRIMARY KEY constraint.
|
static SqlKeyConstraint |
unique(SqlParserPos pos,
SqlIdentifier name,
SqlNodeList columnList)
Creates a UNIQUE constraint.
|
void |
unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, isCountStar, isExpanded, operand, operandCount, setOperand, validateclone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, getParserPosition, isA, toSqlString, toSqlString, toString, validateExprprivate static final SqlSpecialOperator UNIQUE
protected static final SqlSpecialOperator PRIMARY
private final SqlIdentifier name
private final SqlNodeList columnList
SqlKeyConstraint(SqlParserPos pos, SqlIdentifier name, SqlNodeList columnList)
public static SqlKeyConstraint unique(SqlParserPos pos, SqlIdentifier name, SqlNodeList columnList)
public static SqlKeyConstraint primary(SqlParserPos pos, SqlIdentifier name, SqlNodeList columnList)
public SqlOperator getOperator()
getOperator in class SqlCallpublic List<SqlNode> getOperandList()
getOperandList in class SqlCallCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.