public class ForeignKeyColumnMetaData extends Object implements Comparable<ForeignKeyColumnMetaData>
| Constructor and Description |
|---|
ForeignKeyColumnMetaData(ForeignKeyMetaData foreignKeyMetaData)
Creates a foreign key column.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ForeignKeyColumnMetaData o) |
String |
getForeignKeyColumn()
Gets the referencing column.
|
ForeignKeyMetaData |
getForeignKeyMetaData()
Gets the foreign key.
|
int |
getPosition()
Gets the ordinal position within the index.
|
String |
getPrimaryKeyColumn()
Gets the primary key column.
|
void |
setForeignKeyColumn(String foreignKeyColumn)
Sets the referencing column.
|
void |
setPosition(int position)
Sets the ordinal position within the index.
|
void |
setPrimaryKeyColumn(String primaryKeyColumn)
Sets the primary key column.
|
void |
setupForeignKeyColumnFromMetaData(ResultSet resultSet)
Sets up the foreign key column from the database meta data result.
|
String |
toString() |
void |
validate()
Validates and postprocesses the foreign key column data.
|
public ForeignKeyColumnMetaData(ForeignKeyMetaData foreignKeyMetaData)
foreignKeyMetaData - the foreign key column belongs topublic ForeignKeyMetaData getForeignKeyMetaData()
public int getPosition()
public void setPosition(int position)
position - the positionpublic String getForeignKeyColumn()
public void setForeignKeyColumn(String foreignKeyColumn)
foreignKeyColumn - the column namepublic String getPrimaryKeyColumn()
public void setPrimaryKeyColumn(String primaryKeyColumn)
primaryKeyColumn - the column namepublic void setupForeignKeyColumnFromMetaData(ResultSet resultSet) throws SQLException
resultSet - the column result setSQLException - the processing the result set failedpublic void validate()
public int compareTo(ForeignKeyColumnMetaData o)
compareTo in interface Comparable<ForeignKeyColumnMetaData>Tentackle - distributed, domain- and model-driven