BrightSide Workbench Full Report + Source Code
org.turro.jpa.list.RendererOnDemand< T, ID > Class Template Referenceabstract
Inheritance diagram for org.turro.jpa.list.RendererOnDemand< T, ID >:
Collaboration diagram for org.turro.jpa.list.RendererOnDemand< T, ID >:

Public Member Functions

void render (Listitem item, Object data, int index) throws Exception
 

Protected Member Functions

abstract Dao getDao ()
 
abstract void renderItem (Listitem item, T value)
 

Detailed Description

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

Definition at line 29 of file list/RendererOnDemand.java.

Member Function Documentation

◆ getDao()

abstract Dao org.turro.jpa.list.RendererOnDemand< T, ID >.getDao ( )
abstractprotected
Here is the caller graph for this function:

◆ render()

void org.turro.jpa.list.RendererOnDemand< T, ID >.render ( Listitem  item,
Object  data,
int  index 
) throws Exception

Definition at line 32 of file list/RendererOnDemand.java.

32  {
33  T obj = null;
34  if(data.getClass().isAssignableFrom((Class<ID>) ((ParameterizedType) getClass()
35  .getGenericSuperclass()).getActualTypeArguments()[1])) {
36  obj = getDao().find((Class<T>) ((ParameterizedType) getClass()
37  .getGenericSuperclass()).getActualTypeArguments()[0], (ID) data);
38  }
39  if(obj != null) {
40  renderItem(item, obj);
41  }
42  }
abstract void renderItem(Listitem item, T value)
Here is the call graph for this function:

◆ renderItem()

abstract void org.turro.jpa.list.RendererOnDemand< T, ID >.renderItem ( Listitem  item,
value 
)
abstractprotected
Here is the caller graph for this function:

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