BrightSide Workbench Full Report + Source Code
org.turro.jpa.entity.IDaoEntity Interface Reference
Inheritance diagram for org.turro.jpa.entity.IDaoEntity:

Public Member Functions

Object entityId ()
 
boolean isEmpty ()
 
default boolean isNew ()
 
default void prepareSave ()
 
default void prepareDelete ()
 
default void removeEmpties ()
 
default Collection< Collection > collections ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 27 of file IDaoEntity.java.

Member Function Documentation

◆ collections()

default Collection<Collection> org.turro.jpa.entity.IDaoEntity.collections ( )

Implemented in org.turro.crm.entity.SaleProspect, org.turro.crm.entity.Customer, org.turro.crm.entity.Campaign, org.turro.financials.entity.Register, org.turro.financials.entity.Document, and org.turro.financials.entity.Contract.

Definition at line 57 of file IDaoEntity.java.

57  {
58  return Collections.EMPTY_LIST;
59  }
Here is the caller graph for this function:

◆ entityId()

Object org.turro.jpa.entity.IDaoEntity.entityId ( )

Implemented in org.turro.students.entities.TalentCategory, org.turro.students.entities.Response, org.turro.students.entities.PracticalWork, org.turro.students.entities.Challenge, org.turro.ws.WsServer, org.turro.ws.WsMember, org.turro.elephant.entities.web.WebItem, org.turro.elephant.entities.web.WebGoal, org.turro.elephant.entities.db.Poll, org.turro.elephant.entities.db.Agreement, org.turro.server.db.entities.AxParticipationRequest, org.turro.server.db.entities.AxMemberPreferences, org.turro.server.db.entities.AxAllianceParticipation, org.turro.member.db.entities.AxProjectGrantPublic, org.turro.member.db.entities.AxProjectCategory, org.turro.member.db.entities.AxChallengeCategory, org.turro.alliance.db.entities.AxTalentCategory, org.turro.alliance.db.entities.AxStudent, org.turro.alliance.db.entities.AxResponse, org.turro.alliance.db.entities.AxProjectGrant, org.turro.alliance.db.entities.AxProject, org.turro.alliance.db.entities.AxParticipation, org.turro.alliance.db.entities.AxDescriptor, org.turro.alliance.db.entities.AxContact, org.turro.alliance.db.entities.AxChallenge, org.turro.alliance.db.entities.AxCenter, org.turro.alliance.db.entities.AxCategory, org.turro.publication.entity.Publication, org.turro.publication.entity.NewsSection, org.turro.publication.entity.Newsletter, org.turro.dossier.entity.WorthDefinition, org.turro.dossier.entity.ProjectGrant, org.turro.dossier.entity.Participant, org.turro.dossier.entity.Issue, org.turro.dossier.entity.DossierVersion, org.turro.dossier.entity.DossierOffer, org.turro.dossier.entity.Dossier, org.turro.dossier.entity.DescriptorValue, org.turro.dossier.entity.DescriptorDefinition, org.turro.dossier.entity.CategoryParticipant, org.turro.dossier.entity.Category, org.turro.crm.entity.VendorProspect, org.turro.crm.entity.Vendor, org.turro.crm.entity.SaleProspect, org.turro.crm.entity.SaleAction, org.turro.crm.entity.CustomerOwner, org.turro.crm.entity.Customer, org.turro.crm.entity.CampaignVendor, org.turro.crm.entity.Campaign, org.turro.contacts.Syndication, org.turro.contacts.RelationValidation, org.turro.contacts.ProfilePolicy, org.turro.contacts.Convocation, org.turro.contacts.ContactService, org.turro.contacts.Contact, org.turro.contacts.Connector, org.turro.contacts.Comment, org.turro.contacts.BusinessRelation, org.turro.contacts.Attendee, org.turro.contacts.Address, org.turro.financials.entity.Tax, org.turro.financials.entity.Service, org.turro.financials.entity.RelatedContractStore, org.turro.financials.entity.RegisterEntry, org.turro.financials.entity.Register, org.turro.financials.entity.Product, org.turro.financials.entity.Headquarters, org.turro.financials.entity.FixedAsset, org.turro.financials.entity.DocumentRelation, org.turro.financials.entity.DocumentDefinition, org.turro.financials.entity.Document, org.turro.financials.entity.Department, org.turro.financials.entity.ContractParticipant, org.turro.financials.entity.ContractFlow, org.turro.financials.entity.ContractExpiry, org.turro.financials.entity.Contracted, org.turro.financials.entity.ContractDefinition, org.turro.financials.entity.Contract, org.turro.financials.entity.Company, org.turro.financials.entity.BookRegister, and org.turro.financials.entity.Account.

Here is the caller graph for this function:

◆ isEmpty()

boolean org.turro.jpa.entity.IDaoEntity.isEmpty ( )

