"favourites".
public EOFetchSpecification getPubliclyDisplayed() {
EOQualifier q1 = new EOKeyValueQualifier( "userName",
EOQualifier.QualifierOperatorEqual, applicationUser.userName());
ExistsInRelationshipQualifier q2 = new ExistsInRelationshipQualifier
(&q
r q1 = new EOKeyValueQualifier( "userName",
EOQualifier.QualifierOperatorEqual, applicationUser.userName());
ExistsInRelationshipQualifier q2 = new
ExistsInRelationshipQualifier("applicationUsers", q1);
// the inverse
EONotQualifier
Artifacts that have not been specified as
"favourites".
public EOFetchSpecification getPubliclyDisplayed() {
EOQualifier q1 = new EOKeyValueQualifier( "userName",
EOQualifier.QualifierOperatorEqual, applicationUser.userName());
ExistsInRelationsh
hat have not been specified as
"favourites".
public EOFetchSpecification getPubliclyDisplayed() {
EOQualifier q1 = new EOKeyValueQualifier( "userName",
EOQualifier.QualifierOperatorEqual, applicationUser.userName());
ExistsInRelationshipQualifier q2 = new
Ex
alifier.QualifierOperatorEqual, applicationUser.userName());
ExistsInRelationshipQualifier q2 = new
ExistsInRelationshipQualifier("applicationUsers", q1);
// the inverse
EONotQualifier notq2 = new EONotQualifier(q2);
// EOQualifier q3 = new EOAndQua
n);
mutableArray.addObject(keyValueQualifier);
keyValueQualifier = new EOKeyValueQualifier( "isvalid",
EOQualifier.QualifierOperatorEqual, new Integer(1));
ExistsInRelationshipQualifier existsInRelationshipQualifier =
new ExistsInRelationshipQualifier("li
show all Artifacts that have not been specified as
>> "favourites".
>>
>>
>>
>> public EOFetchSpecification getPubliclyDisplayed() {
>>
>> EOQualifier q1 = new EOKeyValueQualifier( "userName",
>> EOQualifier.Qualifier
gt;> public EOFetchSpecification getPubliclyDisplayed() {
>>
>> EOQualifier q1 = new EOKeyValueQualifier( "userName",
>> EOQualifier.QualifierOperatorEqual, applicationUser.userName());
>> ExistsInRelationshipQualifier q2 = new
>> ExistsInRelationship
gt;>
> >>
> >>
> >> public EOFetchSpecification getPubliclyDisplayed() {
> >>
> >> EOQualifier q1 = new EOKeyValueQualifier( "userName",
> >> EOQualifier.QualifierOperatorEqual, applicationUser.userName());
>
have
done wrong?
I am trying to show all Artifacts that have not been specified as
"favourites".
public EOFetchSpecification getPubliclyDisplayed() {
EOQualifier q1 = new EOKeyValueQualifier( "userName",
EOQualifier.QualifierOperatorEqual, applicationUser.userName()
)
at com.webobjects.foundation.NSKeyValueCoding
$DefaultImplementation.takeValueForKey(NSKeyValueCoding.java:1293)
at com.webobjects.foundation.NSKeyValueCoding
$Utility.takeValueForKey(NSKeyValueCoding.java:521)
at
com
.houdah
.eocontrol
.qualifiers
.ExistsInRelationshipQualifier
.
s".
public EOFetchSpecification getPubliclyDisplayed() {
EOQualifier q1 = new EOKeyValueQualifier( "userName",
EOQualifier.QualifierOperatorEqual, applicationUser.userName());
ExistsInRelationshipQualifier q2 = new
ExistsInRelationshipQualifier("applicationUsers", q1);
ification getPubliclyDisplayed() {
EOQualifier q1 = new EOKeyValueQualifier( "userName",
EOQualifier.QualifierOperatorEqual, applicationUser.userName());
ExistsInRelationshipQualifier q2 = new
ExistsInRelationshipQualifier("applicationUsers", q1);
// the inverse
EONotQua
OK -
My code is the same so no changes were made.
My usage:
byPortfolioQualifier = new EOAndQualifier(new NSArray(new Object[]
{byPortfolioQualifier, hasDocumentsQualifier()}));
public EOQualifier hasDocumentsQualifier(){
ExistsInRelationshipQualifier qual = new
, hasDocumentsQualifier()}));
public EOQualifier hasDocumentsQualifier(){
ExistsInRelationshipQualifier qual = new
ExistsInRelationshipQualifier("documents",null);
EONotQualifier not = new EONotQualifier(qual);
return not;
}
HTH
-j-
On May 19, 2008, at 6:19
ifier()}));
public EOQualifier hasDocumentsQualifier(){
ExistsInRelationshipQualifier qual = new
ExistsInRelationshipQualifier("documents",null);
EONotQualifier not = new EONotQualifier(qual);
return not;
}
HTH
-j-
On May 19, 2008, at 6:19 PM, Chuck Hill wrot
.
My usage:
byPortfolioQualifier = new EOAndQualifier(new NSArray(new Object[]
{byPortfolioQualifier, hasDocumentsQualifier()}));
public EOQualifier hasDocumentsQualifier(){
ExistsInRelationshipQualifier qual = new
ExistsInRelationshipQualifier("documents",null);
EONotQual
= new EOAndQualifier(new NSArray(new Object[]
{byPortfolioQualifier, hasDocumentsQualifier()}));
public EOQualifier hasDocumentsQualifier(){
ExistsInRelationshipQualifier qual = new
ExistsInRelationshipQualifier("documents",null);
EONotQualifier not = new EONotQualifier(qual);
On May 19, 2008, at 7:38 PM, James Cicenia wrote:
hmmm
here is the result of my sql:
WHERE (not ( EXISTS (SELECT 1 FROM project_document A0 WHERE null
AND t0.row_id = A0.project_id))
that where null is interesting.
Well, that IS what you asked for:
ExistsInRelationshipQualifier qual
))
that where null is interesting.
Well, that IS what you asked for:
ExistsInRelationshipQualifier qual = new
ExistsInRelationshipQualifier("documents",null);
The usual way to use this would be something like:
ExistsInRelationshipQualifier qual = new
ExistsInRelationshipQualifier(
need ExistsInRelationshipQualifier in this
situation.
new EOKeyValueQualiier(DOCUMENTS,
EOQualifier.EOQualifierEqualsOperator, NSKeyValueCoding.NULL)
Should do the trick.
Best,
Pierre Bernard
Houdah Software s.à r.l.
On 20 May 2008, at 01:38, James Cicenia wrote:
OK -
My code is the same so no changes were
21 matches
Mail list logo