R - The FOREIGN KEY's owner table recordO - The referenced KEY's owner table recordpublic interface ForeignKey<R extends Record,O extends Record> extends Key<R>
ForeignKey is an object referencing a UniqueKey. It
 represents a FOREIGN KEY relationship between two tables.| Modifier and Type | Method and Description | 
|---|---|
Result<R> | 
fetchChildren(Collection<? extends O> records)
Fetch child records of a given set of records through this foreign key
 
 This returns childs record referencing any record in a given set of
 records through this foreign key 
 | 
Result<R> | 
fetchChildren(O... records)
Fetch child records of a given set of records through this foreign key
 
 This returns childs record referencing any record in a given set of
 records through this foreign key 
 | 
Result<R> | 
fetchChildren(O record)
Fetch child records of a given record through this foreign key
 
 This returns childs record referencing a given record through this
 foreign key 
 | 
O | 
fetchParent(R record)
Fetch a parent record of a given record through this foreign key
 
 This returns a parent record referenced by a given record through this
 foreign key. 
 | 
Result<O> | 
fetchParents(Collection<? extends R> records)
Fetch parent records of a given set of record through this foreign key
 
 This returns parent records referenced by any record in a given set of
 records through this foreign key. 
 | 
Result<O> | 
fetchParents(R... records)
Fetch parent records of a given set of record through this foreign key
 
 This returns parent records referenced by any record in a given set of
 records through this foreign key. 
 | 
UniqueKey<O> | 
getKey()
The referenced  
Key | 
getFields, getFieldsArray, getTableO fetchParent(R record) throws DataAccessException
 This returns a parent record referenced by a given record through this
 foreign key. If no parent record was found, this returns
 null
DataAccessException - if something went wrong executing the queryTableRecord.fetchParent(ForeignKey)Result<O> fetchParents(R... records) throws DataAccessException
This returns parent records referenced by any record in a given set of records through this foreign key.
DataAccessException - if something went wrong executing the queryTableRecord.fetchParent(ForeignKey)Result<O> fetchParents(Collection<? extends R> records) throws DataAccessException
This returns parent records referenced by any record in a given set of records through this foreign key.
DataAccessException - if something went wrong executing the queryTableRecord.fetchParent(ForeignKey)Result<R> fetchChildren(O record) throws DataAccessException
This returns childs record referencing a given record through this foreign key
DataAccessException - if something went wrong executing the queryUpdatableRecord.fetchChild(ForeignKey), 
UpdatableRecord.fetchChildren(ForeignKey)Result<R> fetchChildren(O... records) throws DataAccessException
This returns childs record referencing any record in a given set of records through this foreign key
DataAccessException - if something went wrong executing the queryUpdatableRecord.fetchChild(ForeignKey), 
UpdatableRecord.fetchChildren(ForeignKey)Result<R> fetchChildren(Collection<? extends O> records) throws DataAccessException
This returns childs record referencing any record in a given set of records through this foreign key
DataAccessException - if something went wrong executing the queryUpdatableRecord.fetchChild(ForeignKey), 
UpdatableRecord.fetchChildren(ForeignKey)Copyright © 2015. All Rights Reserved.