public class RawConstraint extends Constraint
CONSTRAINT| Constructor and Description |
|---|
RawConstraint(ConstraintType type,
String sql)
Constructor
|
RawConstraint(ConstraintType type,
String name,
String sql)
Constructor
|
RawConstraint(RawConstraint userRawConstraint)
Copy Constructor
|
RawConstraint(String sql)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildSql()
Build the constraint SQL
|
Constraint |
copy()
Copy the constraint
|
String |
getSql()
Get the constraint SQL
|
void |
setNameFromSql(String sql)
Set the name from the constraint SQL
|
void |
setSql(String sql)
Set the constraint SQL
|
void |
setTypeFromSql(String sql)
Set the type from the constraint SQL
|
buildNameSql, getName, getType, setName, setTypepublic RawConstraint(String sql)
sql - constraint SQLpublic RawConstraint(ConstraintType type, String sql)
type - constraint typesql - constraint SQLpublic RawConstraint(ConstraintType type, String name, String sql)
type - constraint typename - constraint namesql - constraint SQLpublic RawConstraint(RawConstraint userRawConstraint)
userRawConstraint - user raw constraintpublic String getSql()
public void setSql(String sql)
sql - constraint SQLpublic void setTypeFromSql(String sql)
sql - constraint SQLpublic void setNameFromSql(String sql)
sql - constraint SQLpublic String buildSql()
buildSql in class Constraintpublic Constraint copy()
copy in class ConstraintCopyright © 2019 National Geospatial-Intelligence Agency. All rights reserved.