BrightSide Workbench Full Report + Source Code
org.turro.crm.entity.Vendor Class Reference
Inheritance diagram for org.turro.crm.entity.Vendor:
Collaboration diagram for org.turro.crm.entity.Vendor:

Public Member Functions

Set< CustomerOwnergetCustomerOwned ()
 
void setCustomerOwned (Set< CustomerOwner > customerOwned)
 
long getId ()
 
void setId (long id)
 
String getIdContact ()
 
void setIdContact (String idContact)
 
String getName ()
 
void setName (String name)
 
Set< VendorProspectgetVendorProspects ()
 
void setVendorProspects (Set< VendorProspect > vendorProspects)
 
Object entityId ()
 
boolean isEmpty ()
 
IContact getIContact ()
 
void setIContact (IContact contact)
 
- Public Member Functions inherited from org.turro.jpa.entity.IDaoEntity
default boolean isNew ()
 
default void prepareSave ()
 
default void prepareDelete ()
 
default void removeEmpties ()
 
default Collection< Collection > collections ()
 

Detailed Description

Author
llturro

Definition at line 18 of file Vendor.java.

Member Function Documentation

◆ entityId()

Object org.turro.crm.entity.Vendor.entityId ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 87 of file Vendor.java.

87  {
88  return id;
89  }

◆ getCustomerOwned()

Set<CustomerOwner> org.turro.crm.entity.Vendor.getCustomerOwned ( )

Definition at line 34 of file Vendor.java.

34  {
35  Dao dao = new CrmPU();
36  if(id > 0 && dao.isNotLoaded(customerOwned)) {
37  customerOwned = dao.lazyLoader(Vendor.class, this, "customerOwned").customerOwned;
38  }
39  return customerOwned;
40  }
Here is the call graph for this function:

◆ getIContact()

IContact org.turro.crm.entity.Vendor.getIContact ( )

Definition at line 100 of file Vendor.java.

100  {
101  if(_contact == null) {
102  _contact = Contacts.getContactById(idContact);
103  }
104  return _contact;
105  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getId()

long org.turro.crm.entity.Vendor.getId ( )

Definition at line 46 of file Vendor.java.

46  {
47  return id;
48  }
Here is the caller graph for this function:

◆ getIdContact()

String org.turro.crm.entity.Vendor.getIdContact ( )

Definition at line 54 of file Vendor.java.

54  {
55  return idContact;
56  }

◆ getName()

String org.turro.crm.entity.Vendor.getName ( )

Definition at line 64 of file Vendor.java.

64  {
65  return name;
66  }
Here is the caller graph for this function:

◆ getVendorProspects()

Set<VendorProspect> org.turro.crm.entity.Vendor.getVendorProspects ( )

Definition at line 72 of file Vendor.java.

72  {
73  Dao dao = new CrmPU();
74  if(id > 0 && dao.isNotLoaded(vendorProspects)) {
75  vendorProspects = dao.lazyLoader(Vendor.class, this, "vendorProspects").vendorProspects;
76  }
77  return vendorProspects;
78  }
Here is the call graph for this function:

◆ isEmpty()

boolean org.turro.crm.entity.Vendor.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 92 of file Vendor.java.

92  {
93  return Strings.isBlank(idContact);
94  }

◆ setCustomerOwned()

void org.turro.crm.entity.Vendor.setCustomerOwned ( Set< CustomerOwner customerOwned)

Definition at line 42 of file Vendor.java.

42  {
43  this.customerOwned = customerOwned;
44  }

◆ setIContact()

void org.turro.crm.entity.Vendor.setIContact ( IContact  contact)

Definition at line 107 of file Vendor.java.

107  {
108  _contact = contact;
109  idContact = _contact != null ? _contact.getId() : null;
110  name = _contact != null ? _contact.getName() : null;
111  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setId()

void org.turro.crm.entity.Vendor.setId ( long  id)

Definition at line 50 of file Vendor.java.

50  {
51  this.id = id;
52  }

◆ setIdContact()

void org.turro.crm.entity.Vendor.setIdContact ( String  idContact)

Definition at line 58 of file Vendor.java.

58  {
59  this.idContact = idContact;
60  resetIContact();
62  }
void setIContact(IContact contact)
Definition: Vendor.java:107
Here is the call graph for this function:

◆ setName()

void org.turro.crm.entity.Vendor.setName ( String  name)

Definition at line 68 of file Vendor.java.

68  {
69  this.name = name;
70  }

◆ setVendorProspects()

void org.turro.crm.entity.Vendor.setVendorProspects ( Set< VendorProspect vendorProspects)

Definition at line 80 of file Vendor.java.

80  {
81  this.vendorProspects = vendorProspects;
82  }

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