public class PrimaryKey extends AbstractDatabaseObject
LiquibaseSerializable.SerializationTypeGENERIC_CHANGELOG_EXTENSION_NAMESPACE, GENERIC_SNAPSHOT_EXTENSION_NAMESPACE, STANDARD_CHANGELOG_NAMESPACE, STANDARD_SNAPSHOT_NAMESPACE| Constructor and Description |
|---|
PrimaryKey() |
PrimaryKey(String name,
String tableCatalogName,
String tableSchemaName,
String tableName,
Column... columns) |
| Modifier and Type | Method and Description |
|---|---|
PrimaryKey |
addColumn(int position,
Column column)
Adds a new column to the column list of this PrimaryKey.
|
int |
compareTo(Object other) |
boolean |
equals(Object o) |
Index |
getBackingIndex() |
String |
getColumnNames() |
List<String> |
getColumnNamesAsList() |
List<Column> |
getColumns() |
DatabaseObject[] |
getContainingObjects() |
String |
getName() |
Schema |
getSchema() |
Table |
getTable()
Returns the Table object this PrimaryKey belongs to.
|
String |
getTablespace() |
int |
hashCode() |
boolean |
isCertainName() |
PrimaryKey |
setBackingIndex(Index backingIndex) |
PrimaryKey |
setCertainName(boolean certainName) |
PrimaryKey |
setName(String name)
Sets the name for the database object.
|
PrimaryKey |
setTable(Table table)
Sets the Table object this PrimaryKey belongs to.
|
PrimaryKey |
setTablespace(String tablespace) |
String |
toString() |
getAttribute, getAttribute, getAttributes, getObjectTypeName, getSerializableFieldNamespace, getSerializableFields, getSerializableFieldType, getSerializableFieldValue, getSerializedObjectName, getSerializedObjectNamespace, getSnapshotId, load, serialize, setAttribute, setSnapshotId, snapshotByDefaultpublic DatabaseObject[] getContainingObjects()
public String getName()
public PrimaryKey setName(String name)
DatabaseObjectname - the new name for the database objectpublic Schema getSchema()
public String getColumnNames()
public PrimaryKey addColumn(int position, Column column)
position - the position where to insert or replace the columncolumn - the new columnpublic Table getTable()
public PrimaryKey setTable(Table table)
table - the table object to set as the container for this PrimaryKeypublic int compareTo(Object other)
compareTo in interface ComparablecompareTo in class AbstractDatabaseObjectpublic String toString()
toString in class AbstractDatabaseObjectpublic boolean isCertainName()
public PrimaryKey setCertainName(boolean certainName)
public String getTablespace()
public PrimaryKey setTablespace(String tablespace)
public Index getBackingIndex()
public PrimaryKey setBackingIndex(Index backingIndex)
Copyright © 2018 Liquibase.org. All rights reserved.