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

Public Member Functions

BookDefinition getBookDefinition ()
 
void setBookDefinition (BookDefinition bookDefinition)
 
long getBookOrder ()
 
void setBookOrder (long bookOrder)
 
long getId ()
 
void setId (long id)
 
Register getRegister ()
 
void setRegister (Register register)
 
Object entityId ()
 
boolean isEmpty ()
 
void prepareSave ()
 
- Public Member Functions inherited from org.turro.jpa.entity.IDaoEntity
default boolean isNew ()
 
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 31 of file BookRegister.java.

Member Function Documentation

◆ entityId()

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

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 79 of file BookRegister.java.

79  {
80  return id;
81  }

◆ getBookDefinition()

BookDefinition org.turro.financials.entity.BookRegister.getBookDefinition ( )

Definition at line 46 of file BookRegister.java.

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

◆ getBookOrder()

long org.turro.financials.entity.BookRegister.getBookOrder ( )

Definition at line 54 of file BookRegister.java.

54  {
55  return bookOrder;
56  }

◆ getId()

long org.turro.financials.entity.BookRegister.getId ( )

Definition at line 62 of file BookRegister.java.

62  {
63  return id;
64  }
Here is the caller graph for this function:

◆ getRegister()

Register org.turro.financials.entity.BookRegister.getRegister ( )

Definition at line 70 of file BookRegister.java.

70  {
71  return register;
72  }

◆ isEmpty()

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

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 84 of file BookRegister.java.

84  {
85  return bookDefinition == null || register == null;
86  }

◆ prepareSave()

void org.turro.financials.entity.BookRegister.prepareSave ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 89 of file BookRegister.java.

89  {
90  IDaoEntity.super.prepareSave();
91  if(bookOrder == 0) {
92  bookOrder = IdUtils.getMaxLongIdFromLong(
93  new FinancialsPU(), "BookRegister", "bookOrder",
94  new String[] {
95  "year(register.registerDate) = " + new CheckDate(register.getRegisterDate()).getYear(),
96  "bookDefinition.id = " + bookDefinition.getId(),
97  "register.view.id = " + register.getView().getId()
98  });
99  }
100  }
Here is the call graph for this function:

◆ setBookDefinition()

void org.turro.financials.entity.BookRegister.setBookDefinition ( BookDefinition  bookDefinition)

Definition at line 50 of file BookRegister.java.

50  {
51  this.bookDefinition = bookDefinition;
52  }
Here is the caller graph for this function:

◆ setBookOrder()

void org.turro.financials.entity.BookRegister.setBookOrder ( long  bookOrder)

Definition at line 58 of file BookRegister.java.

58  {
59  this.bookOrder = bookOrder;
60  }

◆ setId()

void org.turro.financials.entity.BookRegister.setId ( long  id)

Definition at line 66 of file BookRegister.java.

66  {
67  this.id = id;
68  }

◆ setRegister()

void org.turro.financials.entity.BookRegister.setRegister ( Register  register)

Definition at line 74 of file BookRegister.java.

74  {
75  this.register = register;
76  }
Here is the caller graph for this function:

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