| Modifier and Type | Method and Description |
|---|---|
String |
columnList(String prefix)
Creates a comma-separated list of column names.
|
String |
columnList(String prefix,
Quoting quoting)
Creates a comma-separated list of column names.
|
List<Column> |
getColumns()
Gets the primary-key columns.
|
static boolean |
isAssignable(Column uPKColumn,
Column entityColumn) |
static boolean |
isIncreasable(Column uPKColumn,
Column column) |
Map<Column,Column> |
match(PrimaryKey primaryKey)
Matches the columns with the columns of
primaryKey
s.t. each column of primaryKey is assigned to a
column of this PK with same type. |
String |
toSQL(String columnPrefix)
Returns the primary key in SQL syntax.
|
String |
toSQL(String columnPrefix,
boolean withContraints)
Returns the primary key in SQL syntax.
|
String |
toSQL(String columnPrefix,
String contraint,
Map<String,String> typeReplacement)
Returns the primary key in SQL syntax.
|
String |
toString()
Returns a string representation of the primary key.
|
public List<Column> getColumns()
public Map<Column,Column> match(PrimaryKey primaryKey)
primaryKey
s.t. each column of primaryKey is assigned to a
column of this PK with same type.primaryKey - to matchprimaryKeypublic String columnList(String prefix)
columnPrefix - an optional prefix for each PK-columnpublic String columnList(String prefix, Quoting quoting)
columnPrefix - an optional prefix for each PK-columnpublic String toSQL(String columnPrefix)
columnPrefix - an optional prefix for each PK-columnpublic String toSQL(String columnPrefix, boolean withContraints)
columnPrefix - an optional prefix for each PK-columnpublic String toSQL(String columnPrefix, String contraint, Map<String,String> typeReplacement)
columnPrefix - an optional prefix for each PK-columntypeReplacement - column types replacementspublic String toString()