Forgive my ignorance, but what is the reason for making these Collection<?>
rather than Collection<? extends Persistent> ? Is it for JPA POJO support?
-- KevinOn 11/20/07 2:43 PM, "aadamchi..pache.org" <aadamchik@apache.org> wrote:
> ============================================================================== > --- > cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apac > he/cayenne/BaseContext.java (original) > +++ > cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apac > he/cayenne/BaseContext.java Tue Nov 20 11:43:12 2007 >.. -45,7 +45,7 @@ > > public abstract void deleteObject(Object object) throws > DeleteDenyException; > > - public abstract Collection deletedObjects(); > + public abstract Collection<?> deletedObjects(); > > public DataChannel getChannel() { > return channel; >.. -57,17 +57,17 @@ > > public abstract Persistent localObject(ObjectId id, Object prototype); > > - public abstract Collection modifiedObjects(); > + public abstract Collection<?> modifiedObjects(); > > public abstract <T> T newObject(Class<T> persistentClass); > > public abstract void registerNewObject(Object object); > > - public abstract Collection newObjects(); > + public abstract Collection<?> newObjects(); > > public abstract QueryResponse performGenericQuery(Query query); > > - public abstract List performQuery(Query query); > + public abstract List<?> performQuery(Query query);
This archive was generated by hypermail 2.0.0 : Tue Nov 20 2007 - 15:06:02 EST