public class DbConstraint extends DbObject<DbObject<?>> implements Constraint
Constraint.Type
Constructor and Description |
---|
DbConstraint(DbColumn parent,
String name,
Constraint.Type type) |
DbConstraint(DbTable parent,
String name,
Constraint.Type type,
DbColumn... columns) |
DbConstraint(DbTable parent,
String name,
Constraint.Type type,
String... colNames) |
Modifier and Type | Method and Description |
---|---|
List<DbColumn> |
getColumns() |
String |
getConstraintNameSQL() |
Constraint.Type |
getType() |
String |
toString() |
addObjects, checkOwnership, checkOwnership, findObject, getAbsoluteName, getName, getParent, getSpec
public DbConstraint(DbColumn parent, String name, Constraint.Type type)
public DbConstraint(DbTable parent, String name, Constraint.Type type, String... colNames)
public DbConstraint(DbTable parent, String name, Constraint.Type type, DbColumn... columns)
public Constraint.Type getType()
getType
in interface Constraint
public String getConstraintNameSQL()
getConstraintNameSQL
in interface Constraint
public List<DbColumn> getColumns()
getColumns
in interface Constraint
Copyright © 2006–2021 OpenHMS. All rights reserved.