PrimaryKeyConstraint, ToSqlpublic class PrimaryKeyTableConstraint extends TableConstraint implements PrimaryKeyConstraint
| Modifier and Type | Field | Description |
|---|---|---|
boolean |
autoIncrement |
|
List<SortedColumn> |
columns |
|
ResolveType |
conflictClause |
name| Constructor | Description |
|---|---|
PrimaryKeyTableConstraint(String name,
List<SortedColumn> columns,
boolean autoIncrement,
ResolveType conflictClause) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
allMatch(BiFunction<String,SortOrder,Boolean> columnChecker) |
|
String |
getColumnName(int index) |
|
ResolveType |
getConflictClause() |
|
int |
getNumberOfColumns() |
|
String |
getPrimaryKeyName() |
|
boolean |
isAutoIncrement() |
|
void |
toSql(Appendable a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomma, commaNames, doubleQuote, isEmpty, isNotEmpty, nullToEmpty, requireNotEmpty, singleQuote, toSqlpublic final List<SortedColumn> columns
public final boolean autoIncrement
public final ResolveType conflictClause
public PrimaryKeyTableConstraint(String name, List<SortedColumn> columns, boolean autoIncrement, ResolveType conflictClause)
public int getNumberOfColumns()
getNumberOfColumns in interface PrimaryKeyConstraintpublic String getColumnName(int index)
getColumnName in interface PrimaryKeyConstraintpublic String getPrimaryKeyName()
getPrimaryKeyName in interface PrimaryKeyConstraintpublic boolean allMatch(BiFunction<String,SortOrder,Boolean> columnChecker)
allMatch in interface PrimaryKeyConstraintpublic boolean isAutoIncrement()
isAutoIncrement in interface PrimaryKeyConstraintpublic ResolveType getConflictClause()
getConflictClause in interface PrimaryKeyConstraintpublic void toSql(Appendable a) throws IOException
toSql in interface ToSqlIOExceptionCopyright © 2018. All rights reserved.