Implemented in org.turro.students.entities.TalentCategory, org.turro.students.entities.Response, org.turro.students.entities.PracticalWork, org.turro.students.entities.Challenge, org.turro.ws.WsServer, org.turro.ws.WsMember, org.turro.elephant.entities.web.WebItem, org.turro.elephant.entities.web.WebGoal, org.turro.elephant.entities.db.Poll, org.turro.elephant.entities.db.Agreement, org.turro.server.db.entities.AxParticipationRequest, org.turro.server.db.entities.AxMemberPreferences, org.turro.server.db.entities.AxAllianceParticipation, org.turro.member.db.entities.AxProjectGrantPublic, org.turro.member.db.entities.AxProjectCategory, org.turro.member.db.entities.AxChallengeCategory, org.turro.alliance.db.entities.AxTalentCategory, org.turro.alliance.db.entities.AxStudent, org.turro.alliance.db.entities.AxResponse, org.turro.alliance.db.entities.AxProjectGrant, org.turro.alliance.db.entities.AxProject, org.turro.alliance.db.entities.AxParticipation, org.turro.alliance.db.entities.AxDescriptor, org.turro.alliance.db.entities.AxContact, org.turro.alliance.db.entities.AxChallenge, org.turro.alliance.db.entities.AxCenter, org.turro.alliance.db.entities.AxCategory, org.turro.publication.entity.Publication, org.turro.publication.entity.NewsSection, org.turro.publication.entity.Newsletter, org.turro.dossier.entity.WorthDefinition, org.turro.dossier.entity.ProjectGrant, org.turro.dossier.entity.Participant, org.turro.dossier.entity.Issue, org.turro.dossier.entity.DossierVersion, org.turro.dossier.entity.DossierOffer, org.turro.dossier.entity.Dossier, org.turro.dossier.entity.DescriptorValue, org.turro.dossier.entity.DescriptorDefinition, org.turro.dossier.entity.CategoryParticipant, org.turro.dossier.entity.Category, org.turro.crm.entity.VendorProspect, org.turro.crm.entity.Vendor, org.turro.crm.entity.SaleProspect, org.turro.crm.entity.SaleAction, org.turro.crm.entity.CustomerOwner, org.turro.crm.entity.Customer, org.turro.crm.entity.CampaignVendor, org.turro.crm.entity.Campaign, org.turro.contacts.Syndication, org.turro.contacts.RelationValidation, org.turro.contacts.ProfilePolicy, org.turro.contacts.Convocation, org.turro.contacts.ContactService, org.turro.contacts.Contact, org.turro.contacts.Connector, org.turro.contacts.Comment, org.turro.contacts.BusinessRelation, org.turro.contacts.Attendee, org.turro.contacts.Address, org.turro.financials.entity.Tax, org.turro.financials.entity.Service, org.turro.financials.entity.RelatedContractStore, org.turro.financials.entity.RegisterEntry, org.turro.financials.entity.Register, org.turro.financials.entity.Product, org.turro.financials.entity.Headquarters, org.turro.financials.entity.FixedAsset, org.turro.financials.entity.DocumentRelation, org.turro.financials.entity.DocumentDefinition, org.turro.financials.entity.Document, org.turro.financials.entity.Department, org.turro.financials.entity.ContractParticipant, org.turro.financials.entity.ContractFlow, org.turro.financials.entity.ContractExpiry, org.turro.financials.entity.Contracted, org.turro.financials.entity.ContractDefinition, org.turro.financials.entity.Contract, org.turro.financials.entity.Company, org.turro.financials.entity.BookRegister, and org.turro.financials.entity.Account.

◆ isNew()

default boolean org.turro.jpa.entity.IDaoEntity.isNew ( )

Definition at line 32 of file IDaoEntity.java.

32  {
33  return DaoEntity.isNewId(entityId());
34  }
Here is the call graph for this function:

◆ prepareDelete()

default void org.turro.jpa.entity.IDaoEntity.prepareDelete ( )

Definition at line 43 of file IDaoEntity.java.

43  {
44  removeEmpties();
45  collections().forEach(c -> {
46  c.forEach(sc -> { if(sc instanceof IDaoEntity) { ((IDaoEntity) sc).prepareDelete(); } });
47  });
48  }
default Collection< Collection > collections()
Definition: IDaoEntity.java:57
Here is the call graph for this function:
Here is the caller graph for this function:

◆ prepareSave()

default void org.turro.jpa.entity.IDaoEntity.prepareSave ( )

Implemented in org.turro.students.entities.TalentCategory, org.turro.ws.WsMember, org.turro.alliance.db.entities.AxTalentCategory, org.turro.alliance.db.entities.AxCategory, org.turro.dossier.entity.Category, org.turro.financials.entity.RegisterEntry, org.turro.financials.entity.Register, org.turro.financials.entity.Product, org.turro.financials.entity.Document, org.turro.financials.entity.Contract, and org.turro.financials.entity.BookRegister.

Definition at line 36 of file IDaoEntity.java.

36  {
37  removeEmpties();
38  collections().forEach(c -> {
39  c.forEach(sc -> { if(sc instanceof IDaoEntity) { ((IDaoEntity) sc).prepareSave(); } });
40  });
41  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeEmpties()

default void org.turro.jpa.entity.IDaoEntity.removeEmpties ( )

Implemented in org.turro.crm.entity.SaleAction.

Definition at line 50 of file IDaoEntity.java.

50  {
51  collections().forEach(c -> {
52  EntityCollections.entities(c).removeEmpties();
53  c.forEach(sc -> { if(sc instanceof IDaoEntity) { ((IDaoEntity) sc).removeEmpties(); } });
54  });
55  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this interface was generated from the following file: