public static interface MappingInfo.ForeignKeyDefaults
Modifier and Type | Method and Description |
---|---|
ForeignKey |
get(Table local,
Table foreign,
boolean inverse)
Return a default foreign key for the given tables, or null to
create a logical foreign key only.
|
void |
populate(Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols)
Populate the given foreign key column with defaults.
|
ForeignKey get(Table local, Table foreign, boolean inverse)
void populate(Table local, Table foreign, Column col, Object target, boolean inverse, int pos, int cols)
target
- the target column or constant valuepos
- the index of this column in the foreign keycols
- the number of columns in the foreign keyCopyright © 2006–2020 Apache Software Foundation. All rights reserved.