BrightSide Workbench Full Report + Source Code
org.turro.alliance.provider.Preferences Class Reference

Public Member Functions

AxMemberPreferences getPreferences ()
 

Static Public Member Functions

static Preferences of (WsMember member)
 

Detailed Description

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

Definition at line 32 of file Preferences.java.

Member Function Documentation

◆ getPreferences()

AxMemberPreferences org.turro.alliance.provider.Preferences.getPreferences ( )

Definition at line 38 of file Preferences.java.

38  {
39  if(preferences == null) {
40  preferences = SqlClause.select("p").from("AxMemberPreferences p")
41  .where().equal("memberId", member.getMemberId())
42  .dao(dao.get())
43  .singleResult(AxMemberPreferences.class, null);
44  if(preferences == null) {
45  preferences = new AxMemberPreferences();
46  preferences.setMemberId(member.getMemberId());
47  preferences = save();
48  }
49  }
50  return preferences;
51  }
Here is the call graph for this function:

◆ of()

static Preferences org.turro.alliance.provider.Preferences.of ( WsMember  member)
static

Definition at line 63 of file Preferences.java.

63  {
64  return new Preferences(member);
65  }

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