public class JdbcForeignKey extends Object
| Constructor and Description |
|---|
JdbcForeignKey(ResultSet metadata) |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(ResultSet metadata)
Adds a column to the foreign key.
|
String |
getName()
Returns the name of the JdbcForeignKey.
|
String |
getRefTable()
Returns the refTable of the foreign key.
|
boolean |
matches(ForeignKey foreignKey)
Checks if the metadata matches the foreign key definition.
|
public JdbcForeignKey(ResultSet metadata) throws SQLException
metadata - the foreign key metadataSQLException - thrown in case of an SQL error.public void addColumn(ResultSet metadata) throws SQLException
metadata - the column metadataSQLException - thrown in case of an SQL error.public String getName()
public String getRefTable()
public boolean matches(ForeignKey foreignKey)
foreignKey - the foreign key definitionCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.