BrightSide Workbench Full Report + Source Code
org.turro.contacts.proposal.GlobalIdAttribute Class Reference
Inheritance diagram for org.turro.contacts.proposal.GlobalIdAttribute:
Collaboration diagram for org.turro.contacts.proposal.GlobalIdAttribute:

Public Member Functions

 GlobalIdAttribute (Contact attribute)
 
void addToContact (Contact contact)
 
String getAsString ()
 
Contact getContact ()
 
String getAttributeName ()
 
IAttribute generateAttributeAdapter (final Contact a)
 
- Public Member Functions inherited from org.turro.contacts.proposal.GenericAttribute< Contact >
 GenericAttribute (A attribute)
 
boolean isActive ()
 
void setActive (boolean active)
 
getValue ()
 
List< IAttributegetRelated ()
 
void checkActive (Contact destination)
 
abstract void addToContact (Contact contact)
 
abstract String getAsString ()
 
abstract Contact getContact ()
 
abstract String getAttributeName ()
 
abstract IAttribute generateAttributeAdapter (A a)
 

Protected Member Functions

List< ContactgenerateRelated ()
 
- Protected Member Functions inherited from org.turro.contacts.proposal.GenericAttribute< Contact >
abstract List< A > generateRelated ()
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.contacts.proposal.GenericAttribute< Contact >
attribute
 
transient List< IAttributerelated
 
DuplicationType duplication
 
boolean active
 

Detailed Description

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

Definition at line 31 of file GlobalIdAttribute.java.

Constructor & Destructor Documentation

◆ GlobalIdAttribute()

org.turro.contacts.proposal.GlobalIdAttribute.GlobalIdAttribute ( Contact  attribute)

Member Function Documentation

◆ addToContact()

void org.turro.contacts.proposal.GlobalIdAttribute.addToContact ( Contact  contact)

Definition at line 49 of file GlobalIdAttribute.java.

49  {
50  contact.setGlobalIdentifier(attribute.getGlobalIdentifier());
51  }
Here is the call graph for this function:

◆ generateAttributeAdapter()

IAttribute org.turro.contacts.proposal.GlobalIdAttribute.generateAttributeAdapter ( final Contact  a)

Definition at line 69 of file GlobalIdAttribute.java.

69  {
70  return new IAttribute() {
71 
72  @Override
73  public String getAsString() {
74  return a.getGlobalIdentifier();
75  }
76 
77  @Override
78  public Contact getContact() {
79  return a;
80  }
81 
82  @Override
83  public Object getValue() {
84  return a;
85  }
86  };
87  }
Here is the call graph for this function:

◆ generateRelated()

List<Contact> org.turro.contacts.proposal.GlobalIdAttribute.generateRelated ( )
protected

Definition at line 39 of file GlobalIdAttribute.java.

39  {
40  Dao dao = new ContactsPU();
41  WhereClause wc = new WhereClause();
42  wc.addClause("select contact from Contact as contact");
43  wc.addClause("where contact.globalIdentifier = :value");
44  wc.addNamedValue("value", attribute.getGlobalIdentifier());
45  return dao.getResultList(wc);
46  }
Here is the call graph for this function:

◆ getAsString()

String org.turro.contacts.proposal.GlobalIdAttribute.getAsString ( )

Definition at line 54 of file GlobalIdAttribute.java.

54  {
55  return attribute.getGlobalIdentifier();
56  }
Here is the caller graph for this function:

◆ getAttributeName()

String org.turro.contacts.proposal.GlobalIdAttribute.getAttributeName ( )

Definition at line 64 of file GlobalIdAttribute.java.

64  {
65  return I_.get("Global identifier");
66  }
Here is the call graph for this function:

◆ getContact()

Contact org.turro.contacts.proposal.GlobalIdAttribute.getContact ( )

Definition at line 59 of file GlobalIdAttribute.java.

59  {
60  return attribute;
61  }
Here is the caller graph for this function:

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