public abstract class Constraint extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONSTRAINT
Constraint keyword
|
| Modifier | Constructor and Description |
|---|---|
protected |
Constraint(ConstraintType type)
Constructor
|
protected |
Constraint(ConstraintType type,
String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildNameSql()
Build the name SQL
|
abstract String |
buildSql()
Build the constraint SQL
|
abstract Constraint |
copy()
Copy the constraint
|
String |
getName()
Get the name
|
ConstraintType |
getType()
Get the constraint type
|
void |
setName(String name)
Set the name
|
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 namepublic String getName()
public void setName(String name)
name - namepublic ConstraintType getType()
public void setType(ConstraintType type)
type - constraint typeprotected String buildNameSql()
public abstract String buildSql()
public abstract Constraint copy()
Copyright © 2020 National Geospatial-Intelligence Agency. All rights reserved.