Consistent DML signature

Bug #601607 reported by Timo Westkämper on 2010-07-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Querydsl
Fix Released
Undecided
Unassigned

Bug Description

set-method also for DeleteClause

Renamed StoreClause to DMLClause and made it the supertype of DeleteClause

Changed in querydsl:
status: New → Fix Committed
Changed in querydsl:
status: Fix Committed → Won't Fix
summary: - set-method also for DeleteClause
+ Consistent DML signature

Changed it to

public interface FilteredClause<C extends FilteredClause<C>> {

    long execute();

    C where(EBoolean... o);

}

public interface StoreClause<C extends StoreClause<C>> {

    long execute();

    <T> C set(Path<T> path, @Nullable T value);

}

public interface DeleteClause<C extends DeleteClause<C>> extends FilteredClause<C>{

    C where(EBoolean... o);

}

public interface InsertClause<C extends InsertClause<C>> extends StoreClause<C>{

    C columns(Path<?>... columns);

    C select(SubQuery<?> subQuery);

    C values(Object... v);

}

public interface UpdateClause<C extends UpdateClause<C>> extends StoreClause<C>, FilteredClause<C>{

    C set(List<? extends Path<?>> paths, List<?> values);

    C where(EBoolean... o);

}

Changed in querydsl:
status: Won't Fix → Fix Committed

DMLClause { execute }
StoreClause extends DMLClause { set }
FilteredClause { where }
DeleteClause extends DMLClause, FilteredClause {}
InsertClause extends StoreClause { columns, select, values }
UpdateClause extends StoreClause, FilteredClause { set(paths, values) }
Query extends FilteredClause {...}

Released in 1.8.0

Changed in querydsl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers