public class PrimaryKey extends Object implements ModelObject
Modifier and Type | Field and Description |
---|---|
protected List<Column> |
columns |
static String |
copyright |
static org.slf4j.Logger |
logger |
protected List<PrimaryKeyColumn> |
primaryKeyColumns |
protected String |
primaryKeyName |
protected Table |
table |
protected boolean |
valid |
Constructor and Description |
---|
PrimaryKey() |
PrimaryKey(Table table) |
Modifier and Type | Method and Description |
---|---|
void |
afterUnmarshal(Unmarshaller u,
Object parent) |
PrimaryKeyColumn |
findPrimaryKeyColumnByName(String columnName) |
PrimaryKeyColumn |
findPrimaryKeyColumnByNameIgnoreCase(String columnName) |
List<Column> |
getColumns() |
String |
getDatabaseName() |
List<PrimaryKeyColumn> |
getPrimaryKeyColumns() |
String |
getPrimaryKeyName() |
String |
getQualifiedName() |
String |
getSchemaName() |
Table |
getTable() |
String |
getTableName() |
void |
init(Model model) |
boolean |
isValid() |
void |
link(Model model) |
void |
reset() |
void |
setPrimaryKeyName(String primaryKeyName) |
void |
setTable(Table table) |
String |
toString() |
void |
visitChildren(ModelObjectVisitor visitor) |
public static final String copyright
protected final List<PrimaryKeyColumn> primaryKeyColumns
protected Table table
protected String primaryKeyName
protected boolean valid
public static final org.slf4j.Logger logger
public PrimaryKey()
public PrimaryKey(Table table)
public String getQualifiedName()
public void afterUnmarshal(Unmarshaller u, Object parent)
afterUnmarshal
in interface ModelObject
public void reset()
reset
in interface ModelObject
public void init(Model model)
init
in interface ModelObject
public void link(Model model)
link
in interface ModelObject
public void visitChildren(ModelObjectVisitor visitor)
visitChildren
in interface ModelObject
public PrimaryKeyColumn findPrimaryKeyColumnByNameIgnoreCase(String columnName)
public PrimaryKeyColumn findPrimaryKeyColumnByName(String columnName)
public Table getTable()
public void setTable(Table table)
public String getDatabaseName()
public String getSchemaName()
public String getTableName()
public String getPrimaryKeyName()
public void setPrimaryKeyName(String primaryKeyName)
public List<PrimaryKeyColumn> getPrimaryKeyColumns()
public boolean isValid()