public class ForeignKeyColumnMetaData extends Object implements Comparable<ForeignKeyColumnMetaData>
| Modifier and Type | Field and Description |
|---|---|
protected String |
foreignKeyColumn |
protected ForeignKeyMetaData |
foreignKeyMetaData |
protected int |
position |
protected String |
primaryKeyColumn |
| 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 referenced 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.
|
protected final ForeignKeyMetaData foreignKeyMetaData
protected int position
protected String foreignKeyColumn
protected String primaryKeyColumn
public ForeignKeyColumnMetaData(ForeignKeyMetaData foreignKeyMetaData)
foreignKeyMetaData - the foreign key column belongs topublic ForeignKeyMetaData getForeignKeyMetaData()
public int getPosition()
public String getForeignKeyColumn()
public String getPrimaryKeyColumn()
public 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>Copyright © 2016 Krake Softwaretechnik. All rights reserved.