| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| public static final NamingHelper | INSTANCE
Singleton access |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public 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 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 String | generateHashedFkName(String prefix, Identifier tableName, Identifier referencedTableName, List<Identifier> columnNames)
If a foreign-key is not explicitly named, this is called to generate a unique hash using the table and column names. |
| public String | generateHashedFkName(String prefix, Identifier tableName, Identifier referencedTableName, Identifier... columnNames)
If a foreign-key is not explicitly named, this is called to generate a unique hash using the table and column names. |
| public String | Returns: String The hashed name.The name to be hashed. s)Hash a constraint name using MD5. |
| public static NamingHelper |
| charset | back to summary |
|---|---|
| private final String charset | |
| INSTANCE | back to summary |
|---|---|
| public static final NamingHelper INSTANCE Singleton access | |
| NamingHelper | back to summary |
|---|---|
| public NamingHelper() | |
| NamingHelper | back to summary |
|---|---|
| private NamingHelper(String charset) | |
| generateHashedConstraintName | back to summary |
|---|---|
| public String generateHashedConstraintName(String prefix, Identifier tableName, Identifier... columnNames) If a constraint is not explicitly named, this is called to generate a unique hash using the table and column names.
| |
| generateHashedConstraintName | back to summary |
|---|---|
| public String generateHashedConstraintName(String prefix, Identifier tableName, List<Identifier> columnNames) If a constraint is not explicitly named, this is called to generate a unique hash using the table and column names.
| |
| generateHashedFkName | back to summary |
|---|---|
| public String generateHashedFkName(String prefix, Identifier tableName, Identifier referencedTableName, List<Identifier> columnNames) If a foreign-key is not explicitly named, this is called to generate a unique hash using the table and column names. | |
| generateHashedFkName | back to summary |
|---|---|
| public String generateHashedFkName(String prefix, Identifier tableName, Identifier referencedTableName, Identifier... columnNames) If a foreign-key is not explicitly named, this is called to generate a unique hash using the table and column names. | |
| hashedName | back to summary |
|---|---|
| public String hashedName(String s) 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. | |
| withCharset | back to summary |
|---|---|
| public static NamingHelper withCharset(String charset) | |