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

Public Member Functions

String getDescription ()
 
void setDescription (String description)
 
String getId ()
 
void setId (String id)
 
Object entityId ()
 
boolean isEmpty ()
 
String getFullDescription ()
 
MajorAccount getParent ()
 
void proposeDescription ()
 
- 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
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 33 of file Account.java.

Member Function Documentation

◆ entityId()

Object org.turro.financials.entity.Account.entityId ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 60 of file Account.java.

60  {
61  return id;
62  }

◆ getDescription()

String org.turro.financials.entity.Account.getDescription ( )

Definition at line 41 of file Account.java.

41  {
42  return description;
43  }
Here is the caller graph for this function:

◆ getFullDescription()

String org.turro.financials.entity.Account.getFullDescription ( )

Definition at line 71 of file Account.java.

71  {
72  return "#" + id + " - " + description;
73  }
Here is the caller graph for this function:

◆ getId()

String org.turro.financials.entity.Account.getId ( )

Definition at line 49 of file Account.java.

49  {
50  return id;
51  }
Here is the caller graph for this function:

◆ getParent()

MajorAccount org.turro.financials.entity.Account.getParent ( )

Definition at line 75 of file Account.java.

75  {
76  if(id != null && id.length() > 1) {
77  List l = new FinancialsPU().getResultList(
78  "select m from MajorAccount as m " +
79  "where '" + id + "' " + "like concat(m.account, '%') " +
80  "order by m.account desc");
81  if(!l.isEmpty()) {
82  return (MajorAccount) l.get(0);
83  }
84  }
85  return null;
86  }
Here is the caller graph for this function:

◆ isEmpty()

boolean org.turro.financials.entity.Account.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 65 of file Account.java.

65  {
66  return Strings.isBlank(id) || Strings.isBlank(description);
67  }

◆ proposeDescription()

void org.turro.financials.entity.Account.proposeDescription ( )

Definition at line 88 of file Account.java.

88  {
89  MajorAccount ma = getParent();
90  if(ma != null) {
91  setDescription(ma.getDescription());
92  }
93  }
void setDescription(String description)
Definition: Account.java:45
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDescription()

void org.turro.financials.entity.Account.setDescription ( String  description)

Definition at line 45 of file Account.java.

45  {
46  this.description = description;
47  }
Here is the caller graph for this function:

◆ setId()

void org.turro.financials.entity.Account.setId ( String  id)

Definition at line 53 of file Account.java.

53  {
54  this.id = id;
55  }
Here is the caller graph for this function:

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