PrimaryKeyConstraint
, ToSql
public 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, wait
comma, commaNames, doubleQuote, isEmpty, isNotEmpty, nullToEmpty, requireNotEmpty, singleQuote, toSql
public 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 PrimaryKeyConstraint
public String getColumnName(int index)
getColumnName
in interface PrimaryKeyConstraint
public String getPrimaryKeyName()
getPrimaryKeyName
in interface PrimaryKeyConstraint
public boolean allMatch(BiFunction<String,SortOrder,Boolean> columnChecker)
allMatch
in interface PrimaryKeyConstraint
public boolean isAutoIncrement()
isAutoIncrement
in interface PrimaryKeyConstraint
public ResolveType getConflictClause()
getConflictClause
in interface PrimaryKeyConstraint
public void toSql(Appendable a) throws IOException
toSql
in interface ToSql
IOException
Copyright © 2018. All rights reserved.