19 package org.turro.contacts.relation;
21 import org.turro.contacts.BusinessRelation;
22 import org.turro.contacts.ContactType;
23 import org.turro.contacts.organigram.RelationType;
24 import org.turro.elephant.db.WhereClause;
49 wc.
addClause(relationField +
".business.type = :wtype");
62 wc.
addClause(relationField +
".business.type = :stype");
64 wc.
addClause(
"and " + relationField +
".relationType <> :brtype");
77 wc.
addClause(relationField +
".business.type = :stype");
79 wc.
addClause(
"and " + relationField +
".relationType = :brtype");
107 wc.
addClause(relationField +
".business.type = :stype");
109 wc.
addClause(
"or " + relationField +
".business.type = :ctype");
112 wc.
addClause(
"and " + relationField +
".relationType = :brtype");
118 wc.
addClause(separator +
" (" + relationField +
" is null");
119 wc.
addClause(
"and (" + contactField +
".type = :sgtype or " + contactField +
".type = :sitype))");
126 wc.
addClause(relationField +
".contact.type = :wtype");
129 wc.
addClause(relationField +
".contact.type = :stype");
132 wc.
addClause(relationField +
".business.type = :wtype");
134 wc.
addClause(relationField +
".business.type = :stype");
140 wc.
addClause(relationField +
".type = :wtype");
143 wc.
addClause(relationField +
".type = :stype");
150 wc.
addClause(relationField +
".business.type = :wtype");
153 wc.
addClause(relationField +
".business.type = :stype");
void addClause(String clause)
void addNamedValue(String name, Object value)