Package org.apache.openjpa.jdbc.meta
Interface MappingInfo.ForeignKeyDefaults
- Enclosing class:
- MappingInfo
public static interface MappingInfo.ForeignKeyDefaults
Supplies default foreign key information.
-
Method Summary
Modifier and TypeMethodDescriptionReturn a default foreign key for the given tables, or null to create a logical foreign key only.void
Populate the given foreign key column with defaults.
-
Method Details
-
get
Return a default foreign key for the given tables, or null to create a logical foreign key only. Do not fill in the columns of the foreign key, only attributes like its name, delete action, etc. Do not add the foreign key to the table. -
populate
void populate(Table local, Table foreign, Column col, Object target, boolean inverse, int pos, int cols) Populate the given foreign key column with defaults.- Parameters:
target
- the target column or constant valuepos
- the index of this column in the foreign keycols
- the number of columns in the foreign key
-