BrightSide Workbench Full Report + Source Code
org.turro.occurrence.SkillOccurrenceAPI Class Reference
Inheritance diagram for org.turro.occurrence.SkillOccurrenceAPI:
Collaboration diagram for org.turro.occurrence.SkillOccurrenceAPI:

Public Member Functions

String getName ()
 
List< String > getPossibles (String value)
 
- Public Member Functions inherited from org.turro.occurrence.AbstractOccurrenceAPI< Skill >
long getCount ()
 
boolean hasOccurrences (String value)
 
List< E > getList ()
 
void changeOccurrences (String newValue)
 
void removeOccurrences ()
 

Protected Member Functions

List< SkillgetOccurrences (String value)
 
String getValue (Skill value)
 
void setValue (Skill value, String newValue)
 
Dao createDao ()
 
- Protected Member Functions inherited from org.turro.occurrence.AbstractOccurrenceAPI< Skill >
Dao getDao ()
 
abstract Dao createDao ()
 
abstract List< E > getOccurrences (String value)
 
abstract String getValue (E value)
 
abstract void setValue (E value, String newValue)
 

Detailed Description

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

Definition at line 32 of file SkillOccurrenceAPI.java.

Member Function Documentation

◆ createDao()

Dao org.turro.occurrence.SkillOccurrenceAPI.createDao ( )
protected

Definition at line 69 of file SkillOccurrenceAPI.java.

69  {
70  return new ElephantPU();
71  }

◆ getName()

String org.turro.occurrence.SkillOccurrenceAPI.getName ( )

Definition at line 35 of file SkillOccurrenceAPI.java.

35  {
36  return I_.get("Skills");
37  }
Here is the call graph for this function:

◆ getOccurrences()

List<Skill> org.turro.occurrence.SkillOccurrenceAPI.getOccurrences ( String  value)
protected

Definition at line 49 of file SkillOccurrenceAPI.java.

49  {
50  WhereClause wc = new WhereClause();
51  wc.addClause("select t from Skill t");
52  wc.addClause("where t.skill = :value");
53  wc.addNamedValue("value", value);
54  return getDao().getResultList(Skill.class, wc);
55  }
Here is the call graph for this function:

◆ getPossibles()

List<String> org.turro.occurrence.SkillOccurrenceAPI.getPossibles ( String  value)

Definition at line 40 of file SkillOccurrenceAPI.java.

40  {
41  WhereClause wc = new WhereClause();
42  wc.addClause("select distinct t.skill from Skill t");
43  wc.setPrefix("where");
44  wc.addLikeFields(new String[] { "t.skill" }, value);
45  return getDao().getResultList(String.class, wc);
46  }
Here is the call graph for this function:

◆ getValue()

String org.turro.occurrence.SkillOccurrenceAPI.getValue ( Skill  value)
protected

Definition at line 58 of file SkillOccurrenceAPI.java.

58  {
59  return value.getSkill();
60  }
Here is the call graph for this function:

◆ setValue()

void org.turro.occurrence.SkillOccurrenceAPI.setValue ( Skill  value,
String  newValue 
)
protected

Definition at line 63 of file SkillOccurrenceAPI.java.

63  {
64  getDao().deleteObject(value);
65  value.setSkill(newValue);
66  }
void deleteObject(Object obj)
Definition: Dao.java:162
Here is the call graph for this function:

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