| Modifier and Type | Field and Description |
|---|---|
| private final ArrayList | |
| private String | |
| private Table |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public boolean | Returns: true if this constraint already contains a column with same name.
|
| public abstract String | Returns: String The prefix to use in generated constraint names. Examples: "UK_", "FK_", and "PK_".
|
| public static String | Returns: String The generated nameIf a constraint is not explicitly named, this is called to generate a unique hash using the table and column names. |
| public static String | Returns: String The generated nameHelper method for |
| public Column | |
| public List | |
| public int | |
| public String | |
| public Table | |
| public static String | Returns: String The hashed name.The name to be hashed. name)Hash a constraint name using MD5. |
| public boolean | |
| public void | |
| public void | |
| public abstract String | sqlConstraintString(SqlStringGenerationContext context, String constraintName, String defaultCatalog, String defaultSchema)
Deprecated
for removal since 6.2. this method is no longer called
|
| public String |
| columns | back to summary |
|---|---|
| private final ArrayList<Column> columns | |
| name | back to summary |
|---|---|
| private String name | |
| table | back to summary |
|---|---|
| private Table table | |
| Constraint | back to summary |
|---|---|
| public Constraint() | |
| addColumn | back to summary |
|---|---|
| public void addColumn(Column column) | |
| addColumns | back to summary |
|---|---|
| public void addColumns(Value value) | |
| containsColumn | back to summary |
|---|---|
public boolean containsColumn(Column column)
| |
| generatedConstraintNamePrefix | back to summary |
|---|---|
public abstract String generatedConstraintNamePrefix()
| |
| generateName | back to summary |
|---|---|
| public static String generateName(String prefix, Table table, Column... columns) If a constraint is not explicitly named, this is called to generate a unique hash using the table and column names. Static so the name can be generated prior to creating the Constraint. They're cached, keyed by name, in multiple locations.
| |
| generateName | back to summary |
|---|---|
| public static String generateName(String prefix, Table table, List<Column> columns) Helper method for
| |
| getColumn | back to summary |
|---|---|
| public Column getColumn(int i) | |
| getColumns | back to summary |
|---|---|
| public List | |
| getColumnSpan | back to summary |
|---|---|
| public int getColumnSpan() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getTable | back to summary |
|---|---|
| public Table getTable() | |
| hashedName | back to summary |
|---|---|
| public static String hashedName(String name) Hash a constraint name using MD5. Convert the MD5 digest to base 35 (full alphanumeric), guaranteeing that the length of the name will always be smaller than the 30 character identifier restriction enforced by a few dialects. | |
| isGenerated | back to summary |
|---|---|
| public boolean isGenerated(Dialect dialect) | |
| setName | back to summary |
|---|---|
| public void setName(String name) | |
| setTable | back to summary |
|---|---|
| public void setTable(Table table) | |
| sqlConstraintString | back to summary |
|---|---|
| public abstract String sqlConstraintString(SqlStringGenerationContext context, String constraintName, String defaultCatalog, String defaultSchema)
Deprecated for removal since 6.2. this method is no longer called
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |