- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 30 of file MajorAccount.java.
◆ getAccount()
String org.turro.financials.entity.MajorAccount.getAccount |
( |
| ) |
|
◆ getAccounts()
List<Account> org.turro.financials.entity.MajorAccount.getAccounts |
( |
| ) |
|
Definition at line 114 of file MajorAccount.java.
115 if(account !=
null) {
116 return new FinancialsPU().getResultList(
117 "select a from Account as a " +
119 " select ma from MajorAccount as ma " +
120 " where ma.account = '" + account +
"' " +
121 " and a.id like concat(ma.account, '_%') " +
122 " and not exists ( " +
123 " select ma2 from MajorAccount as ma2 " +
124 " where ma2.account like concat(ma.account, '0%') " +
129 return Collections.EMPTY_LIST;
◆ getBookDefinition()
BookDefinition org.turro.financials.entity.MajorAccount.getBookDefinition |
( |
| ) |
|
◆ getDescendants()
List<MajorAccount> org.turro.financials.entity.MajorAccount.getDescendants |
( |
| ) |
|
Definition at line 62 of file MajorAccount.java.
64 return new FinancialsPU().getResultList(
65 "select m from MajorAccount as m " +
66 "where m.account like '" + account +
"_' " +
68 " select re from RegisterEntry as re " +
69 " where re.account.id like concat(m.account, '%') " +
71 "order by m.account");
74 return Collections.EMPTY_LIST;
◆ getDescription()
String org.turro.financials.entity.MajorAccount.getDescription |
( |
| ) |
|
◆ getId()
long org.turro.financials.entity.MajorAccount.getId |
( |
| ) |
|
◆ getMajor()
static MajorAccount org.turro.financials.entity.MajorAccount.getMajor |
( |
String |
account | ) |
|
|
static |
Definition at line 132 of file MajorAccount.java.
133 if(account !=
null && account.length() > 1) {
134 return (MajorAccount)
new FinancialsPU().getSingleResult(
135 "select m from MajorAccount as m where m.account = '" +
◆ getParent()
MajorAccount org.turro.financials.entity.MajorAccount.getParent |
( |
| ) |
|
Definition at line 101 of file MajorAccount.java.
102 if(account !=
null && account.length() > 1) {
103 List l =
new FinancialsPU().getResultList(
104 "select m from MajorAccount as m where m.account = '" +
105 account.substring(0, account.length() - 1)+
"' " +
106 "order by m.account");
108 return (MajorAccount) l.get(0);
◆ getType()
◆ setAccount()
void org.turro.financials.entity.MajorAccount.setAccount |
( |
String |
account | ) |
|
◆ setBookDefinition()
void org.turro.financials.entity.MajorAccount.setBookDefinition |
( |
BookDefinition |
bookDefinition | ) |
|
◆ setDescription()
void org.turro.financials.entity.MajorAccount.setDescription |
( |
String |
description | ) |
|
◆ setId()
void org.turro.financials.entity.MajorAccount.setId |
( |
long |
id | ) |
|
◆ setType()
The documentation for this class was generated from the following file: