LEFT - The type of one of the entities being associated.LEFTBUILDER - The type of the class that can construct new LEFT instances.RIGHT - The type of the other of the entities being associated.RIGHTBUILDER - The type of the class that can construct new RIGHT instances.public class AssociationDaoImpl<LEFT,LEFTBUILDER,RIGHT,RIGHTBUILDER> extends Object implements AssociationDao<LEFT,RIGHT>
AssociationDao.
 
     There is no need to construct this yourself.
     Use the AssociationDaoBuilder.
 
| Constructor and Description | 
|---|
AssociationDaoImpl(Dao<Association<LEFT,RIGHT>> internalDao,
                  String leftColumnName,
                  String rightColumnName,
                  PrimaryKey<LEFT,LEFTBUILDER> leftPrimaryKey,
                  PrimaryKey<RIGHT,RIGHTBUILDER> rightPrimaryKey)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
deleteAssociation(LEFT left,
                 RIGHT right)
Remove an association from the underlying store 
 | 
Long | 
insertAssociation(LEFT left,
                 RIGHT right)
Persist a new association between two entities. 
 | 
List<LEFT> | 
selectLeftAssociates(RIGHT right)
Finds all the instances of  
LEFT entities
 associated with the RIGHT instance passed. | 
List<RIGHT> | 
selectRightAssociates(LEFT left)
Finds all the instances of  
RIGHT entities
 associated with the LEFT instance passed. | 
public AssociationDaoImpl(Dao<Association<LEFT,RIGHT>> internalDao, String leftColumnName, String rightColumnName, PrimaryKey<LEFT,LEFTBUILDER> leftPrimaryKey, PrimaryKey<RIGHT,RIGHTBUILDER> rightPrimaryKey)
public List<LEFT> selectLeftAssociates(RIGHT right)
AssociationDaoLEFT entities
 associated with the RIGHT instance passed.selectLeftAssociates in interface AssociationDao<LEFT,RIGHT>right - The entity instance whose associates are to be selectedpublic List<RIGHT> selectRightAssociates(LEFT left)
AssociationDaoRIGHT entities
 associated with the LEFT instance passed.selectRightAssociates in interface AssociationDao<LEFT,RIGHT>left - The entity instance whose associates are to be selectedpublic Long insertAssociation(LEFT left, RIGHT right)
AssociationDaoinsertAssociation in interface AssociationDao<LEFT,RIGHT>left - an instance of the LEFT entity to be associatedright - and instance of the RIGHT entity to be associatedpublic void deleteAssociation(LEFT left, RIGHT right)
AssociationDaodeleteAssociation in interface AssociationDao<LEFT,RIGHT>left - an instance of the LEFT entity whose association is to be brokenright - and instance of the RIGHT entity whose association is to be brokenCopyright © 2019. All rights reserved.