Class AddMembershipDonationRelationsImpl
java.lang.Object
ch.tocco.nice2.optional.donationmembership.impl.actions.AddMembershipDonationRelationsImpl
- All Implemented Interfaces:
DonationRelationHandler
@Component
public class AddMembershipDonationRelationsImpl
extends Object
implements DonationRelationHandler
-
Constructor Summary
ConstructorDescriptionAddMembershipDonationRelationsImpl
(QueryBuilderFactory queryBuilderFactory, Context ctx) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isSupportedEntity
(String entityName) Check if the handler supports the given entity.void
setAdditionalRelations
(Entity newDonation, Entity membership) Set additional entity specific relations on the new donation entity.
-
Constructor Details
-
AddMembershipDonationRelationsImpl
-
-
Method Details
-
isSupportedEntity
Description copied from interface:DonationRelationHandler
Check if the handler supports the given entity. Use this method before calling 'setAdditionalRelations'.- Specified by:
isSupportedEntity
in interfaceDonationRelationHandler
-
setAdditionalRelations
Description copied from interface:DonationRelationHandler
Set additional entity specific relations on the new donation entity.- Specified by:
setAdditionalRelations
in interfaceDonationRelationHandler
-