public class Constraint extends Object
Constructor and Description |
---|
Constraint() |
Modifier and Type | Method and Description |
---|---|
String |
getDeleteRule()
Gets the delete rule.
|
String |
getName()
Gets the name of this constraint.
|
String |
getOwner()
Gets the owner of this constraint.
|
List<String> |
getReferencedColumns()
Gets the referenced column names for this constraint.
|
String |
getReferencedConstraintName()
Gets the referenced constraint name.
|
String |
getReferencedTableName()
Gets the referenced table name for this constraint.
|
String |
getTableName()
Gets the table name for this constraint.
|
ConstraintType |
getType()
Gets the type of this constraint.
|
void |
setDeleteRule(String deleteRule)
Sets the delete rule.
|
void |
setName(String name)
Sets the name of this constraint.
|
void |
setOwner(String owner)
Sets the owner of this constraint.
|
void |
setReferencedColumns(List<String> referencedColumns)
Sets the referenced columns for this constraint.
|
void |
setReferencedConstraintName(String referencedConstraintName)
Sets the referenced constraint name.
|
void |
setReferencedTableName(String referencedTableName)
Sets the referenced table name for this constraint.
|
void |
setTableName(String tableName)
Sets the table name for this constraint.
|
void |
setType(ConstraintType type)
Sets the type of this constraint.
|
String |
toString()
Creates a String representation of this constraint.
|
public String getOwner()
public void setOwner(String owner)
owner
- The owner of this constraint.NullPointerException
- When the supplied owner is null.IllegalArgumentException
- When the supplied owner is empty.public String getName()
public void setName(String name)
name
- The name of this constraint.NullPointerException
- When the supplied name is null.IllegalArgumentException
- When the supplied name is empty.public ConstraintType getType()
public void setType(ConstraintType type)
type
- The type of this constraint.NullPointerException
- When the supplied type is null.public String getTableName()
public void setTableName(String tableName)
tableName
- The table name for this constraint.NullPointerException
- When the supplied tableName is null.IllegalArgumentException
- When the supplied tableName is empty.public String getReferencedConstraintName()
public void setReferencedConstraintName(String referencedConstraintName)
referencedConstraintName
- The referenced constraint name.public String getDeleteRule()
public void setDeleteRule(String deleteRule)
deleteRule
- The delete rule to set.
public String getReferencedTableName()
public void setReferencedTableName(String referencedTableName)
referencedTableName
- The referenced table name for this constraint.
Supply null when this constraint does not reference another table/public List<String> getReferencedColumns()
public void setReferencedColumns(List<String> referencedColumns)
referencedColumns
- The referenced columns for this constraint.Copyright © 2008–2018. All rights reserved.