public abstract class LocalConstraint extends Constraint
DatabaseMetaData
.Constructor and Description |
---|
LocalConstraint()
Default constructor.
|
LocalConstraint(DBIdentifier name,
Table table) |
LocalConstraint(String name,
Table table)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addColumn(Column col)
Add a column to the constraint.
|
boolean |
columnsMatch(Column[] ocols)
Return true if the given columns match the columns of this constraint.
|
boolean |
containsColumn(Column col)
Return true if the pk includes the given column.
|
void |
deref() |
void |
derefColumns()
Deref all columns in this constraint.
|
protected boolean |
equalsLocalConstraint(LocalConstraint lc)
Return true if the columns of this constraint matches that of
the given one.
|
Column[] |
getColumns()
Return all the columns the constraint spans.
|
int |
getRefCount() |
void |
ref() |
void |
refColumns()
Ref all columns in this constraint.
|
boolean |
removeColumn(Column col)
Remove a column from the constraint.
|
void |
setColumns(Column[] cols)
Set the columns the constraint spans.
|
getColumnIdentifier, getColumnName, getFullIdentifier, getFullName, getIdentifier, getName, getQualifiedPath, getSchemaIdentifier, getSchemaName, getTable, getTableIdentifier, getTableName, isDeferred, isLogical, setColumnIdentifier, setColumnName, setDeferred, setIdentifier, setName, setSchemaIdentifier, setSchemaName, setTableIdentifier, setTableName, toString
public LocalConstraint()
public LocalConstraint(String name, Table table)
name
- the name of the constraint, if anytable
- the table of the constraintpublic LocalConstraint(DBIdentifier name, Table table)
public Column[] getColumns()
public void setColumns(Column[] cols)
public void addColumn(Column col)
public boolean removeColumn(Column col)
public boolean containsColumn(Column col)
public void refColumns()
public void derefColumns()
public boolean columnsMatch(Column[] ocols)
protected boolean equalsLocalConstraint(LocalConstraint lc)
public int getRefCount()
public void ref()
public void deref()
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.