public abstract class Constraint extends Object implements Comparable<Constraint>
| Modifier and Type | Field and Description |
|---|---|
static String |
CONSTRAINT
Constraint keyword
|
| Modifier | Constructor and Description |
|---|---|
protected |
Constraint(ConstraintType type)
Constructor
|
protected |
Constraint(ConstraintType type,
Integer order)
Constructor
|
protected |
Constraint(ConstraintType type,
String name)
Constructor
|
protected |
Constraint(ConstraintType type,
String name,
Integer order)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildNameSql()
Build the name SQL
|
abstract String |
buildSql()
Build the constraint SQL
|
int |
compareTo(Constraint constraint) |
abstract Constraint |
copy()
Copy the constraint
|
String |
getName()
Get the name
|
Integer |
getOrder()
Get the order
|
ConstraintType |
getType()
Get the constraint type
|
void |
setName(String name)
Set the name
|
void |
setOrder(Integer order)
Set the order to a number or null
|
void |
setType(ConstraintType type)
Set the constraint type
|
public static final String CONSTRAINT
protected Constraint(ConstraintType type)
type - constraint typeprotected Constraint(ConstraintType type, String name)
type - constraint typename - constraint nameprotected Constraint(ConstraintType type, Integer order)
type - constraint typeorder - constraint orderprotected Constraint(ConstraintType type, String name, Integer order)
type - constraint typename - constraint nameorder - constraint orderpublic String getName()
public void setName(String name)
name - namepublic ConstraintType getType()
public void setType(ConstraintType type)
type - constraint typepublic Integer getOrder()
public void setOrder(Integer order)
order - order numberprotected String buildNameSql()
public int compareTo(Constraint constraint)
compareTo in interface Comparable<Constraint>public abstract String buildSql()
public abstract Constraint copy()
Copyright © 2021 National Geospatial-Intelligence Agency. All rights reserved.